11-14-2011 09:59 AM
11-15-2011 08:47 AM
11-22-2012 04:15 AM
<userTask id="initiatorApprove" name="Alfresco User Task" activiti:assignee="${initiator.properties.userName}" activiti:formKey="wf:activitiReviewTask">
<extensionElements>
<activiti:taskListener event="create" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
<activiti:field name="script">
<activiti:string>
var mail = actions.create("mail");
mail.parameters.to = user@gmail.com;
mail.parameters.subject = "Subject";
mail.parameters.text = "Mail body";
mail.execute(bpm_package);
</activiti:string>
</activiti:field>
</activiti:taskListener>
</extensionElements>
</userTask>
11-22-2012 04:27 AM
<userTask id="initiatorApprove" name="Alfresco User Task" activiti:assignee="${initiator.properties.userName}" activiti:formKey="wf:activitiReviewTask">
<extensionElements>
<activiti:taskListener event="create" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
<activiti:field name="script">
<activiti:string>
var mail = actions.create("mail");
mail.parameters.to = "user@gmail.com";
mail.parameters.subject = "Stigao je novi task na obradu u Alfresco";
mail.parameters.text = "Mail body";
mail.execute(bpm_package);
</activiti:string>
</activiti:field>
</activiti:taskListener>
</extensionElements>
</userTask>
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.