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.
<scriptTask id="scripttask1" name="Send Email" scriptFormat="javascript"> <extensionElements> <activiti:executionListener event="start" class="org.alfresco.repo.workflow.activiti.listener.ScriptExecutionListener"> <activiti:field name="script"> <activiti:string> var mail = actions.create("mail"); mail.parameters.to = "a@gmail.com"; mail.parameters.subject = "send a workflow's email. second test! " + bpm_workflowDescription; mail.parameters.from = "b@gmail.com"; mail.parameters.text = "2nd Test message! "; mail.execute(bpm_package); </activiti:string> </activiti:field> </activiti:executionListener> </extensionElements> <script><![CDATA[]]></script> </scriptTask>