How to let a workflow to run again if condition matches again?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-22-2017 08:36 AM
Hi Experts,
as we not yet using event management - we at least want be notified if our MID Servers are down.
I created a WF to create an incident in case status changes to 'Down' ... .
Unfortunately the Wf only runs once. If the status is up again and switches back to down ... no new Incident will be opened.
How can I re-run the wf if condition is true again?
I'd like to avoid fancy business rule deleting workflow version and restarting the wf hardcoded ... . The must be an option to tell within the workflow that it has to run again ... .
I was assuming I can just cancel the workflow after incident has been created ... but it will not run gain, even if cancelled.
What to do?
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-22-2017 09:58 AM
The workflow will run a 2nd time on the same task.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-22-2017 11:13 AM
The WF checks the ecc_agent table ... and will create a task (inc) in case mid-server status is Down .. .
But why the wf does not create a new task if running again. This does not seem to make sense ..

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-22-2017 01:20 PM
I think you'd be better off using a Scheduled job. This will create Incidents, versus just one.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-23-2018 08:34 AM
Hello Michael, I'm having a similar issue. I want a workflow to end when it takes a certain path, and to start again from the beginning when the start trigger is hit for a second time. When having the "run Multiple" checkbox as true, it runs two workflows simulteneaously, WHICH IS NOT what I want. I want the workflow to start "freshly" from the begining and take whatever new path is requested by the end-user.
Thanks!!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-23-2018 08:42 AM
You're not using Rollback correctly. Rollback will take you back to some step, like before approvals. https://docs.servicenow.com/bundle/kingston-servicenow-platform/page/administer/workflow-activities/...
Also, run multiples, the workflow will run whenever the conditions are true. That could cause multiple workflows to run if not clearly defined.