[jboss-user] [JBoss jBPM] - Setting process parent is giving errors.

Maxrunner do-not-reply at jboss.com
Fri Feb 20 11:53:03 EST 2009


So i want do define a parent and child for two processes,

procInst=this.jbpmCtx.getProcessInstance(pd,processParentKey);
				procInstSon=this.jbpmCtx.getProcessInstance(pd,processSonKey);
					
			procInstSon.getRootToken().setParent(procInst.getRootToken());
			this.jbpmCtx.save(procInstSon);
			this.jbpmCtx.save(procInst);

this makes the parent process mad, when i try to view its tokens in the console here's the problem:

Error listing token instances: An exception of type "org.hibernate.HibernateException" was thrown. The message is: null index column for collection: org.jbpm.graph.exe.Token.children

this happens because the subprocess token has no name.....

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4211890#4211890

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4211890



More information about the jboss-user mailing list