[jboss-user] [JBoss jBPM] - question about Wfp06MultiChoiceTest?
jeffen2006
do-not-reply at jboss.com
Thu Nov 30 21:25:22 EST 2006
sorry my English is poor.
i try to change Wfp06MultiChoice's processdefine from String to xml,and deploy to database,but when i test ,it can't select singleness,it always fork to both transition.why?
-------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<process-definition xmlns="" name="yytest">
<start-state name='start'>
</start-state>
scenario == 1
scenario == 2
<end-state name="end"></end-state>
</process-definition>
--------------------------------------------------------------
processInstance = jbpmContext.loadProcessInstance(processInstanceId);
ContextInstance ci = (ContextInstance) processInstance.getInstance( ContextInstance.class );
processInstance.signal();
ci.setVariable("scenario", new Integer(1));
Token root = processInstance.getRootToken();
System.out.println(root.getNode());
root.signal();
System.out.println(root.getNode());
Token tokenB = root.getChild("to b");
Token tokenC = root.getChild("to c");
tokenB.signal();
System.out.println("tokenB:"+tokenB.getNode());
System.out.println("tokenC:"+tokenC.getNode());
System.out.println(root.getNode());
System.out.println(ci.getVariable("scenario"));
---------------------------------------------------
result:
State(a)
Fork(multichoice)
tokenB:Join(syncmerge)
tokenC:State(c)
Fork(multichoice)
1
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990327#3990327
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990327
More information about the jboss-user
mailing list