Hi,<br><br>I am implementing an ad-hoc subprocess similar to the one described in the Drools&amp;jBPM blog: <a href="http://planet.jboss.org/view/post.seam;jsessionid=24F0449616816E6271113E18D5F36643?post=unstructured_ad_hoc_processes">http://planet.jboss.org/view/post.seam;jsessionid=24F0449616816E6271113E18D5F36643?post=unstructured_ad_hoc_processes</a><br>
<br>I am using BPMN 2.0 and drools 5.1 <br><br>After I created a embedded subprocess, I changed the xml element to adHocSubProcess and added a rulegroup associated with this subprocess. <br><br>My question is, how can I trigger one of the tasks (or process fragments) in the ad-hoc subprocess? The following function can only be used to trigger a reusable subprocess: drools.getWorkingMemory().startProcess(&quot;org.drools.examples.cdss.ClinicalPathwayX&quot;), instead of isolated tasks/fragments in the adhoc subprocess. <br>
<br>Further, can this be done in the java class using API, instead of using rules? <br><br>Any help will be appreciated, better with examples. Thanks a lot!<br><br clear="all">Best regards,<br>----<br>Wen <br>