Skip to main content

Introducing Formengine - The New Formbuilder, try for FREE formengine.io.

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

Syntax
public sealed class DeactivatedWorkflowActionProvider : IWorkflowActionProvider

Constructors

DeactivatedWorkflowActionProvider(IWorkflowActionProvider, Func<bool>)

Declaration
public DeactivatedWorkflowActionProvider(IWorkflowActionProvider activatedActionProvider, Func<bool> getDisabled)
Parameters
TypeNameDescription
IWorkflowActionProvideractivatedActionProvider
Func<bool>getDisabled

Methods

ExecuteAction(string, ProcessInstance, WorkflowRuntime, string)

Execute action

Declaration
public void ExecuteAction(string name, ProcessInstance processInstance, WorkflowRuntime runtime, string actionParameter)
Parameters
TypeNameDescription
stringnameName of the action to execute
ProcessInstanceprocessInstanceReference to ProcessInstance from which action is executed <xref href="OptimaJet.Workflow.Core.Model.ProcessInstance" data-throw-if-not-resolved="false"></xref>
WorkflowRuntimeruntimeReference to WorkflowRuntime object which managed specified process instance <xref href="OptimaJet.Workflow.Core.Runtime.WorkflowRuntime" data-throw-if-not-resolved="false"></xref>
stringactionParameterAdditional 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

Declaration
public Task ExecuteActionAsync(string name, ProcessInstance processInstance, WorkflowRuntime runtime, string actionParameter, CancellationToken token)
Parameters
TypeNameDescription
stringnameName of the action to execute
ProcessInstanceprocessInstanceReference to ProcessInstance from which action is executed <xref href="OptimaJet.Workflow.Core.Model.ProcessInstance" data-throw-if-not-resolved="false"></xref>
WorkflowRuntimeruntimeReference to WorkflowRuntime object which managed specified process instance <xref href="OptimaJet.Workflow.Core.Runtime.WorkflowRuntime" data-throw-if-not-resolved="false"></xref>
stringactionParameterAdditional action parameter <xref href="OptimaJet.Workflow.Core.Model.ActionDefinitionReference.ActionParameter" data-throw-if-not-resolved="false"></xref>
CancellationTokentokenCancellation token
Returns
TypeDescription
Task

ExecuteCondition(string, ProcessInstance, WorkflowRuntime, string)

Check condition

Declaration
public bool ExecuteCondition(string name, ProcessInstance processInstance, WorkflowRuntime runtime, string actionParameter)
Parameters
TypeNameDescription
stringnameName of the condition to check
ProcessInstanceprocessInstanceReference to ProcessInstance from which condition is checked <xref href="OptimaJet.Workflow.Core.Model.ProcessInstance" data-throw-if-not-resolved="false"></xref>
WorkflowRuntimeruntimeReference to WorkflowRuntime object which managed specified process instance <xref href="OptimaJet.Workflow.Core.Runtime.WorkflowRuntime" data-throw-if-not-resolved="false"></xref>
stringactionParameterAdditional action parameter <xref href="OptimaJet.Workflow.Core.Model.ActionDefinitionReference.ActionParameter" data-throw-if-not-resolved="false"></xref>
Returns
TypeDescription
boolCondition result

ExecuteConditionAsync(string, ProcessInstance, WorkflowRuntime, string, CancellationToken)

Check condition asynchronously

Declaration
public Task<bool> ExecuteConditionAsync(string name, ProcessInstance processInstance, WorkflowRuntime runtime, string actionParameter, CancellationToken token)
Parameters
TypeNameDescription
stringnameName of the condition to check
ProcessInstanceprocessInstanceReference to ProcessInstance from which condition is checked <xref href="OptimaJet.Workflow.Core.Model.ProcessInstance" data-throw-if-not-resolved="false"></xref>
WorkflowRuntimeruntimeReference to WorkflowRuntime object which managed specified process instance <xref href="OptimaJet.Workflow.Core.Runtime.WorkflowRuntime" data-throw-if-not-resolved="false"></xref>
stringactionParameterAdditional action parameter <xref href="OptimaJet.Workflow.Core.Model.ActionDefinitionReference.ActionParameter" data-throw-if-not-resolved="false"></xref>
CancellationTokentokenCancellation token
Returns
TypeDescription
Task<bool>Condition result

IsActionAsync(string, string)

Checks whether the action should be called asynchronously

Declaration
public bool IsActionAsync(string name, string schemeCode)
Parameters
TypeNameDescription
stringnameName of the action
stringschemeCodeScheme code
Returns
TypeDescription
bool

IsConditionAsync(string, string)

Checks whether the condition should be called asynchronously

Declaration
public bool IsConditionAsync(string name, string schemeCode)
Parameters
TypeNameDescription
stringnameName of the condition
stringschemeCodeScheme code
Returns
TypeDescription
bool

GetActions(string, NamesSearchType)

Return all user actions names

Declaration
public List<string> GetActions(string schemeCode, NamesSearchType namesSearchType)
Parameters
TypeNameDescription
stringschemeCodeScheme code
NamesSearchTypenamesSearchType
Returns
TypeDescription
List<string>List of actions names

GetConditions(string, NamesSearchType)

Return all user conditions names

Declaration
public List<string> GetConditions(string schemeCode, NamesSearchType namesSearchType)
Parameters
TypeNameDescription
stringschemeCodeScheme code
NamesSearchTypenamesSearchType
Returns
TypeDescription
List<string>List of conditions names

Extension Methods