AnsweredAssumed Answered

Restart a task n times before aborting

Question asked by shravani_vedantham_6826 on Mar 7, 2018
Latest reply on Mar 8, 2018 by shravani_vedantham_6826

Hi

Here is my use case:

In a workflow, there are two jobs, the first job triggers a process on a server . The second job checks for the return code of that first job by querying the database. The return code might not be available immediately, so the second job has to query the database 'n' number of times and then fail if it still doesn't find anything.

I was able to achieve the job to restart by using the post conditions 'Restart task' option, but what is the best way to iterate this process until certain number of times. I cant use the current time or time since activation as the activation time will not be accurate.

Appreciate your suggestions as always!

Outcomes