Intelligent Automation & Macro Software  

Go Back   Automation Anywhere, Inc. Forums > Products Zone > Automation Anywhere
Register FAQ Search Today's Posts Mark Forums Read

Automation Anywhere Post messages and questions related to Automation Software here.


Closed Thread
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-13-2007, 06:59 PM
Nick Nick is offline
Member
 
Join Date: May 2007
Posts: 37
Default Wait for Automation Anywhere task (.exe) to complete

I have 2 'automation anywhere' tasks that I converted to .exe The main task has a step than uses the open/program command to launch the 2nd task to perform a SQL execute. However the main task doesn't wait for the 2nd task to finish. How can I tell the main task to wait for the 2nd task to complete?

Last edited by Nick; 06-13-2007 at 07:00 PM. Reason: typo
  #2 (permalink)  
Old 06-13-2007, 09:30 PM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Hello Nick,

You can solve the problem by following approach

Open Program/File Task2.exe
Delay 500 ms
Loop While <path of Task2.exe> Application is Running
End Loop
Other actions.

This way, main task will wait till Task.exe is running.

Hope that helps.
  #3 (permalink)  
Old 06-13-2007, 10:35 PM
Nick Nick is offline
Member
 
Join Date: May 2007
Posts: 37
Default

Thank you for your response... however

The main task already has a SQL Loop (Nesting Loop-EndLoop is not supported.) at least that's the error message I keep getting.

I think we need another action like wait for application to end or start.
  #4 (permalink)  
Old 06-13-2007, 11:37 PM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Hello Nick,

In that case you can do something as follows

Open Notepad.exe (untitled - notepad) in Task.exe and Close Untitled - notepad when task.exe finishes

Open Program File Task2.exe
Delay 500 ms
Wait For Window To Close ('Untitled - Notepad')
Other actions.

Alternatively

Open Program/File Task2.exe
If Application Is Not Running <path of Task2.exe> Wait up to (Upper Range)
End If
Other Actions

Here, If/End If will work as Wait if you specify the Wait Time. It will wait up to the time you specified and if task2.exe finishes earlier then it continues further.

This will get around the nested loop problem.
Closed Thread


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -7. The time now is 04:59 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0 ©2007, Crawlability, Inc.
Copyright © 2003-2011 Automation Anywhere, Inc. All rights reserved