Interface IConditionalExecution


public interface IConditionalExecution
This interface supports conditional execution of action sequence 'actions' blocks
Author:
Marc Batchelor June 2008
  • Method Summary

    Modifier and Type
    Method
    Description
     
    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 Details

    • 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: <![CDATA[chart_type == 'bar']]> ... action definitions ...
      Parameters:
      currentInputs -
      logger -
      Returns:
      true if the actions should be executed
      Throws:
      Exception