03-08-2010 12:29 PM
<task-node name="verification">
<task name="pac01:verif" swimlane="verificateur">
<event type="task-assign">
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
var infoDoc=bpm_package;
var doc=infoDoc.children[0].name;
var mail = actions.create("mail");
mail.parameters.to = pac01_persVerif.properties.email;
mail.parameters.subject = "Document - " + doc + " - à vérifier";
mail.parameters.from = pac01_persRedac.properties.email;
mail.parameters.text = "Ce document est en vérification" + "\r\n\r\n";
mail.execute(bpm_package);
</script>
</action>
</event>
<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 = pac01_persVerif.properties.email;
mail.parameters.subject = "Relance document - " + doc + " - à vérifier";
mail.parameters.from = pac01_persRedac.properties.email;
mail.parameters.text = " " + "\r\n\r\n";
mail.execute(bpm_package);
}
</script>
</action>
</timer>
</task>
03-09-2010 07:34 AM
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.