I want to notify the manager of an employee 2 days before the employee begins his vacation.
I want to run a timer periodically to check whether this date has arrived and notify him accordingly.
What i have done is this : I created two parallel paths. On the top path, a script task runs based on the timer and checks the date to send the notification. The bottom path is the path with the main logic, where the manager approves the request or sends it for reevaluation.
What i would expect to happen is that the process could not continue until both paths converge to the gate (the top path runs again unless the request is approved). However, something goes wrong and when each path reaches the gate, a new case instant is created. And when the case is closed, according to the process diagram (reaches the endpoint), it still remains open in the system because two instances existed.
How can i solve this problem or is there a better way to run periodically a script task and send the notification?
Please, a solution is needed soon.
I provide printscreens of the process and the two instances.