Interface ConditionsBuilder
public interface ConditionsBuilder
Builder interface for creating Conditions instances. This builder provides methods for
configuring workflow conditions using either script-based or alias-based condition definitions.
This builder is typically used as part of conditional result builders and transition builders to define the conditions that must be met for certain workflow paths to be taken.
- Since:
- 1.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault ConditionsBuilderaliasCondition(String value) Adds an alias-based condition without arguments to the conditions builder.aliasCondition(String value, Map<String, String> args) Adds an alias-based condition with arguments to the conditions builder.scriptCondition(String scriptType, String scriptContent) Adds a script-based condition to the conditions' builder.
-
Method Details
-
scriptCondition
Adds a script-based condition to the conditions' builder.- Parameters:
scriptType- the script type to usescriptContent- the script condition to add- Returns:
- this builder for method chaining
-
aliasCondition
Adds an alias-based condition with arguments to the conditions builder.- Parameters:
value- the alias value for the conditionargs- the arguments for the condition- Returns:
- this builder for method chaining
-
aliasCondition
Adds an alias-based condition without arguments to the conditions builder.- Parameters:
value- the alias value for the condition- Returns:
- this builder for method chaining
-