How to - Inifinite loop

We received several request about implementation of loops in Orchestrator.

As you should already know loops are not directly supported by Orchestrator, but you can easily implement them using a sub-workflow and the retry on failure (or error) feature.

Attached an example workflow that implements an infinite looping:

- One workflow checks for a given file presence for 5 minutes, if the file does not exist after 5 minutes it sends an alert email and fails.

Single workflow

- One workflow uses the previous one as sub-workflow and sets the retry on failure value to 0 (infinite loop).

Looping logic

 

Note: these workflows have been created using Orchestrator 2.3 Backward compatibility has not been tested. But you should be able to understand the logic if you need to implement it in a previous version.

 

Attachments

1 Comments

  • Avatar
    Andrea Di Muzio

    As a side note, there is a bug in the GUI and if you reopen the retry panel the value is set back to 1. If you do so, please set it back to 0 and click on Set Retry parameters.

Please sign in to leave a comment.
Powered by Zendesk