[jboss-user] [jBPM] - is it possible to add a subprocess to a workitem dynamically?

Ted Pan do-not-reply at jboss.com
Thu Nov 29 08:52:26 EST 2012


Ted Pan [https://community.jboss.org/people/ted.pan] created the discussion

"is it possible to add a subprocess to a workitem dynamically?"

To view the discussion, visit: https://community.jboss.org/message/779125#779125

--------------------------------------------------------------
hi,

by using 
  DynamicNodeInstance dynamicNodeInstance = (DynamicNodeInstance)processInstance.getNodeInstances().iterator().next();
           DynamicUtils.addDynamicSubProcess(dynamicNodeInstance, session, subProcessId , parameters);
in the executeWorkItem() of WorkItemHandler, I was able to execute a subprocess on-the-fly when the process instance enters this workitem. 
But it requires that this workitem is inside a dynamic node, in my case, it is ad-hoc subprocess.

My question is, without using the ad-hoc subprocess, how could I add the dynamic subprocess to current workitem?

Thanks


Ted
--------------------------------------------------------------

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

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20121129/85e3f806/attachment.html 


More information about the jboss-user mailing list