Workflow Engine .NET

Assembly: OptimaJet.Workflow.Core

Class ConditionDefinition

OptimaJet.Workflow.Core.Model.ConditionDefinition

Represent a transition's condition in a process scheme

public sealed class ConditionDefinition

Inheritance

  • System.Object

Properties

Name
Type
Type #
ConditionType
Type of the condition ConditionType
Action #
ActionDefinitionReference
Reference on the action if condition type is action ConditionType.Action
Expression #
String
Expression code (lambda) if condition type is expression ConditionType.Expression
ResultOnPreExecution #
Nullable<Boolean>
In pre-execution mode if not null the result of the condition will be overriden by the value
ConditionInversion #
Boolean
If true invert condition result if condition type is action ConditionType.Action
Always #
ConditionDefinition
Create the instance of ConditionDefinition object with always type ConditionType.Always
Otherwise #
ConditionDefinition
Create the instance of ConditionDefinition object with otherwise type ConditionType.Otherwise

Methods

public ConditionDefinition Clone() #

Returns

Type
Description
ConditionDefinition
public static ConditionDefinition CreateAlwaysCondition() #

Returns

Type
Description
ConditionDefinition
public static ConditionDefinition CreateOtherwiseCondition() #

Returns

Type
Description
ConditionDefinition
public static ConditionDefinition CreateActionCondition(ActionDefinitionReference action, bool conditionInversion, bool? resultOnPreExecution) #

Parameters

Name
Type
Description
action
ActionDefinitionReference
conditionInversion
Boolean
resultOnPreExecution
Nullable<Boolean>

Returns

Type
Description
ConditionDefinition
public static ConditionDefinition CreateExpressionCondition(string expression, bool conditionInversion, bool? resultOnPreExecution) #

Parameters

Name
Type
Description
expression
String
conditionInversion
Boolean
resultOnPreExecution
Nullable<Boolean>

Returns

Type
Description
ConditionDefinition