03-02-2009 03:17 PM
03-02-2009 05:26 PM
<task-node name="deptHead review">
<task name="scwf:deptHeadReview" swimlane="deptHead">
<timer name="sendNotification" duedate="1 minutes" repeat="1 minutes">
<action name="sendNotification" class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
{
var mail = actions.create("mail");
mail.parameters.to = "sangbouasya@stancounty.com";
mail.parameters.subject = "Timer is working!!!";
mail.parameters.from = "alfresco@alfresco.com";
mail.parameters.template = companyhome.childByNamePath("Data Dictionary/Email Templates/wf_reject_admin.ftl");
mail.parameters.text = "some text, in case template is not found";
mail.execute(bpm_package);
}
</script>
</action>
</timer>
</task>
<transition name="approve" to="end1">
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
{
var mail = actions.create("mail");
mail.parameters.to = "sangbouasya@stancounty.com";
mail.parameters.subject = "Workflow has been Approved by the Department Head";
mail.parameters.from = "alfresco@alfresco.com";
mail.parameters.template = companyhome.childByNamePath("Data Dictionary/Email Templates/wf_reject_admin.ftl");
mail.parameters.text = "some text, in case template is not found";
mail.execute(bpm_package);
}
</script>
</action>
</transition>
<transition name="reject" to="admin review">
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
{
var mail = actions.create("mail");
mail.parameters.to = "sangbouasya@stancounty.com";
mail.parameters.subject = "Workflow needs to be Revised by Admin Group";
mail.parameters.from = "alfresco@alfresco.com";
mail.parameters.template = companyhome.childByNamePath("Data Dictionary/Email Templates/wf_reject_admin.ftl");
mail.parameters.text = "some text, in case template is not found";
mail.execute(bpm_package);
}
</script>
</action>
</transition>
</task-node>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.