Interface ITransitionConditionsBuilder
OptimaJet.Workflow.Core.Model.Builder.ITransitionConditionsBuilder
Provides fluent operations for configuring the ConditionType.Action and ConditionType.Expression conditions in TransitionDefinition.Conditions.
Namespace: OptimaJet.Workflow.Core.Model.Builder
public interface ITransitionConditionsBuilder : ITransitionBuilder, IProcessDefinitionBuilderType Hierarchy
- ITransitionConditionsBuilder Current type
- Base interfaces
- Derived interfaces
Methods
ITransitionConditionBuilder CreateCondition(string conditionName) #Creates a new ConditionType.Action condition on the current transition.
Parameters
Name
Type
Description
conditionNameStringThe condition implementation name to assign to ActionDefinitionReference.ActionName.
Returns
Type
Description
ITransitionConditionBuilderAn ITransitionConditionBuilder for configuring the new condition.
Exceptions
Type
Description
TransitionConditionAlreadyExistsExceptionA ConditionType.Action condition with the specified
conditionName already exists on the current transition.ITransitionConditionBuilder CreateOrUpdateCondition(string conditionName) #Creates a new ConditionType.Action condition or selects an existing matching condition for configuration.
Parameters
Name
Type
Description
conditionNameStringThe condition implementation name stored in ActionDefinitionReference.ActionName.
Returns
Type
Description
ITransitionConditionBuilderAn ITransitionConditionBuilder for configuring the created or selected condition.
ITransitionConditionBuilder UpdateCondition(string conditionName) #Selects an existing ConditionType.Action condition for configuration.
Parameters
Name
Type
Description
conditionNameStringThe condition implementation name stored in ActionDefinitionReference.ActionName.
Returns
Type
Description
ITransitionConditionBuilderAn ITransitionConditionBuilder for configuring the selected condition.
Exceptions
Type
Description
TransitionConditionNotFoundExceptionNo ConditionType.Action condition with the specified
conditionName exists on the current transition.ITransitionConditionsBuilder DeleteCondition(string conditionName) #Removes all ConditionType.Action conditions with the specified implementation name from the current transition.
Parameters
Name
Type
Description
conditionNameStringThe condition implementation name stored in ActionDefinitionReference.ActionName.
Returns
Type
Description
ITransitionConditionsBuilderThe same ITransitionConditionsBuilder instance for method chaining.
ITransitionConditionsBuilder DeleteConditionsAndExpressions() #Removes every ConditionDefinition from TransitionDefinition.Conditions on the current transition.
Returns
Type
Description
ITransitionConditionsBuilderThe same ITransitionConditionsBuilder instance for method chaining.
ITransitionConditionsBuilder DeleteConditions() #Removes all ConditionType.Action conditions from TransitionDefinition.Conditions on the current transition.
Returns
Type
Description
ITransitionConditionsBuilderThe same ITransitionConditionsBuilder instance for method chaining.
ITransitionConditionsBuilder DeleteExpressions() #Removes all ConditionType.Expression conditions from TransitionDefinition.Conditions on the current transition.
Returns
Type
Description
ITransitionConditionsBuilderThe same ITransitionConditionsBuilder instance for method chaining.
ITransitionExpressionBuilder CreateExpression(string expression) #Creates a new ConditionType.Expression condition on the current transition.
Parameters
Name
Type
Description
Returns
Type
Description
ITransitionExpressionBuilderAn ITransitionExpressionBuilder for configuring the new condition.
Exceptions
Type
Description
TransitionConditionAlreadyExistsExceptionA ConditionType.Expression condition with the specified
expression already exists on the current transition.ITransitionExpressionBuilder CreateOrUpdateExpression(string expression) #Creates a new ConditionType.Expression condition or selects an existing matching condition for configuration.
Parameters
Name
Type
Description
Returns
Type
Description
ITransitionExpressionBuilderAn ITransitionExpressionBuilder for configuring the created or selected condition.
ITransitionExpressionBuilder UpdateExpression(string expression) #Selects an existing ConditionType.Expression condition for configuration.
Parameters
Name
Type
Description
Returns
Type
Description
ITransitionExpressionBuilderAn ITransitionExpressionBuilder for configuring the selected condition.
Exceptions
Type
Description
TransitionConditionNotFoundExceptionNo ConditionType.Expression condition with the specified
expression exists on the current transition.ITransitionConditionsBuilder DeleteExpression(string expression) #Removes all ConditionType.Expression conditions with the specified expression text from the current transition.
Parameters
Name
Type
Description
Returns
Type
Description
ITransitionConditionsBuilderThe same ITransitionConditionsBuilder instance for method chaining.
ITransitionConditionsBuilder ConcatConditionsByAnd() #Sets TransitionDefinition.ConditionsConcatenationType to ConcatenationType.And to combine the current transition's conditions using logical AND.
Returns
Type
Description
ITransitionConditionsBuilderThe same ITransitionConditionsBuilder instance for method chaining.
ITransitionConditionsBuilder ConcatConditionsByOr() #Sets TransitionDefinition.ConditionsConcatenationType to ConcatenationType.Or to combine the current transition's conditions using logical OR.
Returns
Type
Description
ITransitionConditionsBuilderThe same ITransitionConditionsBuilder instance for method chaining.