Finding non-interrupting events in a BPMN model

Hello.

I have a BPMN model which has an event sub-process with a non-interrupting message start event. After starting a process instance, I would like to query its non-interrupting event subscriptions. I tried using this EventSubscription (camunda BPM Javadocs 7.3.7-ee) but I can only see that an event is of type “message” but I don’t know if it is interrupting or not.

I wanted to ask if there is another way to know that an event subscription is non-interrupting.

Thanks.

do you want to do this query with rest request or inside java delegate classes? What is your sample scenario?

Inside a java delegate, how can get this event subscription for example
image

hello, you can get this way that Interrupting or not.

	@Override
	public void execute(DelegateExecution execution) throws Exception {
		// TODO Auto-generated method stub
		var startEvents = execution.getBpmnModelInstance().getModelElementsByType(org.camunda.bpm.model.bpmn.instance.StartEvent.class);
		for (var startEvent : startEvents) {
			if(!startEvent.isInterrupting())
			System.out.println("This event; Start Event (Non Interrupting) ==> ID: " + startEvent.getId());
		} 
	}

}
1 Like

Thank you!

@Rasim_Savas I have a follow-up question, how can get the type of the start event and its details. For example this message name

you can get “startevent.getDefinitions” and find the message event like previous solution “messageEvet.getMessage” etc… sorry, i cant access the my pc right now. you can try this way. I’m not sure about the method names but I think you can achieve it with this approach.

Thank you. This works

1 Like