mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Workflow checkpoint.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@3399 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -41,9 +41,9 @@ public class JBPMSpringTest extends BaseSpringTest
|
||||
|
||||
|
||||
//@Override
|
||||
protected void xonSetUpInTransaction() throws Exception
|
||||
protected void onSetUpInTransaction() throws Exception
|
||||
{
|
||||
jbpmTemplate = (JbpmTemplate)applicationContext.getBean("jbpm.template");
|
||||
jbpmTemplate = (JbpmTemplate)applicationContext.getBean("jbpm_template");
|
||||
descriptorService = (DescriptorService)applicationContext.getBean("DescriptorService");
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@ public class JBPMSpringTest extends BaseSpringTest
|
||||
{
|
||||
}
|
||||
|
||||
public void xtestHelloWorld()
|
||||
public void testHelloWorld()
|
||||
throws Exception
|
||||
{
|
||||
// Between the 3 method calls below, all data is passed via the
|
||||
@@ -74,21 +74,21 @@ public class JBPMSpringTest extends BaseSpringTest
|
||||
theProcessInstanceContinuesWhenAnAsyncMessageIsReceived();
|
||||
}
|
||||
|
||||
public void xtestStep0()
|
||||
public void testStep0()
|
||||
throws Exception
|
||||
{
|
||||
deployProcessDefinition();
|
||||
setComplete();
|
||||
}
|
||||
|
||||
public void xtestStep1()
|
||||
public void testStep1()
|
||||
throws Exception
|
||||
{
|
||||
processInstanceIsCreatedWhenUserSubmitsWebappForm();
|
||||
setComplete();
|
||||
}
|
||||
|
||||
public void xtestStep2()
|
||||
public void testStep2()
|
||||
throws Exception
|
||||
{
|
||||
theProcessInstanceContinuesWhenAnAsyncMessageIsReceived();
|
||||
|
@@ -0,0 +1,42 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<process-definition xmlns="urn:jbpm.org:jpdl-3.1" name="Review and Approve">
|
||||
<swimlane name="Initiator"></swimlane>
|
||||
<start-state name="start">
|
||||
<task name="Submit" swimlane="Initiator">
|
||||
<controller>
|
||||
<variable name="reviewer" />
|
||||
</controller>
|
||||
</task>
|
||||
<transition name="" to="Review"></transition>
|
||||
</start-state>
|
||||
<swimlane name="Reviewer">
|
||||
<assignment actor-id="#{reviewer}"></assignment>
|
||||
</swimlane>
|
||||
<task-node name="Review">
|
||||
<task name="Review" duedate="1 business day" blocking="true" swimlane="Reviewer">
|
||||
<controller>
|
||||
<variable name="comment" access="read,write,required"></variable>
|
||||
</controller>
|
||||
</task>
|
||||
<transition name="reject" to="Rejected"></transition>
|
||||
<transition name="approve" to="Approved"></transition>
|
||||
</task-node>
|
||||
<end-state name="end"></end-state>
|
||||
<task-node name="Rejected">
|
||||
<task name="Rejected" swimlane="Initiator">
|
||||
<controller>
|
||||
<variable name="comment" access="read"></variable>
|
||||
</controller>
|
||||
</task>
|
||||
<transition name="" to="end"></transition>
|
||||
</task-node>
|
||||
<task-node name="Approved">
|
||||
<task name="Approved" swimlane="Initiator">
|
||||
<controller>
|
||||
<variable name="comment" access="read"></variable>
|
||||
</controller>
|
||||
</task>
|
||||
<transition name="" to="end"></transition>
|
||||
</task-node>
|
||||
</process-definition>
|
Reference in New Issue
Block a user