Package org.pentaho.platform.api.engine
Interface IConditionalExecution
public interface IConditionalExecution
This interface supports conditional execution of action sequence 'actions' blocks
- Author:
- Marc Batchelor June 2008
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Sets the script that will be executed in shouldExecute to evaluate conditionboolean
shouldExecute
(Map currentInputs, org.apache.commons.logging.Log logger) Uses current inputs, and the set script to "decide" whether to execute the current block of actions.
-
Method Details
-
getScript
String getScript()- Returns:
- Script that will be executed in shouldExecute to evaluate condition
-
setScript
Sets the script that will be executed in shouldExecute to evaluate condition- Parameters:
script
-
-
shouldExecute
Uses current inputs, and the set script to "decide" whether to execute the current block of actions. Condition node example:<![CDATA[chart_type == 'bar']]> ... action definitions ...- Parameters:
currentInputs
-logger
-- Returns:
- true if the actions should be executed
- Throws:
Exception
-