09-19-2008 01:39 AM
<?xml version="1.0" encoding="UTF-8"?>
<process-definition xmlns="urn:jbpm.org:jpdl-3.1" name="wft:review">
<swimlane name="initiator"></swimlane>
<start-state name="start">
<task name="wft:submitReviewTask" swimlane="initiator" />
<transition name="" to="review">
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
var mail = actions.create('mail');
mail.parameters.to = 'shakeeb@hydhtc75657.com'; // or maybe person.properties["cm:email"];
mail.parameters.from = 'shakeeb@hydhtc75657.com';
mail.parameters.subject = 'Please Review this Document';
mail.parameters.text = 'Blah blah blah\n\n';
mail.parameters.text += 'Doc: http://www.srv.com/alfresco/d/a/workspace/SpacesStore/a9...fd/doc.pdf';
mail.execute(document);
</script>
</action>
</transition>
</start-state>
<swimlane name="assignee">
<assignment class="org.alfresco.repo.workflow.jbpm.AlfrescoAssignment">
<actor>#{bpm_assignee}</actor>
</assignment>
</swimlane>
<task-node name="review">
<task name="wft:reviewTask" swimlane="assignee">
</task>
<transition name="reject" to="rejected" />
<transition name="approve" to="approved">
</transition>
</task-node>
<task-node name="rejected">
<task name="wft:rejectedTask" swimlane="initiator" />
<transition to="end" />
</task-node>
<task-node name="approved">
<task name="wft:approvedTask" swimlane="initiator" />
<transition to="submitted" />
</task-node>
<task-node name="submitted">
<event type="node-enter">
<action class="org.alfresco.repo.avm.wf.AVMSubmitPackageHandler"/>
<action class="org.alfresco.repo.avm.wf.AVMDeployHandler"/>
</event>
<task name="wft:submittedTask" swimlane="initiator" />
<transition name="" to="end" />
</task-node>
<end-state name="end"/>
</process-definition>
09-19-2008 06:49 AM
09-23-2008 03:02 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.