01-13-2008 06:06 AM
09-11-2009 05:47 AM
<bean id="workflowBootstrap" parent="workflowDeployer">
<property name="workflowDefinitions">
<list>
<props>
<prop key="engineId">jbpm</prop>
<prop key="location">alfresco/workflow/review_processdefinition.xml</prop>
<prop key="mimetype">text/xml</prop>
<prop key="redeploy">true</prop>
</props>
var workflow = actions.create("start-workflow");
workflow.parameters.workflowName = "jbpm$wf:review";
workflow.parameters["bpm:workflowDescription"] = "Revision de documento.";
workflow.parameters["bpm:assignee"] = "p.user";
workflow.parameters["bpm:aproveDestination"] = "THEINIT/CLIENTES/APROBADOS";
workflow.execute(document);
<?xml version="1.0" encoding="UTF-8"?>
<process-definition xmlns="urn:jbpm.org:jpdl-3.1" name="wf:review">
<swimlane name="initiator" />
<start-state name="start">
<task name="wf:submitReviewTask" swimlane="initiator" />
<transition name="" to="review" />
</start-state>
<swimlane name="reviewer">
<assignment class="org.alfresco.repo.workflow.jbpm.AlfrescoAssignment">
<actor>#{bpm_assignee}</actor>
</assignment>
</swimlane>
<task-node name="review">
<task name="wf:reviewTask" swimlane="reviewer">
<event type="task-create">
</event>
</task>
<transition name="reject" to="rejected" />
<transition name="approve" to="approved" />
</task-node>
<task-node name="rejected">
<task name="wf:rejectedTask" swimlane="reviewer"/>
<transition name="" to="end" />
</task-node>
<task-node name="approved">
<task name="wf:approvedTask" swimlane="reviewer"/>
<transition name="" to="end" >
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
var dest = companyhome.childByNamePath(bpm_aproveDestination);
for (var i = 0; i < bpm_package.children.length; i++){
bpm_package.children[i].move(dest);
}
</script>
</action>
</transition>
</task-node>
<end-state name="end" />
</process-definition>
05-07-2014 11:41 PM
05-08-2014 12:21 AM
11-30-2009 04:30 PM
04-17-2013 05:39 AM
04-21-2013 08:27 AM
04-21-2013 08:30 AM
04-21-2013 08:31 AM
04-21-2013 08:32 AM
<?xml version="1.0" encoding="UTF-8"?>
<process-definition xmlns="urn:jbpm.org:jpdl-3.1" name="wf:reviewAndMove">
<swimlane name="initiator" />
<start-state name="start">
<task name="wf:submitReviewTask" swimlane="initiator" />
<transition name="" to="review" />
</start-state>
<swimlane name="reviewer">
<assignment class="org.alfresco.repo.workflow.jbpm.AlfrescoAssignment">
<actor>#{bpm_assignee}</actor>
</assignment>
</swimlane>
<task-node name="review">
<task name="wf:reviewTask" swimlane="reviewer">
<event type="task-create">
</event>
</task>
<transition name="reject" to="rejected" />
<transition name="approve" to="approved" />
</task-node>
<task-node name="rejected">
<task name="wf:rejectedTask" swimlane="reviewer"/>
<transition name="" to="end" >
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
var dest = companyhome.childByNamePath(bpm_rejectDestination);
for (var i = 0; i < bpm_package.children.length; i++){
bpm_package.children.move(dest);
}
</script>
</action>
</transition>
</task-node>
<task-node name="approved">
<task name="wf:approvedTask" swimlane="reviewer"/>
<transition name="" to="end" >
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
var dest = companyhome.childByNamePath(bpm_aproveDestination);
for (var i = 0; i < bpm_package.children.length; i++){
bpm_package.children.move(dest);
}
</script>
</action>
</transition>
</task-node>
<end-state name="end" />
</process-definition>
04-21-2013 08:36 AM
var workflow = actions.create("start-workflow");
workflow.parameters.workflowName = "jbpm$wf:reviewAndMove";
workflow.parameters["bpm:assignee"] = people.getPerson("amit");
workflow.parameters["bpm:aproveDestination"] = "Approved";
workflow.parameters["bpm:rejectDestination"] = "Rejected";
var futureDate = new Date();
futureDate.setDate(futureDate.getDate() + 7);
workflow.parameters["bpm:workflowDueDate"] = futureDate;
workflow.execute(document);
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.