Exemple #1
0
 private void AddAssigneeIdentityLinks(ITaskEntity taskEntity)
 {
     if (taskEntity.Assignee is object && taskEntity.ProcessInstance is object)
     {
         IdentityLinkEntityManager.InvolveUser(taskEntity.ProcessInstance, taskEntity.Assignee, IdentityLinkType.PARTICIPANT);
     }
 }
Exemple #2
0
        protected internal virtual void AddOwnerIdentityLink(ITaskEntity taskEntity, string owner)
        {
            if (owner is null && taskEntity.Owner is null)
            {
                return;
            }

            if (owner is object && taskEntity.ProcessInstanceId is object)
            {
                IdentityLinkEntityManager.InvolveUser(taskEntity.ProcessInstance, owner, IdentityLinkType.PARTICIPANT);
            }
        }