Class EmptyWorkflowRuleProvider
OptimaJet.Workflow.Core.Runtime.EmptyWorkflowRuleProvider
Empty rule provider for system purpose
Namespace: OptimaJet.Workflow.Core.Runtime
public class EmptyWorkflowRuleProvider : IWorkflowRuleProviderInheritance
- System.Object
Implemented Interfaces
Properties
Name
Type
Value #IWorkflowRuleProviderMethods
public List<string> GetRules(string schemeCode, NamesSearchType namesSearchType) #Return all rule names
Parameters
Name
Type
Description
schemeCodeStringnamesSearchTypeNamesSearchTypeReturns
Type
Description
List<String>List of rule names
public bool Check(ProcessInstance processInstance, WorkflowRuntime runtime, string identityId, string ruleName, string parameter) #Check the rule
Parameters
Name
Type
Description
processInstanceProcessInstanceReference to ProcessInstance for which rule is checked ProcessInstance
runtimeWorkflowRuntimeReference to WorkflowRuntime object which managed specified process instance WorkflowRuntime
identityIdStringUser id for which rule is checking
ruleNameStringName of the rule to check
Returns
Type
Description
BooleanRule check result
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
processInstanceProcessInstanceReference to ProcessInstance for which rule is checked ProcessInstance
runtimeWorkflowRuntimeReference to WorkflowRuntime object which managed specified process instance WorkflowRuntime
ruleNameStringName of the rule to get users list
Returns
Type
Description
IEnumerable<String>List of users which satisfies the rule
public Task<bool> CheckAsync(ProcessInstance processInstance, WorkflowRuntime runtime, string identityId, string ruleName, string parameter, CancellationToken token) #Check the rule asynchronously
Parameters
Name
Type
Description
processInstanceProcessInstanceReference to ProcessInstance for which rule is checked ProcessInstance
runtimeWorkflowRuntimeReference to WorkflowRuntime object which managed specified process instance WorkflowRuntime
identityIdStringUser id for which rule is checking
ruleNameStringName of the rule to check
tokenCancellationTokenCancellation token to cancel the operation
Returns
Type
Description
Task<Boolean>Rule check result
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
processInstanceProcessInstanceReference to ProcessInstance for which rule is checked ProcessInstance
runtimeWorkflowRuntimeReference to WorkflowRuntime object which managed specified process instance WorkflowRuntime
ruleNameStringName of the rule to get users list
tokenCancellationTokenCancellation token to cancel the operation
Returns
Type
Description
Task<String>List of users which satisfies the rule
public bool IsCheckAsync(string ruleName, string schemeCode) #Checks whether Check the rule should be called asynchronously
Parameters
Name
Type
Description
ruleNameStringName of the action
schemeCodeStringCode of the scheme to which the rule belongs
Returns
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
ruleNameStringName of the condition
schemeCodeStringCode of the scheme to which the rule belongs
Returns
Type
Description
Boolean