cancel
Showing results for 
Search instead for 
Did you mean: 

Pause and Resume User Task

parul_vipparthi
Champ on-the-rise
Champ on-the-rise
Hello

Is it possible to pause and resume user tasks? We also need to track the time taken betweem pause and resume task.

The user clicks on pause and goes for a break, and he clicks on resume to continue. We need to track how long has he gone for a break.

Thank you
parul
10 REPLIES 10

frederikherema1
Star Contributor
Star Contributor
Parul,

I'm not sure how you will implement it, but if you only use API for this (eg. use HistoricTaskInstance to get start and end time, and use custom variables to indicate pauzed-state), I suggest you write a facade service on top of the Activiti TaskService API.

If you are doing more that just calling API-methods in your Impl (using Commands and the CommandContext), your suggestion is the cleanest way to get inside the engines context I guess…