Interface ScriptEvaluationService

All Known Implementing Classes:
DefaultScriptEvaluationService

public interface ScriptEvaluationService
Service to evaluate activation beanshell scripts. The Activation Script is defined for a Workflow Template. Result of this evaluation must be a Boolean value. If the Boolean value is evaluated to true, then the workflow template is copied to a workflow automatically. Each Workflow Template can have an individual Activation Script.

An activation script is evaluated each time an item is:

  • Created
  • Saved
  • Removed
If the activation script evaluates to true a new workflow will be created based on the workflow template used.
  • Method Details

    • evaluateActivationScripts

      WorkflowModel evaluateActivationScripts(ItemModel item, Map currentValues, Map initialValues, String action) throws bsh.EvalError
      Evaluates activation script for action
      Parameters:
      item -
      currentValues -
      initialValues -
      action -
      Returns:
      created by script workflow
      Throws:
      bsh.EvalError - when something goes wrong