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

Zod
Giga Guru

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?

18 REPLIES 18

The workflow will run a 2nd time on the same task.


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 ..


I think you'd be better off using a Scheduled job. This will create Incidents, versus just one.


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.

 

find_real_file.png

 

 

Thanks!!

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.