Class DeactivatedWorkflowActionProvider
Inheritance
↳ object
↳ DeactivatedWorkflowActionProvider
Implements
IWorkflowActionProvider
Inherited Members
Equals(object)
Equals(object, object)
GetHashCode()
GetType()
ReferenceEquals(object, object)
ToString()
Namespace: OptimaJet.Workflow.Core.Runtime
Assembly: OptimaJet.Workflow.Core.dll
Syntaxpublic sealed class DeactivatedWorkflowActionProvider : IWorkflowActionProvider
Constructors
DeactivatedWorkflowActionProvider(IWorkflowActionProvider, Func<bool>)
Declarationpublic DeactivatedWorkflowActionProvider(IWorkflowActionProvider activatedActionProvider, Func<bool> getDisabled)
Type | Name | Description |
---|---|---|
IWorkflowActionProvider | activatedActionProvider | |
Func<bool> | getDisabled |
Methods
ExecuteAction(string, ProcessInstance, WorkflowRuntime, string)
Execute action
Declarationpublic void ExecuteAction(string name, ProcessInstance processInstance, WorkflowRuntime runtime, string actionParameter)
Type | Name | Description |
---|---|---|
string | name | Name of the action to execute |
ProcessInstance | processInstance | Reference to ProcessInstance from which action is executed <xref href="OptimaJet.Workflow.Core.Model.ProcessInstance" data-throw-if-not-resolved="false"></xref> |
WorkflowRuntime | runtime | Reference to WorkflowRuntime object which managed specified process instance <xref href="OptimaJet.Workflow.Core.Runtime.WorkflowRuntime" data-throw-if-not-resolved="false"></xref> |
string | actionParameter | Additional action parameter <xref href="OptimaJet.Workflow.Core.Model.ActionDefinitionReference.ActionParameter" data-throw-if-not-resolved="false"></xref> |
ExecuteActionAsync(string, ProcessInstance, WorkflowRuntime, string, CancellationToken)
Execute action asynchronously
Declarationpublic Task ExecuteActionAsync(string name, ProcessInstance processInstance, WorkflowRuntime runtime, string actionParameter, CancellationToken token)
Type | Name | Description |
---|---|---|
string | name | Name of the action to execute |
ProcessInstance | processInstance | Reference to ProcessInstance from which action is executed <xref href="OptimaJet.Workflow.Core.Model.ProcessInstance" data-throw-if-not-resolved="false"></xref> |
WorkflowRuntime | runtime | Reference to WorkflowRuntime object which managed specified process instance <xref href="OptimaJet.Workflow.Core.Runtime.WorkflowRuntime" data-throw-if-not-resolved="false"></xref> |
string | actionParameter | Additional action parameter <xref href="OptimaJet.Workflow.Core.Model.ActionDefinitionReference.ActionParameter" data-throw-if-not-resolved="false"></xref> |
CancellationToken | token | Cancellation token |
Type | Description |
---|---|
Task |
ExecuteCondition(string, ProcessInstance, WorkflowRuntime, string)
Check condition
Declarationpublic bool ExecuteCondition(string name, ProcessInstance processInstance, WorkflowRuntime runtime, string actionParameter)
Type | Name | Description |
---|---|---|
string | name | Name of the condition to check |
ProcessInstance | processInstance | Reference to ProcessInstance from which condition is checked <xref href="OptimaJet.Workflow.Core.Model.ProcessInstance" data-throw-if-not-resolved="false"></xref> |
WorkflowRuntime | runtime | Reference to WorkflowRuntime object which managed specified process instance <xref href="OptimaJet.Workflow.Core.Runtime.WorkflowRuntime" data-throw-if-not-resolved="false"></xref> |
string | actionParameter | Additional action parameter <xref href="OptimaJet.Workflow.Core.Model.ActionDefinitionReference.ActionParameter" data-throw-if-not-resolved="false"></xref> |
Type | Description |
---|---|
bool | Condition result |
ExecuteConditionAsync(string, ProcessInstance, WorkflowRuntime, string, CancellationToken)
Check condition asynchronously
Declarationpublic Task<bool> ExecuteConditionAsync(string name, ProcessInstance processInstance, WorkflowRuntime runtime, string actionParameter, CancellationToken token)
Type | Name | Description |
---|---|---|
string | name | Name of the condition to check |
ProcessInstance | processInstance | Reference to ProcessInstance from which condition is checked <xref href="OptimaJet.Workflow.Core.Model.ProcessInstance" data-throw-if-not-resolved="false"></xref> |
WorkflowRuntime | runtime | Reference to WorkflowRuntime object which managed specified process instance <xref href="OptimaJet.Workflow.Core.Runtime.WorkflowRuntime" data-throw-if-not-resolved="false"></xref> |
string | actionParameter | Additional action parameter <xref href="OptimaJet.Workflow.Core.Model.ActionDefinitionReference.ActionParameter" data-throw-if-not-resolved="false"></xref> |
CancellationToken | token | Cancellation token |
Type | Description |
---|---|
Task<bool> | Condition result |
IsActionAsync(string, string)
Checks whether the action should be called asynchronously
Declarationpublic bool IsActionAsync(string name, string schemeCode)
Type | Name | Description |
---|---|---|
string | name | Name of the action |
string | schemeCode | Scheme code |
Type | Description |
---|---|
bool |
IsConditionAsync(string, string)
Checks whether the condition should be called asynchronously
Declarationpublic bool IsConditionAsync(string name, string schemeCode)
Type | Name | Description |
---|---|---|
string | name | Name of the condition |
string | schemeCode | Scheme code |
Type | Description |
---|---|
bool |
GetActions(string, NamesSearchType)
Return all user actions names
Declarationpublic List<string> GetActions(string schemeCode, NamesSearchType namesSearchType)
Type | Name | Description |
---|---|---|
string | schemeCode | Scheme code |
NamesSearchType | namesSearchType |
Type | Description |
---|---|
List<string> | List of actions names |
GetConditions(string, NamesSearchType)
Return all user conditions names
Declarationpublic List<string> GetConditions(string schemeCode, NamesSearchType namesSearchType)
Type | Name | Description |
---|---|---|
string | schemeCode | Scheme code |
NamesSearchType | namesSearchType |
Type | Description |
---|---|
List<string> | List of conditions names |