示例#1
0
        public List <string> GetProcessListByUser(string loginName)
        {
            var         workflows   = new List <string>();
            Permissions permissions = _server.GetUserPermissions(loginName.FQNWithK2Label(), true);

            foreach (ProcSetPermissions permission in permissions)
            {
                if (permission.Start)
                {
                    workflows.Add(permission.ProcessFullName);
                }
            }

            return(workflows);
        }