org.pentaho.platform.plugin.condition.javascript
Class ConditionalExecution
java.lang.Object
org.pentaho.platform.plugin.condition.javascript.ConditionalExecution
- All Implemented Interfaces:
- IConditionalExecution
public class ConditionalExecution
- extends Object
- implements IConditionalExecution
Method Summary |
String |
getScript()
|
void |
setScript(String script)
Sets the script that will be executed in shouldExecute to evaluate condition |
boolean |
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. |
ConditionalExecution
public ConditionalExecution()
getScript
public String getScript()
- Specified by:
getScript
in interface IConditionalExecution
- Returns:
- Script that will be executed in shouldExecute to evaluate condition
setScript
public void setScript(String script)
- Description copied from interface:
IConditionalExecution
- Sets the script that will be executed in shouldExecute to evaluate condition
- Specified by:
setScript
in interface IConditionalExecution
shouldExecute
public boolean shouldExecute(Map currentInputs,
org.apache.commons.logging.Log logger)
throws Exception
- Description copied from interface:
IConditionalExecution
- Uses current inputs, and the set script to "decide" whether to
execute the current block of actions.
Condition node example:
... action definitions ...
- Specified by:
shouldExecute
in interface IConditionalExecution
- Returns:
- true if the actions should be executed
- Throws:
Exception