[jboss-user] [JBoss jBPM] - [size=18][b]subProcessDefinition not found[/b][/size]
kasabov
do-not-reply at jboss.com
Wed Jan 21 13:29:04 EST 2009
I have process that invoke sub process using process state. I test the process with JUnit. When start test it says - ERROR (GraphElement.java:295) - action threw exception: can't create a process instance when processDefinition is null. This is because can't find the sub process definiton. How can I bound sub process definition to parent process definition. This is my code in JUnit test
| ProcessDefinition definition = ProcessDefinition
| .parseXmlInputStream(new FileInputStream("jpdl\\parent\\processdefinition.xml"));
| ProcessDefinition definitionSub = ProcessDefinition
| .parseXmlInputStream(new FileInputStream("jpdl\\sub\\processdefinition.xml"));
| ProcessState st = (ProcessState)definition.getNode("Sub process Invoke");
| st.setProcessDefinition(definitionSub);
| ProcessInstance instance = new ProcessInstance(definition);
| instance.signal();
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4203761#4203761
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4203761
More information about the jboss-user
mailing list