Workflow Engine .NET  2
Public Member Functions | List of all members
OptimaJet.Workflow.Core.Runtime.IWorkflowRuleProvider Interface Reference

Interface of a rule provider, which provide rule checking and getting of a list of users which satisfies a rule TransitionDefinition.Restrictions More...

Inheritance diagram for OptimaJet.Workflow.Core.Runtime.IWorkflowRuleProvider:
OptimaJet.Workflow.Core.Runtime.EmptyWorkflowRuleProvider

Public Member Functions

List< string > GetRules ()
 Return all rule names More...
 
bool Check (ProcessInstance processInstance, WorkflowRuntime runtime, string identityId, string ruleName, string parameter)
 Check the rule More...
 
IEnumerable< string > GetIdentities (ProcessInstance processInstance, WorkflowRuntime runtime, string ruleName, string parameter)
 Get the list of users which satisfies the rule More...
 

Detailed Description

Interface of a rule provider, which provide rule checking and getting of a list of users which satisfies a rule TransitionDefinition.Restrictions

Member Function Documentation

◆ Check()

bool OptimaJet.Workflow.Core.Runtime.IWorkflowRuleProvider.Check ( ProcessInstance  processInstance,
WorkflowRuntime  runtime,
string  identityId,
string  ruleName,
string  parameter 
)

Check the rule

Parameters
processInstanceReference to ProcessInstance for which rule is checked ProcessInstance
runtimeReference to WorkflowRuntime object which managed specified process instance WorkflowRuntime
identityIdUser id for which rule is checking
ruleNameName of the rule to check
parameterAdditional rule parameter RestrictionDefinition.Actor ActorDefinition.Value
Returns
Rule check result

Implemented in OptimaJet.Workflow.Core.Runtime.EmptyWorkflowRuleProvider.

◆ GetIdentities()

IEnumerable<string> OptimaJet.Workflow.Core.Runtime.IWorkflowRuleProvider.GetIdentities ( ProcessInstance  processInstance,
WorkflowRuntime  runtime,
string  ruleName,
string  parameter 
)

Get the list of users which satisfies the rule

Parameters
processInstanceReference to ProcessInstance for which rule is checked ProcessInstance
runtimeReference to WorkflowRuntime object which managed specified process instance WorkflowRuntime
ruleNameName of the rule to get users list
parameterAdditional rule parameter RestrictionDefinition.Actor ActorDefinition.Value
Returns
List of users which satisfies the rule

Implemented in OptimaJet.Workflow.Core.Runtime.EmptyWorkflowRuleProvider.

◆ GetRules()

List<string> OptimaJet.Workflow.Core.Runtime.IWorkflowRuleProvider.GetRules ( )

Return all rule names

Returns
List of rule names

Implemented in OptimaJet.Workflow.Core.Runtime.EmptyWorkflowRuleProvider.