public static IFluentConfigurator <IWorkflowConditionalObject <TWf> > NeedValidator <TWf>(this IFluentConfigurator <IWorkflowConditionalObject <TWf> > t) where TWf : Workflow <TWf> { return(t.NotWhen(w => !Acl.IsGranted(AnalysisRights.AnalysisResultValidate , w.User, w.Target)) .WithMessage(w => "validator needed")); }
public static IFluentConfigurator <IWorkflowConditionalObject <TWf> > NeedPlanner <TWf>(this IFluentConfigurator <IWorkflowConditionalObject <TWf> > t) where TWf : NotifierBase, IWorkflow <TWf> { return(t.NotWhen(w => !Acl.IsGranted(AnalysisRights.AnalysisSchedule , w.User, w.Target)) .WithMessage(w => "planner needed")); }
public static IFluentConfigurator <IWorkflowConditionalObject <TWf> > NeedPharmacist <TWf>(this IFluentConfigurator <IWorkflowConditionalObject <TWf> > t) where TWf : NotifierBase, IWorkflow <TWf> { return(t.NotWhen(w => !Acl.IsGranted( AnalysisRights.AnalysisCertificateCreate, w.User, w.Target)) .WithMessage(w => "{Pharmacist needed}")); }