1 Reply Latest reply on Feb 20, 2009 11:53 AM by João Rossa

    Setting process parent is giving errors.

    João Rossa Newbie

      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.....