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 java.lang.Object
- implements IConditionalExecution
Method Summary |
java.lang.String |
getScript()
|
void |
setScript(java.lang.String script)
Sets the script that will be executed in shouldExecute to evaluate condition |
boolean |
shouldExecute(java.util.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. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConditionalExecution
public ConditionalExecution()
getScript
public java.lang.String getScript()
- Specified by:
getScript
in interface IConditionalExecution
- Returns:
- Script that will be executed in shouldExecute to evaluate condition
setScript
public void setScript(java.lang.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(java.util.Map currentInputs,
org.apache.commons.logging.Log logger)
throws java.lang.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:
java.lang.Exception