As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<task-node name="ASSISTENTagreement">
<userTask id="approved" name="Document Approved" activiti:formKey="wf:approvedTask" > <documentation> The document was reviewed and approved. </documentation> <extensionElements> <activiti:taskListener event="create" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener"> <activiti:field name="script"> <activiti:string> YOUR CUSTOM SCRIPT HERE </activiti:string> </activiti:field> </activiti:taskListener> </extensionElements> <humanPerformer> <resourceAssignmentExpression> <formalExpression>${initiator.exists() ? initiator.properties.userName : 'admin'}</formalExpression> </resourceAssignmentExpression> </humanPerformer> </userTask>