Class ScriptExecutionListener
java.lang.Object
org.alfresco.repo.workflow.activiti.script.ActivitiScriptBase
org.alfresco.repo.workflow.activiti.script.DelegateExecutionScriptBase
org.alfresco.repo.workflow.activiti.listener.ScriptExecutionListener
- All Implemented Interfaces:
Serializable,org.activiti.engine.delegate.ExecutionListener
public class ScriptExecutionListener
extends DelegateExecutionScriptBase
implements org.activiti.engine.delegate.ExecutionListener
An
ExecutionListener that runs a script against the ScriptService.
The script that is executed can be set using field 'script'. A non-default
script-processor can be set in the field 'scriptProcessor'. Optionally, you can run
the script as a different user than the default by setting the field 'runAs'.
By default, the user this script as the current logged-in user. If no user is
currently logged in (eg. flow triggered by timer) the system user will be used instead.- Since:
- 3.4.e
- Author:
- Nick Smith, Frederik Heremans
- See Also:
-
Field Summary
Fields inherited from class org.alfresco.repo.workflow.activiti.script.ActivitiScriptBase
EXECUTION_BINDING_NAME, PERSON_BINDING_NAME, runAs, script, scriptProcessor, USERHOME_BINDING_NAMEFields inherited from interface org.activiti.engine.delegate.ExecutionListener
EVENTNAME_END, EVENTNAME_START, EVENTNAME_TAKE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.alfresco.repo.workflow.activiti.script.DelegateExecutionScriptBase
runScriptMethods inherited from class org.alfresco.repo.workflow.activiti.script.ActivitiScriptBase
executeScript, executeScript, executeScriptAsUser, getPersonNode, getServiceRegistry, getStringValue, setRunAs, setScript, setScriptProcessor
-
Constructor Details
-
ScriptExecutionListener
public ScriptExecutionListener()
-
-
Method Details
-
notify
- Specified by:
notifyin interfaceorg.activiti.engine.delegate.ExecutionListener- Throws:
Exception
-
getInputMap
protected Map<String,Object> getInputMap(org.activiti.engine.delegate.DelegateExecution execution, String runAsUser) - Overrides:
getInputMapin classDelegateExecutionScriptBase
-