Call message start event from message end event

Hi All i am trying to build a Build a bpmn where a flow ends and it has to invoke another flow.
For this i tried using a message end event and a message start event and expected that when message end event gets triggered it will relay a message which my message start event would be waiting for and it will get invoked , But it doesnt work basically the message start event doesnt get triggered.
Please let me know what am i doing wrong, or is there another approach to achieve this.

1 Like

Hi @shashank19aug,

you have to implement the message sending by yourself: https://docs.camunda.org/manual/7.13/reference/bpmn20/events/message-events/#message-end-event.

There are many options to interact with the message API: https://docs.camunda.org/manual/7.13/reference/bpmn20/events/message-events/#message-api.

The most simple one would be to use an expression in the message end event. A decoupled variant would be to use an external task worker and invoke the message API via REST: https://docs.camunda.org/manual/7.13/reference/rest/message/post-message/.

It’s your choice.

Hope this helps, Ingo

You can also see an example of how to send a message using a Java Delegate in this video tutorial.

2 Likes

Hi @Niall Niall,
Thank you , i have watched that video of yours like 4-5 times , it has almost solution to all my problems, thanks for such a great video.
i saw how tos end through java delegate , i was just wondering if there is any other method as well but as per other community members and my research i have realised that i have to send it manually.
can you just tell me one more thing, then how is a message end event different from normal end event.

1 Like

Thnks @Ingo_Richtsmeier a lot

Very glad you’ve found the tutorials i’ve made useful :slight_smile:

A normal end event would simply consume the token rather than run and logic like sending a message. the only logic it runs is that if it is the last token in the instance, the process will end.