Serial Review with email notifications

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2014 01:06 PM
Hi,
I'm new to Alfresco. I'm trying to set up a serial review activiti workflow with email notification to the initiator every time a reviewer either rejects or approves a workflow. So, if there are 5 reviewers, 5 emails would be sent to the initiator whenever each reviewer either approves or rejects.
In Activity, I setup an AlfrescoMailTask and added the mail.parameters below. Somehow it's not sending any email at all. Can someone tell me what I'm missing?
OS : Windows 7
Java 7 , Tomcat 7.0.54
Alfresco community 4.2.a.
Thanks in advance for any advice.
<serviceTask id="alfrescoMailtask1" name="Alfresco Approved Mail Task" activiti:class="org.alfresco.repo.workflow.activiti.script.AlfrescoScriptDelegate">
<extensionElements>
<activiti:field name="script">
<activiti:string><![CDATA[var mail = actions.create("mail");
alert('approved email ');
mail.parameters.to = "cafeguy@mycomp.com";
mail.parameters.subject = "Adhoc Task APPROVED " + bpm_workflowDescription;
mail.parameters.from = "cafeguy@mycomp.com";
mail.parameters.text = "It's done";
mail.execute(bpm_package);]]></activiti:string>
</activiti:field>
</extensionElements>
</serviceTask>
<sequenceFlow id="flow5" sourceRef="approved" targetRef="alfrescoMailtask1"></sequenceFlow>
<serviceTask id="alfrescoMailtask2" name="Alfresco Rejected Mail Task" activiti:class="org.alfresco.repo.workflow.activiti.script.AlfrescoScriptDelegate">
<extensionElements>
<activiti:field name="script">
<activiti:string><![CDATA[var mail = actions.create("mail");
alert('rejected email ');
mail.parameters.to = "cafeguy@mycomp.com";
mail.parameters.subject = "Adhoc Task REJECTED " + bpm_workflowDescription;
mail.parameters.from = "cafeguy@mycomp.com";
mail.parameters.text = "It's done";
mail.execute(bpm_package);]]></activiti:string>
</activiti:field>
</extensionElements>
</serviceTask>
I'm new to Alfresco. I'm trying to set up a serial review activiti workflow with email notification to the initiator every time a reviewer either rejects or approves a workflow. So, if there are 5 reviewers, 5 emails would be sent to the initiator whenever each reviewer either approves or rejects.
In Activity, I setup an AlfrescoMailTask and added the mail.parameters below. Somehow it's not sending any email at all. Can someone tell me what I'm missing?
OS : Windows 7
Java 7 , Tomcat 7.0.54
Alfresco community 4.2.a.
Thanks in advance for any advice.
<serviceTask id="alfrescoMailtask1" name="Alfresco Approved Mail Task" activiti:class="org.alfresco.repo.workflow.activiti.script.AlfrescoScriptDelegate">
<extensionElements>
<activiti:field name="script">
<activiti:string><![CDATA[var mail = actions.create("mail");
alert('approved email ');
mail.parameters.to = "cafeguy@mycomp.com";
mail.parameters.subject = "Adhoc Task APPROVED " + bpm_workflowDescription;
mail.parameters.from = "cafeguy@mycomp.com";
mail.parameters.text = "It's done";
mail.execute(bpm_package);]]></activiti:string>
</activiti:field>
</extensionElements>
</serviceTask>
<sequenceFlow id="flow5" sourceRef="approved" targetRef="alfrescoMailtask1"></sequenceFlow>
<serviceTask id="alfrescoMailtask2" name="Alfresco Rejected Mail Task" activiti:class="org.alfresco.repo.workflow.activiti.script.AlfrescoScriptDelegate">
<extensionElements>
<activiti:field name="script">
<activiti:string><![CDATA[var mail = actions.create("mail");
alert('rejected email ');
mail.parameters.to = "cafeguy@mycomp.com";
mail.parameters.subject = "Adhoc Task REJECTED " + bpm_workflowDescription;
mail.parameters.from = "cafeguy@mycomp.com";
mail.parameters.text = "It's done";
mail.execute(bpm_package);]]></activiti:string>
</activiti:field>
</extensionElements>
</serviceTask>
Labels:
- Labels:
-
Archive
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2014 01:11 PM
The XML I input into the message disappeared, so I attached it with file name activity_mail.txt
