How to make a Camunda flow async

Hi Guys,

I am creating an async camunda flow which will be invoked by client (Client can not wait for camunda till flow completion), therefore, the camunda flow should return response once invoked and can complete subsequent activites after that.

To achive the same, I have changed my start activity as below and it is working as expected. However, the after the flow invocation the rest of the activities are executed after couple of seconds, sometimes after a minute.

Wondering,

  1. If this is the appropriate way to make camunda flow asyc.
  2. Which parameter is affecting the time gap between flow invocation and exeuction of subsequebt activties in flow (after start).

TIA

<bpmn2:startEvent id=“StartEvent_1” name=“Start” camunda:asyncBefore=“true”>

The job executor configuration is probably whats affecting this.
It determines (among other things) how often to look for pending jobs.

You can take a look at the configuration settings here: https://docs.camunda.org/manual/7.10/reference/deployment-descriptors/tags/job-executor/

2 Likes

Hi @Niall , otherwise you reckon the approach is recommended.