cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to complete User Task

yisa
Champ in-the-making
Champ in-the-making
For some reasons, I am unable to complete a user task if the following service task polls for a file.

I have 2 tasks. The first task is a user task and the second task is a service task that invokes an external Java class. The Java class polls for a file and once the file is found, it does something. When I try to complete the user task in Activiti Explorer, the screen hangs if the Java class is polling. Once the Java class finds the file it's looking for and continues with the rest of execution, the user task is completed.

This is unexpected because I would think the first user task should be able to be completed regardless the state of the next task. Why is it while the next service task is waiting/polling for input, the user task is not allowed to be completed?

Is there a setting I'm missing? This behavior is the same in Explorer and when completing the task using RESTful calls.

Any input or suggestion is much appreciated.

Thanks,
Amber
4 REPLIES 4

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi Amber,

It is expected behaviour.
http://activiti.org/userguide/index.html#bpmnConcurrencyAndTransactions

Regards
Martin

yisa
Champ in-the-making
Champ in-the-making
Anyone has similar problem before?

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,

Have a look on the following link

http://activiti.org/userguide/index.html#bpmnConcurrencyAndTransactions

Regards
Martin

yisa
Champ in-the-making
Champ in-the-making
Thank you for the pointer! Very helpful.