This piece of test code seems to succeed in head of cvs (which should be the same as 3.1 beta 3)
ProcessDefinition processDefinition = ProcessDefinition.parseXmlString( | "<process-definition name='subprocess'>" + | " <start-state name='start'>" + | " <transition to='wait' />" + | " </start-state>" + | " <state name='wait'>" + | " <transition to='end' />" + | " </state>" + | " <end-state name='end' />" + | "</process-definition>"); | jbpmContext.deployProcessDefinition(processDefinition); | | processDefinition = ProcessDefinition.parseXmlString( | "<process-definition name='superprocess'>" + | " <start-state name='start'>" + | " <transition to='sub process state' />" + | " </start-state>" + | " <process-state name='sub process state'>" + | " <sub-process name='subprocess' />" + | " <variable name='a' access='read' mapped-name='A' />" + | " <variable name='b' mapped-name='B' />" + | " <variable name='c' access='write' mapped-name='C' />" + | " <transition to='wait' />" + | " </process-state>" + | " <state name='wait' />" + | "</process-definition>"); | jbpmContext.deployProcessDefinition(processDefinition); | | newTransaction(); | | ProcessInstance processInstance = jbpmContext.newProcessInstanceForUpdate("superprocess"); | ...some variable operations... | processInstance.signal(); | | newTransaction(); | | long processInstanceId = processInstance.getId(); | long subProcessInstanceId = processInstance.getRootToken().getSubProcessInstance().getId(); | | processInstance = jbpmContext.loadProcessInstance(processInstanceId); | assertNotNull(processInstance.getRootToken().getSubProcessInstance()); regards, tom. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3922511#3922511 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3922511 ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user