Find out activity type for a BusinessProcessEvent in Camunda CDI Event Bridge

Hi guys,

How could I get the current activity type (i.e. eventType, receiveTask, etc. for a given businessProcessEvent?

We are using Camunda CDI Event Bridge, and I’d like to detect every “end process/subprocess” event, every Boundary Event, etc.

I’ve seen that there is a property ((ProcessDefinitionEntity)businessProcessEvent.getProcessDefinition()).namedFlowActivities which contains somehow the info I need, but I can only see it from my debugger, but I cannot use it since it seems as not public.

Thanks in advance,
Alfonso.