Here is the 1 failing test, the other 2 work.
| @Test
| public void testWithMultipleAdjustmentsProcessNoApprove() throws Exception
| {
| ProcessDefinition def =
ProcessDefinition.parseXmlResource("workflow/ny-workflow-2/processdefinition.xml");
|
| assertNotNull("Definition should not be null", def);
|
| ProcessInstance instance = new ProcessInstance(def);
| assertEquals("Def should be at start",
| "start-daily-pnl",
| instance.getRootToken().getNode().getName());
|
| instance.signal("default");
|
| instance.getRootToken().getChild("propose").signal("propose an
adjustment");
|
| assertEquals("Def should be at fork2",
| "fork2",
| instance.getRootToken().getChild("propose").getNode().getName());
|
|
instance.getRootToken().getChild("propose").getChild("propose").signal("propose
an adjustment");
|
instance.getRootToken().getChild("propose").getChild("approve").signal("cancel");
|
|
instance.getRootToken().getChild("propose").getChild("propose").getChild("propose").signal("cancel");
|
instance.getRootToken().getChild("propose").getChild("propose").getChild("approve").signal("cancel");
|
| assertEquals("propose/propose should be at join1",
| "join1",
|
instance.getRootToken().getChild("propose").getChild("propose").getNode().getName());
| assertEquals("propose/approve should be at join2",
| "join2",
|
instance.getRootToken().getChild("propose").getChild("approve").getNode().getName());
|
| assertEquals("parent should be at fork1",
| "fork1",
| instance.getRootToken().getNode().getName());
|
| assertEquals("propose should be at join1",
| "join1",
| instance.getRootToken().getChild("propose").getNode().getName());
|
|
| instance.getRootToken().getChild("signoff").signal("signoff
pnl");
| assertEquals("signoff should be at join1",
| "join1",
| instance.getRootToken().getChild("signoff").getNode().getName());
|
| assertEquals("Def should be at auto approve",
| "auto-signoff-adj",
| instance.getRootToken().getNode().getName()
| );
|
| }
|
|
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4236064#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...