I have a repeat loop in a workflow. I want that loop to to stop once the document is found in the repository. I want to check every hour for 8 hours to continuously check if document is in repository, what is the best way to achieve this?
Question
Question
Replies
replied on August 4, 2021
Your best best would probably be to use a token and change the value when the document is found.
- Create a token called "Document Found" with the Boolean tag and set the value to False (create this before the loop)
- Set the repeat loop to check if the token is True before running
- Check for your document inside the loop
- Add a Conditional Branch
- If your Find Entry/Search Activity finds results, set the token to True
- Else, run a delay
That should do what you want, but it depends how many documents you'll be looking for. If this process is just going to be looking for a large number of documents, it might make more sense to take a different approach to avoid having a lot of delay activities running.
2
0
You are not allowed to follow up in this post.