org.pentaho.platform.api.engine
Interface IConditionalExecution

All Known Implementing Classes:
ConditionalExecution

public interface IConditionalExecution

This interface supports conditional execution of action sequence 'actions' blocks

Author:
Marc Batchelor June 2008

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.
 

Method Detail

getScript

String getScript()
Returns:
Script that will be executed in shouldExecute to evaluate condition

setScript

void setScript(String script)
Sets the script that will be executed in shouldExecute to evaluate condition

Parameters:
script -

shouldExecute

boolean shouldExecute(Map currentInputs,
                      org.apache.commons.logging.Log logger)
                      throws Exception
Uses current inputs, and the set script to "decide" whether to execute the current block of actions. Condition node example: ... action definitions ...

Parameters:
currentInputs -
logger -
Returns:
true if the actions should be executed
Throws:
Exception