[jboss-user] [jBPM Development] - JBPM-2772 retrieve business key from sub-process

Maciej Swiderski do-not-reply at jboss.com
Wed Aug 11 06:01:57 EDT 2010


Maciej Swiderski [http://community.jboss.org/people/swiderski.maciej] replied to the discussion

"JBPM-2772 retrieve business key from sub-process"

To view the discussion, visit: http://community.jboss.org/message/556829#556829

--------------------------------------------------------------
If you go a bit deeper you will find that there is a bidirectional reletionship created between super and subprocess.

subProcessInstance = (ExecutionImpl) processDefinition.createProcessInstance(key);

next go into that method:

    if (superProcessExecution!=null) {
      // establish the bidirectional relation between super process activity instance 
      // and sub process instance 
      ExecutionImpl superProcessExecutionImpl = (ExecutionImpl) superProcessExecution;
      processInstance.setSuperProcessExecution(superProcessExecutionImpl);
      superProcessExecutionImpl.setSubProcessInstance(processInstance);
    }


--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/556829#556829]

Start a new discussion in jBPM Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2035]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100811/86807a51/attachment-0001.html 


More information about the jboss-user mailing list