Get message name from Java

Hello,

I have a Java Spring Boot Application with an embedded Camunda (I have to implement message routing myself). I have a task, that has a type of message intermediate throw event, and that sends a message “MsgPraticaCompletata”. It also has a Java implementation class to implement the routing of the message.
The Java implementation class implements JavaDelegate, and in the execute(DelegateExecution execution) I correctly get the execution object.

I would like to get the message name from the execution object, so that I need to write only a Java class that is able to route all the messages, but I do not know how to extract the message name from the execution object.

Thanks! :slight_smile:

Hi @luiru72,

have a look at this post: Message Intermediate Throw Event design - #15 by Ingo_Richtsmeier

Hope this helps, Ingo