cancel
Showing results for 
Search instead for 
Did you mean: 

Async Service Task

jindal8787
Champ in-the-making
Champ in-the-making
We have a requirement where my service task has to trigger an API to perform some operations and wait indefinitely until it gets a signal/async-event that the operation is successful and it can now move to next task.

Not sure if merely making an service task as async will help. What could be the better approach?
1 REPLY 1

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi Amit,

Making task async does not make service call asynchronous (see http://activiti.org/userguide/index.html#bpmnConcurrencyAndTransactions)

Use:

Activiti

start -> service call  ————————> intermediate message/signal -> end
               /\                                          /\ 
——— |     |——————————————|————————————
          \/   answer immediately                         |
        take request ——— process request  ——– send signal/message to activiti        
called system

Regards
Martin