AnsweredAssumed Answered

messageEventReceived before process has reached Message Catching Event

Question asked by boekhold on Feb 4, 2015
Latest reply on Feb 5, 2015 by boekhold

Let's say I start a process instance that does some processing, possibly involving user tasks, and then uses a Message Catching Event at one point in the flow. The process is not supposed to continue processing beyond that Message Catching Event before the specific message is 'caught'.

The actual delivery of the message is triggered by some external process (for sake of argument: the REST API), and uses Runtime.messageEventReceived().

What will happen if messageEventReceived() is called before the Message Catching Event is reached. Will the process then just be stuck on the Message Catching Event, or does Activiti somehow 'buffer up' unconsumed messages?