public class ScriptExecutionListener extends DelegateExecutionScriptBase implements org.activiti.engine.delegate.ExecutionListener
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.EXECUTION_BINDING_NAME, PERSON_BINDING_NAME, runAs, script, scriptProcessor, USERHOME_BINDING_NAME| Constructor and Description |
|---|
ScriptExecutionListener() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Map |
getInputMap(org.activiti.engine.delegate.DelegateExecution execution,
java.lang.String runAsUser) |
void |
notify(org.activiti.engine.delegate.DelegateExecution execution) |
runScriptexecuteScript, executeScript, executeScriptAsUser, getPersonNode, getServiceRegistry, getStringValue, setRunAs, setScript, setScriptProcessorpublic void notify(org.activiti.engine.delegate.DelegateExecution execution)
throws java.lang.Exception
notify in interface org.activiti.engine.delegate.ExecutionListenerjava.lang.Exceptionprotected java.util.Map getInputMap(org.activiti.engine.delegate.DelegateExecution execution,
java.lang.String runAsUser)
getInputMap in class DelegateExecutionScriptBaseCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.