licicin (41) [Avatar] Offline
#1
I have some sequence, a user task and several service tasks.
The user task returns control only after the last service task completes.
Do i miss something?
tijs.rademakers (494) [Avatar] Offline
#2
Re: A user task and several service tasks.
Sorry, but I don't understand your question. Can you elaborate a bit?

Best regards,

Tijs
licicin (41) [Avatar] Offline
#3
Re: A user task and several service tasks.
Hi Tijs,

i have s user task and service task1, service task2, service task3,
After i ask Activiti to complete a user task, i see that service tasks are
executed in 123 order and only after that Activiti returns a control from a user task.

Thanks.
tijs.rademakers (494) [Avatar] Offline
#4
Re: A user task and several service tasks.
Yes that's right. Activiti runs in a synchronous manner by default.
But if you don't want that, just add an async attribute to the service task and it will execute asynchronous.

Best regards,

Tijs