locked
Workflows starting multiple runbooks RRS feed

  • Question

  • I've create a workflow that is supposed to start when an incident is set to resolved and send an e-mail notification and trigger a runbook that closes the incident.

    What I notice is that the workflow is running several times against the same incident so the email is sent multiple time and the runbook is also started several times until it has changed the incident states to closed.

    Is their a way to control how often the workflow engine processes the rules or that it only runs once per incident?

    Thanks Hans Petter 

    Friday, December 12, 2014 10:05 AM

Answers

  • that is your problem.

    You are saying: run this workflow whenever the incident is updated with the sole criteria that the incident has the status resolved.

    What is happening is then that the workflow runs the first time and applies the template. This updates the incident which then triggers the workflow. This goes on until one of the runbooks has updated the incident to status closed. Then the criteria is no longer true.

    change the changed from to include the criteria

    status NOT EQUAL resolved.


    http://codebeaver.blogspot.dk/

    Friday, December 12, 2014 10:30 AM

All replies

  • Can you provide some details on the workflow? Likely you are doing something wrong since it triggers more than once.


    http://codebeaver.blogspot.dk/

    Friday, December 12, 2014 10:08 AM
  • The only trigger that I have set is the status changings to resolved. I haven't specified what it changed from.

    Also I've added an Incident template that is empty except and only contains the runbook activity that closes the incident.

    The workflow also sends an e-mail which is sent 2 to 3 times.

    

     
    Friday, December 12, 2014 10:27 AM
  • that is your problem.

    You are saying: run this workflow whenever the incident is updated with the sole criteria that the incident has the status resolved.

    What is happening is then that the workflow runs the first time and applies the template. This updates the incident which then triggers the workflow. This goes on until one of the runbooks has updated the incident to status closed. Then the criteria is no longer true.

    change the changed from to include the criteria

    status NOT EQUAL resolved.


    http://codebeaver.blogspot.dk/

    Friday, December 12, 2014 10:30 AM
  • That solved my problem thanks .

    Regards Hans Petter

    Friday, December 12, 2014 11:25 AM
  • That solved my problem thanks .

    Regards Hans Petter

    Remember to mark as answer ;)

    http://codebeaver.blogspot.dk/

    Friday, December 12, 2014 11:28 AM