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]
_______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
