Package wt.rule.algorithm
Class BooleanBranch
java.lang.Object
wt.rule.algorithm.BooleanBranch
- All Implemented Interfaces:
RuleAlgorithm
This algorithm returns one of two values based on a boolean value. The algorithm takes three arguments:
Supported API: true
Extendable: false
- boolean value
- value to return if first argument is
true - value to return if first argumetn is
false
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptioncalculate(Object[] args, WTContainerRef container) Execute the algorithm using the specified arguments.
-
Method Details
-
calculate
Execute the algorithm using the specified arguments. Return the result.
Supported API: true- Specified by:
calculatein interfaceRuleAlgorithm- Parameters:
args- the arguments for the algorithmcontainer- the container to use for object lookups- Returns:
- Object
- Throws:
WTException
-