Announcing the Global SNUG Board of Directors. Learn more here
03-02-2016 04:22 PM
Hello folks,
I am having a timer question in a workflow. Recently we have implemented a new workflow based on Problem Task table which has two timers, 24 hours before due_date (expiring) and 1 business day after the due_date (expired). The assigned_to user receives notification about the warning.
The workflow works like a charm on a new Problem Record. e.g when a new PT with due date set to Friday 4/3/19 9:00am, the user receives the expiring notification on 3/3 9:00 (24 hours before it dues), however, for an existing Problem Task the expiring timer (24 hours before due) got fired when another user close this PT (In Progress to Completed, Active to Deactivated). The history of the PT calendar shows the event was fired off upon record update.
The event was fired off when the PT was updated,
The workflow incorporates two timers and two 'Create Event'
wondering if the timer was fired off based on business rule, and the actual timer settings?
Any advice would be appreciated
Solved! Go to Solution.
03-02-2016 09:41 PM
Hi George,
Currently there is no way for workflow to know whether the Problem task has ended or not after timer finishes.
There can be two solutions to this:
1. You can explicitly cancel workflow when you are closing task.
2. You can add an if condition in front of Create Event task which will check if the task still active. If it is, you can go ahead and create event; if not you can end the workflow.
03-02-2016 05:18 PM
I think unless the workflow is concluded or cancelled, it may still keep running. You may want to enter an exist condition in there in the event you close the task before the timer runs out. Is the workflow continuing even when the PT is completed, or is it automatically stopped, or doesn't stop and continues anyways?
03-03-2016 02:39 PM
Hi Van Thanks for your advice and attention. I am testing the timer on a closed PT. On Wednesday I created a test PT due date on 9:00AM Friday, and yesterday 9:00 (24 hours before it dues) I received the notification, and I have just closed this PT so I can see if I receive the other one 1 business day after Friday 9:00am
Keep you posted later
Regards,
03-02-2016 09:41 PM
Hi George,
Currently there is no way for workflow to know whether the Problem task has ended or not after timer finishes.
There can be two solutions to this:
1. You can explicitly cancel workflow when you are closing task.
2. You can add an if condition in front of Create Event task which will check if the task still active. If it is, you can go ahead and create event; if not you can end the workflow.
03-03-2016 02:41 PM
Hi Mayank
Your advice is much appreciated, I am rectifying the workflow via adding a If Check Condition before Create the Events so the flow finishes if the PT is already completed.
Still need to test this after the change, and will let you know if this works.