How to get the list of boundary events of an activity. #310
Replies: 2 comments 2 replies
-
Hi @mahdiSaeediN , I am not absolute sure but I think the for (Activity activity : process.getActivities()) {
if (BPMNTypes.BOUNDARY_EVENT.equals(activity.getType())) {
.... Can you test this? If it works we can add a convenience method We do not cover all elements now. The BPMNModel provide generic methods to navigate through a model, like |
Beta Was this translation helpful? Give feedback.
-
@mahdiSaeediN I just added new methods to create and read BoundaryEvents from an Activity. Take a look here: https://github.com/imixs/open-bpmn/blob/master/open-bpmn.metamodel/src/test/java/org/openbpmn/metamodel/examples/TestCreateEvents.java Is this what you expect? |
Beta Was this translation helpful? Give feedback.
-
Hi!
Thanks for all the great work in this project.
I'm new to open-bpmn. In a project I need to modify bpmn models and save new instances. For that, I need to traverse through all nodes in a given model. An issue now I encountered is to access the list of boundary events for an activity. I'm able to get the list of activites in a process using process.getActivities(), but I don't see a way to access its boundary events. Same is for some other elements related to the node like its data objects. Could you help me with this issue?
Other questions:
Does the API cover all BPMN elements now?
Is there an API documentation that I can use?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions