Hello,
You can use 'If Task Successful' command inside loop to re-run the task until it is successful. The text Format of commands would appear as follows,
1. Variable Operation : F To $Prompt-Assignment$
2. Loop While $Prompt-Assignment$ Not Equal To "T"
3. If Task Successful ("C:\Documents and Settings\...\My Documents\Automation Anywhere\Automation Anywhere\My Tasks\test.atmn") Then
4. Variable Operation : T To $Prompt-Assignment$
5. End If
6. End Loop
We have also attached the sample task for your convenience. Please copy it under location, 'C:\...\My Documents\Automation Anywhere\Automation Anywhere\My Tasks' folder. Before running this task, change the task name at line #3 using Tools->Task Editor. Just double click on line #3, select the task name using 'Browse' button and save the command. Save the task and run it using RUN button.
This task would loop until the task specified at line #3 runs successfully.
Hope that helps.
|