Automatic unclaim after N minutes

Hi guys,
I need to automate the unclaim of all my user tasks. If a User Task is claimed but It is not completed after 10 minutes, I need to unclaim the task. Does Camunda allow to manage this requirement or I must implement a custom batch?

Regards
Luca

Hi @lsantaniello,

I think you need to add timer event to your process:

https://docs.camunda.org/manual/7.6/reference/bpmn20/events/timer-events/

Cheers,
Askar

1 Like

Thank @aakhmerov for your reply but I want create a global management. I can’t update all my process definitions. I search an alternative solution.

Cheers,
Luca

Hi @lsantaniello,

I think in that case your best shot would be to register a ProcessApplicationListener and implement a timer on your own that would unclaim task if process instance is still in wait state and claimed by the same user.

Does that help you?
Askar

Another option to solve this is to register a custom JobHandler “UnclaimTask” and let every created task write a job 10minutes into the future.

1 Like