org.pentaho.platform.plugin.condition.javascript
Class ConditionalExecution

java.lang.Object
  extended by org.pentaho.platform.plugin.condition.javascript.ConditionalExecution
All Implemented Interfaces:
IConditionalExecution

public class ConditionalExecution
extends Object
implements IConditionalExecution


Constructor Summary
ConditionalExecution()
           
 
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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConditionalExecution

public ConditionalExecution()
Method Detail

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