Class ConditionDefinition
OptimaJet.Workflow.Core.Model.ConditionDefinition
Represent a transition's condition in a process scheme
Namespace: OptimaJet.Workflow.Core.Model
public sealed class ConditionDefinitionInheritance
- System.Object
Properties
Name
Type
Type #ConditionTypeType of the condition ConditionType
Action #ActionDefinitionReferenceReference on the action if condition type is action ConditionType.Action
Expression #StringExpression 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 #BooleanIf true invert condition result if condition type is action ConditionType.Action
Always #ConditionDefinitionCreate the instance of ConditionDefinition object with always type ConditionType.Always
Otherwise #ConditionDefinitionCreate the instance of ConditionDefinition object with otherwise type ConditionType.Otherwise
Methods
public ConditionDefinition Clone() #Returns
Type
Description
ConditionDefinitionpublic static ConditionDefinition CreateAlwaysCondition() #Returns
Type
Description
ConditionDefinitionpublic static ConditionDefinition CreateOtherwiseCondition() #Returns
Type
Description
ConditionDefinitionpublic static ConditionDefinition CreateActionCondition(ActionDefinitionReference action, bool conditionInversion, bool? resultOnPreExecution) #Parameters
Name
Type
Description
actionActionDefinitionReferenceconditionInversionBooleanresultOnPreExecutionNullable<Boolean>Returns
Type
Description
ConditionDefinitionpublic static ConditionDefinition CreateExpressionCondition(string expression, bool conditionInversion, bool? resultOnPreExecution) #Parameters
Name
Type
Description
expressionStringconditionInversionBooleanresultOnPreExecutionNullable<Boolean>Returns
Type
Description
ConditionDefinition