Class ScriptTaskListener
java.lang.Object
org.alfresco.repo.workflow.activiti.script.ActivitiScriptBase
org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener
- All Implemented Interfaces:
Serializable,org.activiti.engine.delegate.TaskListener
public class ScriptTaskListener
extends ActivitiScriptBase
implements org.activiti.engine.delegate.TaskListener
A
TaskListener that runs the 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 is executed with is the task's assignee. If no assignee is set, the current logged-in user is used. If no user is currently logged in (eg. flow triggered by timer) the system user will be used instead.- Since:
- 3.4.e
- Author:
- 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.TaskListener
EVENTNAME_ALL_EVENTS, EVENTNAME_ASSIGNMENT, EVENTNAME_COMPLETE, EVENTNAME_CREATE, EVENTNAME_DELETE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.alfresco.repo.workflow.activiti.script.ActivitiScriptBase
executeScript, executeScript, executeScriptAsUser, getPersonNode, getServiceRegistry, getStringValue, setRunAs, setScript, setScriptProcessor
-
Constructor Details
-
ScriptTaskListener
public ScriptTaskListener()
-
-
Method Details
-
notify
public void notify(org.activiti.engine.delegate.DelegateTask delegateTask) - Specified by:
notifyin interfaceorg.activiti.engine.delegate.TaskListener
-
getInputMap
-