Message Catch Event on Receive Task

Hi,
I have a message intermediate catch event on a Task Receive and when I use the REST API to send the message with the name of the event I got a 400.
image

is it possible to do this? I would like to wait for a message (the “normal” workflow) and be able to receive an event to stop the process if received (fail workflow).

I use the endpoint /message and I give the messageName and processInstanceId

Thank

Hi @Sebastien_Michon,

You can use event based gateway to achieve your requirement as in below snip

imagetest_event_based_gateway.bpmn (5.5 KB)

Thanks! works great :slight_smile:

While this should work (and apparently does), I’d be interested in why the original poster’s solution does not work. Any experts?

Hi @fml2,

Receive task represents message functionality so attaching a message to a message-similar activity is for sure not a good modeling practice.

But technically I don’t have an idea why such solution doesn’t work.

I’ve read somewhere that a catch event and receive activity are technically the same, with the receive activity having the advantage of being able to carry boundary events.

Also, there was a recommendation (from Bernd himself? I don’t remember exactly) to prefer the receive activity because it looks more intuitive for non BPMN people.