Hi, I would like to ask about executing service task after human task. E.g there is process that start with human task and is followed by two service task(implemented by delegate).
Consider there is backend app that call complete to human task. What happen is that, human task is completed, then service task are completed and then backend receive response. This happen because it is treated as one transaction Transactions in Processes | docs.camunda.org. Asynchronous continuations would split in separate transactions right ?
But are those transactions executed synchronously or asynchronously ? Service task makes API calls to backend to execute operation. BUT operation depend on variable stored(transactionally) before calling complete human task. With asynchronous continuations variable is present in operation(called by service task) but without asynchronous continuations variable is not present.
Is order of execution guaranteed with asynchronous continuations this way ?
- backend → human task(complete) → response to backend
- service task → backend operation → response to service task
- service task → backend operation → response to service task
If no, is it possible to achieve this order of execution ? E.g. external task or so. Thanks