Skip to Content

iRPA Actions. Wait multiple. Expression

What is the Expression field in WaitMultiple Activity?

Wanted to build a recursive SAPLogon Flowchart, such that Bot would look for easyAccess, if none, look for LoginPassword Page, if none look for Logon760 Page, if none - start Logon760 - LogPass - EasyAccess.

But failed, I did not understand in the end what clauses my WaitMultiple activities generated, and how it is executed.

Also need clarifications about onError handling.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Jul 20, 2020 at 04:39 PM
    -1

    Hi Vladimir - You can keep the expression blank and map all the relevant pages to the wait multiple step.

    Thanks

    SR

    Add a comment
    10|10000 characters needed characters exceeded

    • code1.pngThanks for speedy response!

      But there a solution needed, not avoidance.

      The WaitMultiple with 2 branches works as intended, and with 3+ branches it fails.

      And also, the Flowchart is signaling an wrongoing with WaitMultiple being used without expression.

      So the clarification is needed badly.

      This Flowchart should be skipping Logon760 when EasyAccess Window is present, but it goes wrong path.

      // ---------------------------------------------------------------- // Step: Delay_10_ms // ---------------------------------------------------------------- GLOBAL.step({ Delay_10_ms: function(ev, sc, st) { var rootData = sc.data; ctx.workflow('XLSXtoXD01_1', 'f55178d5-1f33-4d9c-9335-0d89ddbacc96') ; ctx.log("Delay (10 ms)"); // Delays execution for some milliseconds. // This is the standard pause that should be used in normal situations. It simply pauses the execution of the script for the indicated period. // It allows user interaction with Desktop Agent and other programs during the pause. // This can be useful to wait for a process to complete, to avoid going too fast for the operating system, or to give the user time to react. ctx.wait(function(ev) { ctx.workflow('XLSXtoXD01_1', 'bb5d3bb3-5c66-4327-a283-e0192f032cf9') ; ctx.log("Start 'AEQ1200SAPEasyA'"); // Start 'AEQ1200SAPEasyA' AEQ1200SAPEasyA.events.START.once(function(ev) { // Wait until the Page loads AEQ1200SAPEasyA.pWindowSAPLogon76.wait(function(ev) { sc.endStep('noLogon'); // pWindowSAPLogon76 management return; }); }); AEQ1200SAPEasyA.start(); // Wait until the Page loads AEQ1200SAPEasyA.pWindowSAPLogon76.wait(function(ev) { sc.endStep('noEAyesLogon'); // pWindowSAPLogon76 management return; }); // Wait until the Page loads AEQ1200SAPEasyA.pAEQ1200SAPEasyA.wait(function(ev) { sc.endStep('Default'); // pAEQ1200SAPEasyA management return; }); }, 10); }});

      I find it strange that it puts endStep Default in the end, but It can be my misunderstanding.

      B.r.

      vv5m8.png (133.2 kB)
      code1.png (101.5 kB)

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.