Suspend, stop or disable a task in a certain time

Dear all,

Can we automatically stop or suspend a task in a certain time if that task is not completed.

I create a process that will automatically create a new task in 1 minute, but in the long run, the number of tasks will be a lot. So is there anyway that it can automatically suspend or stop a task in a certain time ?

https://ibb.co/DLBhzHL

Hi
If you want to stop a Task , then you need to use a Boundary timer.
There are 2 types of boundary timers. You need to use the Interrupting timer.
On the timer, use a condition to set time in milliseconds. for eg:- Convert 48 hours into milliseconds and use that value.
Or write a groovy script to use system date and time.

Once the timer condition is fulfilled , the task will automatically get skipped and follow the timer path.
From the timer , draw an arrow to the next task that you want to navigate to.
https://documentation.bonitasoft.com/bonita/2022.2/process/events

 

Regards