Skip to main content

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

Class ExecutionRequestParameters

Represent execution request which contains conditions and actions

Inheritance

↳ object

    ↳ ExecutionRequestParameters

Inherited Members

Equals(object)

Equals(object, object)

GetHashCode()

GetType()

ReferenceEquals(object, object)

ToString()

Namespace: OptimaJet.Workflow.Core.Execution

Assembly: OptimaJet.Workflow.Core.dll

Syntax
public sealed class ExecutionRequestParameters

Properties

Methods

List of actions to execute in the case of conditions are satisfied

Declaration
public ActionDefinitionReference[] Methods { get; set; }
Property value
TypeDescription
OptimaJet.Workflow.Core.Model.ActionDefinitionReference[]

Conditions

List of conditions to check

Declaration
public ConditionDefinition[] Conditions { get; set; }
Property value
TypeDescription
OptimaJet.Workflow.Core.Model.ConditionDefinition[]

TransitionName

Executed transition name

Declaration
public string TransitionName { get; set; }
Property value
TypeDescription
string

ActivityName

Executed activity name TransitionDefinition.To

Declaration
public string ActivityName { get; set; }
Property value
TypeDescription
string

ConditionsConcatenationType

Type of concatenation for conditions

Declaration
public ConcatenationType ConditionsConcatenationType { get; set; }
Property value
TypeDescription
ConcatenationType

Activity

Activity to execute

Declaration
public ActivityDefinition Activity { get; }
Property value
TypeDescription
ActivityDefinition

IsAlways

Returns true if condition type of the transition is equal "Always" ConditionType.Always

Declaration
public bool IsAlways { get; }
Property value
TypeDescription
bool

IsOtherwise

Returns true if condition type of the transition is equal "Otherwise" ConditionType.Otherwise

Declaration
public bool IsOtherwise { get; }
Property value
TypeDescription
bool

IsConditionOrExpression

Returns true if condition type of the transition is equal "Action" ConditionType.Action or expression ConditionType.Expression

Declaration
public bool IsConditionOrExpression { get; }
Property value
TypeDescription
bool

HasExpression

Returns true if any condition is Expression condition

Declaration
public bool HasExpression { get; }
Property value
TypeDescription
bool

Methods

Create(TransitionDefinition)

Create ExecutionRequestParameters object

Declaration
public static ExecutionRequestParameters Create(TransitionDefinition transition)
Parameters
TypeNameDescription
TransitionDefinitiontransitionExecuted transition
Returns
TypeDescription
ExecutionRequestParametersExecutionRequestParameters object

Create(TransitionDefinition, bool)

Create ExecutionRequestParameters object

Declaration
public static ExecutionRequestParameters Create(TransitionDefinition transition, bool isPreExecution)
Parameters
TypeNameDescription
TransitionDefinitiontransitionExecuted transition
boolisPreExecutionIf true pre-execution implementation will be requested to execute <xref href="OptimaJet.Workflow.Core.Model.ActivityDefinition.PreExecutionImplementation" data-throw-if-not-resolved="false"></xref>, if false implementation will be requested to execute <xref href="OptimaJet.Workflow.Core.Model.ActivityDefinition.Implementation" data-throw-if-not-resolved="false"></xref>
Returns
TypeDescription
ExecutionRequestParametersExecutionRequestParameters object

Create(ActivityDefinition, List<ConditionDefinition>)

Create ExecutionRequestParameters object

Declaration
public static ExecutionRequestParameters Create(ActivityDefinition activityToExecute, List<ConditionDefinition> conditions)
Parameters
TypeNameDescription
ActivityDefinitionactivityToExecuteActivity to execute
List<ConditionDefinition>conditionsList of conditions to check
Returns
TypeDescription
ExecutionRequestParametersExecutionRequestParameters object

Create(ActivityDefinition, List<ConditionDefinition>, bool)

Create ExecutionRequestParameters object

Declaration
public static ExecutionRequestParameters Create(ActivityDefinition activityToExecute, List<ConditionDefinition> conditions, bool isPreExecution)
Parameters
TypeNameDescription
ActivityDefinitionactivityToExecuteActivity to execute
List<ConditionDefinition>conditionsList of conditions to check
boolisPreExecutionIf true pre-execution implementation will be requested to execute <xref href="OptimaJet.Workflow.Core.Model.ActivityDefinition.PreExecutionImplementation" data-throw-if-not-resolved="false"></xref>, if false implementation will be requested to execute <xref href="OptimaJet.Workflow.Core.Model.ActivityDefinition.Implementation" data-throw-if-not-resolved="false"></xref>
Returns
TypeDescription
ExecutionRequestParametersExecutionRequestParameters object

Extension Methods