Package de.hybris.platform.workflow
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
-
Method Summary
Modifier and TypeMethodDescriptionevaluateActivationScripts(ItemModel item, Map currentValues, Map initialValues, String action) Evaluates activation script for action
-
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
-