Hello Community,
hopefully you can help me. I want to get all child elements (all of the following bpmn elements of the current process definition (type: User Task)) at the position of the current User Task where my UserTaskListener is located and called. How can I do this?
I tried to use the getChildElementsByType() method but there is no result?
I am using the Camunda BPM Reactor and an UserTaskListener which is called when an User Task is completed.
Collection taskChildElementUT = delegateTask.getBpmnModelElementInstance().getChildElementsByType(UserTask.class);
for (UserTask userTask : taskChildElementUT) {
System.out.println("Child elements ‘User Task(s)’: "+ userTask.getName());
}
Or do I need to take another method to get all of the following bpmn elements (type: User Task) after the UserTaskListener has been called?
Thanks a lot!
Regards,
Paul