Class AlfrescoScriptDelegate

  • All Implemented Interfaces:
    org.activiti.engine.delegate.JavaDelegate

    public class AlfrescoScriptDelegate
    extends DelegateExecutionScriptBase
    implements org.activiti.engine.delegate.JavaDelegate
    A JavaDelegate that executes 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:
    4.0
    Author:
    Frederik Heremans
    • Constructor Detail

      • AlfrescoScriptDelegate

        public AlfrescoScriptDelegate()
    • Method Detail

      • execute

        public void execute​(org.activiti.engine.delegate.DelegateExecution execution)
                     throws java.lang.Exception
        Specified by:
        execute in interface org.activiti.engine.delegate.JavaDelegate
        Throws:
        java.lang.Exception