cancel
Showing results for 
Search instead for 
Did you mean: 

Complete Task Invocation Won't Return Immediately?

lctang
Champ in-the-making
Champ in-the-making
I've read the source code roughly
and I found that Activiti uses the very thread of client's service call rather than creating a new thread to continue the process, therefore, a complete task service call will be halted until the execution runs into another non-automatic activity (a user task for example) or until the whole process ends. This might not be acceptable when there were a lot of automatic and time-consuming tasks (such as web service calls) behind.

Maybe I've come to a wrong conclusion.

Thanks!
1 REPLY 1

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
No, correct conclusion. This will be 'fixed' if http://jira.codehaus.org/browse/ACT-126 is implemented. Then you can make the first task after the one you complete to return 'control'