Receive task with timeout

Hello,

using Camunda Modeler and the Java API in a WildFly-environment,
at a certain stage of a Workflow, I would like to wait for an incoming message. The Receive Task seems to be the option of choice there.

But – I would like to set a deadline for message reception, preferably as a property of the task, which is evaluated in code. When the deadline is reached, I would like to receive a notification, which can trigger a programmatical reaction (i.e., abort the workflow and write a system log entry in the application).

I could not find such a property, so maybe the standard Camunda/BPMN way is something else for this functionality?

Greetings
Clemens

This is a good use case for a timer boundary event - I’ve created an example here:
https://cawemo.com/shares/9682a293-a08f-40ea-a67e-04d573e8d195

Hello Niall

Thank you very much for input, which pointed me in the right direction. Moreover, it broadened my understanding of BPMN together with Camunda.

Greetings!
Clemens

1 Like