예제 #1
0
 /// <summary>
 /// Returns True if any of the roleIds are in the Roles for any sequence in this Workflow.
 /// </summary>
 /// <param name="roleIds"></param>
 /// <returns></returns>
 public bool AnyRoleInAnySequence(IEnumerable <Guid> roleIds)
 {
     return(WorkflowInstanceRoles.Any(x => roleIds.Contains(x.RoleId)));
 }
예제 #2
0
 /// <summary>
 /// Returns true if any of the roleids are in the Roles for the Current Sequence.
 /// </summary>
 /// <param name="roleIds"></param>
 /// <returns></returns>
 public bool AnyRoleInCurrentSequence(IEnumerable <Guid> roleIds)
 {
     return(WorkflowInstanceRoles.Any(x => x.Sequence == Sequence && roleIds.Contains(x.RoleId)));
 }