Class DeactivatedWorkflowRuleProvider
OptimaJet.Workflow.Core.Runtime.DeactivatedWorkflowRuleProvider
Namespace: OptimaJet.Workflow.Core.Runtime
public sealed class DeactivatedWorkflowRuleProvider : IWorkflowRuleProviderInheritance
- System.Object
Implemented Interfaces
Constructors
public DeactivatedWorkflowRuleProvider(IWorkflowRuleProvider activatedRuleProvider, Func<bool> getDisabled) #Parameters
Name
Type
Description
activatedRuleProviderIWorkflowRuleProvidergetDisabledFunc<Boolean>Methods
public List<string> GetRules(string schemeCode, NamesSearchType namesSearchType) #Return all rule names
Parameters
Name
Type
Description
schemeCodeStringnamesSearchTypeNamesSearchTypeReturns
Type
Description
List<String>public bool Check(ProcessInstance processInstance, WorkflowRuntime runtime, string identityId, string ruleName, string parameter) #Check the rule
Parameters
Name
Type
Description
processInstanceProcessInstanceruntimeWorkflowRuntimeidentityIdStringruleNameStringparameterStringReturns
Type
Description
Booleanpublic Task<bool> CheckAsync(ProcessInstance processInstance, WorkflowRuntime runtime, string identityId, string ruleName, string parameter, CancellationToken token) #Check the rule asynchronously
Parameters
Name
Type
Description
processInstanceProcessInstanceruntimeWorkflowRuntimeidentityIdStringruleNameStringparameterStringtokenCancellationTokenReturns
Type
Description
Task<Boolean>public IEnumerable<string> GetIdentities(ProcessInstance processInstance, WorkflowRuntime runtime, string ruleName, string parameter) #Get the list of users which satisfies the rule
Parameters
Name
Type
Description
processInstanceProcessInstanceruntimeWorkflowRuntimeruleNameStringparameterStringReturns
Type
Description
IEnumerable<String>public Task<IEnumerable<string>> GetIdentitiesAsync(ProcessInstance processInstance, WorkflowRuntime runtime, string ruleName, string parameter, CancellationToken token) #Get the list of users which satisfies the rule asynchronously
Parameters
Name
Type
Description
processInstanceProcessInstanceruntimeWorkflowRuntimeruleNameStringparameterStringtokenCancellationTokenReturns
Type
Description
Task<String>public bool IsCheckAsync(string ruleName, string schemeCode) #Checks whether Check the rule should be called asynchronously
Parameters
Name
Type
Description
ruleNameStringschemeCodeStringReturns
Type
Description
Booleanpublic bool IsGetIdentitiesAsync(string ruleName, string schemeCode) #Checks whether Get the list of users which satisfies the rule should be called asynchronously
Parameters
Name
Type
Description
ruleNameStringschemeCodeStringReturns
Type
Description
Boolean