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.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-11-2010, 01:43 AM
dnnssr dnnssr is offline
Junior Member
 
Join Date: Jan 2010
Posts: 16
Default Scheduling a Task

if my task executed first time then the next time it will start only if
first time it completed

i mean i don't want more the one iinstance of the same exe running


is short my exe will run daily in some interval and when one intacne will get finsihed then only another instance will execute
Reply With Quote
  #2 (permalink)  
Old 01-11-2010, 03:12 AM
dnnssr dnnssr is offline
Junior Member
 
Join Date: Jan 2010
Posts: 16
Default More Details

I have two exe's

1. First one continously monitor a table and if a new record comes it trigger another exe and pass this new record data to that exe and there i do some operations like web recording etc

but i am confused on the scheduling

if in table may be there are multiple new records then what will happen and how can i handle this any demo samples will help a lot


first exe will run continously and will trigger another exe if it will found a new record.
Reply With Quote
  #3 (permalink)  
Old 01-11-2010, 11:09 PM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Hello,

The mentioned scenario can be automated with a single super task that you can schedule as per the requirement. You can call second task from the main task depending upon the results from SQL table using Run Task command.

What you can do is,

. Create a Auto number primary Key field say 'UniqueID' to uniquely identify particular record in a table.
. Create a variable say $UniqueIDVar$ that reads value from a text file
. In second task or exe, log this fields value in some text file.
. In first task or exe, search for, unique id greater than the one that is logged. Let’s say the unique id logged in the text file is 3 then the first task would search for records greater than 3.
. You can export the records returned into CSV file using 'Execute SQL' Database command.
. Check for the existence of same CSV file, if exists then call second task, connect to CSV file, fill webform and at the end log the 'UniqueID' value to $UniqueIDVar$ so that the Main task would then later search for new records.
. Delete the CSV file after filling the web form.

We have attached a sample as per the requirement. We have used Access database in this sample so you may need to change the Database commands to connect and get data from SQL database.

You can schedule the MainTask.atmn to start running at pre-defined time. Also, set it to repeat until you hit Esc to monitor the database continuously.

Hope that helps.
Attached Files
File Type: zip SampleTask.zip (16.9 KB, 2 views)
Reply With Quote
Reply


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 02:50 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