Page 1 of 1

Forcing onto next workflow step

Posted: 24 Oct 2018 21:21
by TheUnknownBuffalo
Is there a way in a workflow, that if one controlui task or action finishes early, I can force AM to move onto the next step?

Re: Forcing onto next workflow step

Posted: 25 Oct 2018 03:05
by Desmanto
Control UI is just like script, simply use return at the point you want to stop. Everything below the return will be skipped and never executed. You might want to check some condition before using return, probably something like

Code: Select all

if(getTextById("android:id/alertTitle") == "Finished")
  return;
More about this, can be read at another thread : viewtopic.php?f=4&t=7639#p22496
Use the method 2 and 3.