Michael Wohlfart [http://community.jboss.org/people/mwohlf] replied to the discussion
"Get subprocess id from outside the process" To view the discussion, visit: http://community.jboss.org/message/555491#555491 -------------------------------------------------------------- I tried to reproduce this issue so I added a testcase to org.jbpm.examples.subprocess.outcomeactivity.SubProcessOutcomeActivityTest but the following testcase passed for me: public void testSubProcessIdQuery() { ProcessInstance processInstance = executionService.startProcessInstanceByKey("SubProcessDocument"); final Execution execution = processInstance.findActiveExecutionIn("review"); assertNotNull(execution); assertNotNull(processEngine); String pid = ((ExecutionImpl) execution).getSubProcessInstance().getId(); assertNotNull(pid); List<Task> taskList = taskService.findPersonalTasks("johndoe"); Task task = taskList.get(0); taskService.completeTask(task.getId(), "reject"); } so maybe if you post your testcase someone is able to shed some light on this -------------------------------------------------------------- Reply to this message by going to Community [http://community.jboss.org/message/555491#555491] Start a new discussion in jBPM at Community [http://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
