Dear Thorben,
Thanks for your quickly reply.
Based on your second suggestion, I can still remove the execution by using custom command.
However, according your first suggestion, you mean we'll gonna have problem even we remove the execution in that way.
So I'm a bit confuse that which way I should proceed.
Maybe there could be another way to model our process. Actually, the story is:
We have a task which has a due date, when the due date is reached, we'll send a reminder to an user. On the other hand, the due date can also be updated anytime by the user.
So what we model is one user task called 'Set due date' followed by a parallel gateway with 2 sequences.
One sequence goes to a timer job with the specified due date. (Timer job is followed by 'Send reminder' task)
Another sequence goes to a user task called 'Update due date'.
The 'update due date' task points back to 'set due date' task to form a loop.
So whenever the due date is updated, we'll need to cancel existing timer jobs (including the executions) and start new execution & timer job.
Otherwise, the activity instance count is not showing the correct number in Cockpit.
There could be more than one activity instances in the timer job.
But the correct number should be either 0 or 1.
Thanks!
Jeff