Workflow Engine .NET

Assembly: OptimaJet.Workflow.Core

Class DeactivatedWorkflowRuleProvider

OptimaJet.Workflow.Core.Runtime.DeactivatedWorkflowRuleProvider

public sealed class DeactivatedWorkflowRuleProvider : IWorkflowRuleProvider

Inheritance

  • System.Object

Implemented Interfaces

Constructors

public DeactivatedWorkflowRuleProvider(IWorkflowRuleProvider activatedRuleProvider, Func<bool> getDisabled) #

Parameters

Name
Type
Description
activatedRuleProvider
IWorkflowRuleProvider
getDisabled
Func<Boolean>

Methods

public List<string> GetRules(string schemeCode, NamesSearchType namesSearchType) #
Return all rule names

Parameters

Name
Type
Description
schemeCode
String
namesSearchType
NamesSearchType

Returns

Type
Description
List<String>
public bool Check(ProcessInstance processInstance, WorkflowRuntime runtime, string identityId, string ruleName, string parameter) #
Check the rule

Parameters

Name
Type
Description
processInstance
ProcessInstance
runtime
WorkflowRuntime
identityId
String
ruleName
String
parameter
String

Returns

Type
Description
Boolean
public Task<bool> CheckAsync(ProcessInstance processInstance, WorkflowRuntime runtime, string identityId, string ruleName, string parameter, CancellationToken token) #
Check the rule asynchronously

Parameters

Name
Type
Description
processInstance
ProcessInstance
runtime
WorkflowRuntime
identityId
String
ruleName
String
parameter
String
token
CancellationToken

Returns

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
processInstance
ProcessInstance
runtime
WorkflowRuntime
ruleName
String
parameter
String

Returns

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
processInstance
ProcessInstance
runtime
WorkflowRuntime
ruleName
String
parameter
String
token
CancellationToken

Returns

Type
Description
Task<String>
public bool IsCheckAsync(string ruleName, string schemeCode) #
Checks whether Check the rule should be called asynchronously

Parameters

Name
Type
Description
ruleName
String
schemeCode
String

Returns

Type
Description
Boolean
public 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
ruleName
String
schemeCode
String

Returns

Type
Description
Boolean