Package org.chenile.owiz.impl.ognl
Class EvaluateRouter<InputType>
java.lang.Object
org.chenile.owiz.impl.CommandBase<InputType>
org.chenile.owiz.impl.Router<InputType>
org.chenile.owiz.impl.ognl.EvaluateRouter<InputType>
- Type Parameters:
InputType
-
- All Implemented Interfaces:
AttachableCommand<InputType>
,BypassableCommand<InputType>
,Command<InputType>
,OrchestrationAware<InputType>
This is a specific subclass of
Router
that uses OGNL to evaluate a boolean expression
on the context. It returns true or false based on the evaluation. This allows us to
do simple evaluations as part of the OWIZ xml itself instead of the need to subclass and
implement this logic. It serves like an "IF statement " and is often aliased to that. See the
test cases to understand the logic.-
Field Summary
Fields inherited from class org.chenile.owiz.impl.Router
commandsMap, DEFAULT, defaultCommandDescriptor, ROUTE
Fields inherited from class org.chenile.owiz.impl.CommandBase
commandDescriptor, orchConfigurator
-
Constructor Summary
-
Method Summary
Methods inherited from class org.chenile.owiz.impl.Router
attachCommand, doExecute
Methods inherited from class org.chenile.owiz.impl.CommandBase
bypass, execute, getConfigValue, getId, getParentId, obtainCommand, postprocess, preprocess, setCommandDescriptor, setOrchConfigurator
-
Field Details
-
EXPRESSION
- See Also:
-
-
Constructor Details
-
EvaluateRouter
public EvaluateRouter()
-
-
Method Details
-
computeRoutingString
- Specified by:
computeRoutingString
in classRouter<InputType>
- Throws:
Exception
-