Seperated the check for bypassable approvals.
This commit is contained in:
parent
a12731142c
commit
028f40437e
@ -214,10 +214,14 @@ public class WorkflowProcessor : IWorkflowProcessor
|
|||||||
Role = typedAssignee.Role!,
|
Role = typedAssignee.Role!,
|
||||||
User = typedAssignee.User!,
|
User = typedAssignee.User!,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (typedAssignee is IBypassable bypassableAssignee)
|
||||||
|
{
|
||||||
|
activityAssignment.Bypassable = bypassableAssignee.Bypassable;
|
||||||
|
}
|
||||||
|
|
||||||
if (typedAssignee is IApprovalTaskAssignee approvalAssignee)
|
if (typedAssignee is IApprovalTaskAssignee approvalAssignee)
|
||||||
{
|
{
|
||||||
activityAssignment.Bypassable = approvalAssignee.Bypassable;
|
|
||||||
activityAssignment.AllowNoVerdict = approvalAssignee.AllowNoVerdict;
|
activityAssignment.AllowNoVerdict = approvalAssignee.AllowNoVerdict;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user