public Transition AllowInitiatorOnly(Tt t) { Trigger = t; AllowRoles.Clear(); AllowRoles.Add(Workflow.CurrentState.Initiator); return(this); }
public Transition Allow(List <Tr> roles, Tt t) { Trigger = t; AllowRoles.Clear(); foreach (var r in roles) { AllowRoles.Add(r); } return(this); }
public Transition AllowAll(Tt t) { Trigger = t; AllowRoles.Clear(); foreach (var r in Enum.GetValues(typeof(Tr))) { AllowRoles.Add((Tr)r); } return(this); }
public Transition Allow(Tr r, Tt t) { AllowRoles.Add(r); Trigger = t; return(this); }