Hi,
I am working on a process in Camunda 7 where I need to unassign a user task if the assignee doesn’t complete the task within a certain time. However, the timeout duration varies for different tasks based on specific business cases.
Here is what I want to achieve:
1. When a user task is created, a timeout event should start.
2. After the specified timeout (e.g., 7 days for some tasks, 3 days for others), the task should be unassigned (set assignee to null) so that it becomes available to everyone.
3. The timeout duration should be dynamic and configurable, possibly using process variables.
I have explored using the timeout event in task listeners and attaching timer boundary events, but I am unsure how to set the timeout dynamically for different tasks.
Is there a best practice or recommended approach to achieve this in Camunda 7?
Any guidance, examples, or references would be greatly appreciated.
Thanks!