09-24-2008 11:29 AM
<task-node name="approved">
<task name="wf:approvedParallelTask" swimlane="initiator">
<timer duedate="1 minutes" repeat="1 minutes" transition="to_langreview">
<action name="sendmailandgo" class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
{
var mail = actions.create("mail");
mail.parameters.from = "alfresco@mserver.com;
mail.parameters.subject = "New Document Added";
mail.parameters.text = "There is a new document in Alfresco";
mail.parameters.to = initiator.properties["cm:email"];
mail.execute(bpm_package);
logger.log("Sending mail");
}
</script>
</action>
</timer>
</task>
<transition name="to_langreview" to="langreview">
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
var mail = actions.create("mail");
mail.parameters.from = initiator.properties["cm:email"];
mail.parameters.subject = "New document added";
mail.parameters.text = "There is a new document in Alfresco";
mail.parameters.to = langreviewer.properties["cm:email"];
mail.execute(bpm_package);
logger.log("Sending");
</script>
</action>
</transition>
</task-node>
09-30-2008 10:28 AM
11-06-2008 03:51 PM
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.