on 10-18-2020 3:11 PM
Hi,
We recommend not using a while statement as it blocks the thread the agent is running on.
Instead, check if SAPGuiBusy() returns true or not. If true, wait for a few seconds, then go back to the step where you perform the test (you might want to use asynchronous loops for that, so the thread is not blocked and so you don't stay too long in a given step, which will allow you to avoid a timeout issue)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can use the activities in the Desktop Studio to create asynchronous loops :
It will create several steps in your flow, preventing the agent to fall into a timeout if SAPGUI is busy for more than 30 seconds for exemple.
You insert a start loop in your flow, then you insert a delay. Then a exit loop activity where you test the condition (in your case if SAPGUI is not busy anymore). Last, insert a loop activity.
That way, if the condition is met (i.e. SAPGUI not busy) then you can go to next step where you click on the oItem17
See below an exemple:
By doing this, your agent will go from one step to another, and then you won't have a timeout issue when you exit the loop
Regards,
J.
User | Count |
---|---|
76 | |
10 | |
8 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.