AnsweredAssumed Answered

Receive Task vs. Message Intermediate Catch Event

Question asked by aapthorp on Mar 23, 2013
Latest reply on Mar 26, 2013 by jbarrez
I've been looking for some guidelines on when to use a Receive Task vs. Message Intermediate Catch Event, but haven't found anything. Does anyone know of any good explanations? The BPMN 2.0 spec highlights similarities but not differences.

When looking at these constructs from the point of view of Activiti (and to some extent BPMN) I see some inconsistencies, the reasons for which are not immediately apparent:

1) Why signal (runtime.signal) a receive task the receipt of a message and receive the message (runtime.messageEventReceived) on an intermediate event?

2) When correlating (via an execution query) a receive task I have to use the activity id, but when finding the message subscriber I have use the message name. i.e. in on case use an id and the other the name.

Clearly this still works, but certainly the second point tripped me up - as I looked for the id instead of the name, having done the opposite for the receive task.