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-17-2012, 06:52 AM
Nam Nam is offline
Junior Member
 
Join Date: Jan 2012
Posts: 5
Default Looping a series of tasks

Hi,

I'm trying to loop through a series of task to run from a folder followed by another task using a loop.

So if the series of task is a,b,c,d,etc. and the side task is 1, I want to create a third task that runs in the following manner: a-1-b-1-c-1-d-1-e-1 etc. Is there a way to do this with the loops function or is the only way possible is to use create a task chain.

I hope that makes sense.
Reply With Quote
  #2 (permalink)  
Old 01-17-2012, 05:45 PM
trentonponder trentonponder is offline
Senior Member
 
Join Date: Jan 2009
Posts: 102
Default

Quote:
Originally Posted by Nam View Post
Hi,

I'm trying to loop through a series of task to run from a folder followed by another task using a loop.

So if the series of task is a,b,c,d,etc. and the side task is 1, I want to create a third task that runs in the following manner: a-1-b-1-c-1-d-1-e-1 etc. Is there a way to do this with the loops function or is the only way possible is to use create a task chain.

I hope that makes sense.
If I understand you problem correctly, why not just create a task that runs the other tasks in the order you specified using the 'run task' command?
Reply With Quote
  #3 (permalink)  
Old 01-18-2012, 11:04 AM
Nam Nam is offline
Junior Member
 
Join Date: Jan 2012
Posts: 5
Default

I could. But I'm doing some verification and have a lot of tasks to run so I'm trying to avoid having to manually select each task. I was hoping that there would be a way to just make it loop on its own.
Reply With Quote
  #4 (permalink)  
Old 01-19-2012, 12:01 PM
forumstaff forumstaff is offline
Senior Member
 
Join Date: Oct 2010
Posts: 521
Default

Hello Nam,

We recommend you to try using Loop command over here using the option of "Each file in a folder" with the combination of Run task command. It will allow you to call all the tasks present in particular folder to run one by one and you will not be required to select every Task to be called to run in Master task.

Note: You will have to save the task in different folder which will contain only the tasks which are required to be run one after another.

Follow the following series of commands to achieve the required purpose:
1 Start Loop " Each File in My Documents\Automation Anywhere\Automation Anywhere\My Tasks\SubTasks"
2 If $Extension$ Includes "atmn" Then
3 Run Task "$CurrentDirectory$\$FileName$.$Extension$" @Repeat : Do Not Repeat @Speed : Normal Speed @Pass variable as argument : Do Not Pass variable
4 End If
5 End Loop

Please notice here we have used "SubTasks" folder is containing all the Tasks.
Reply With Quote
  #5 (permalink)  
Old 01-20-2012, 07:14 AM
Nam Nam is offline
Junior Member
 
Join Date: Jan 2012
Posts: 5
Default

Quote:
Originally Posted by forumstaff View Post
Hello Nam,

We recommend you to try using Loop command over here using the option of "Each file in a folder" with the combination of Run task command. It will allow you to call all the tasks present in particular folder to run one by one and you will not be required to select every Task to be called to run in Master task.

Note: You will have to save the task in different folder which will contain only the tasks which are required to be run one after another.

Follow the following series of commands to achieve the required purpose:
1 Start Loop " Each File in My Documents\Automation Anywhere\Automation Anywhere\My Tasks\SubTasks"
2 If $Extension$ Includes "atmn" Then
3 Run Task "$CurrentDirectory$\$FileName$.$Extension$" @Repeat : Do Not Repeat @Speed : Normal Speed @Pass variable as argument : Do Not Pass variable
4 End If
5 End Loop

Please notice here we have used "SubTasks" folder is containing all the Tasks.
This is what I've trying to do. However, the "Run Task" editor does not allow for variable input. I can only specify to one task at a time using that function.
Reply With Quote
  #6 (permalink)  
Old 01-21-2012, 05:55 AM
forumstaff forumstaff is offline
Senior Member
 
Join Date: Oct 2010
Posts: 521
Default

Hi Nam,

Ca you give more details on the 'variable input' point mentioned in your reply and the way you intend to use the variable as a parameter.

Regards.
Reply With Quote
  #7 (permalink)  
Old 01-23-2012, 06:57 AM
Nam Nam is offline
Junior Member
 
Join Date: Jan 2012
Posts: 5
Default

This is what you suggested I tried:

Quote:
Originally Posted by forumstaff View Post
Hello Nam,
2 If $Extension$ Includes "atmn" Then
3 Run Task "$CurrentDirectory$\$FileName$.$Extension$" @Repeat : Do Not Repeat @Speed : Normal Speed @Pass variable as argument : Do Not Pass variable
However, using the "Run Task" I have to enter a specific task. I cannot use variable input with the $ as you suggested above.
Reply With Quote
  #8 (permalink)  
Old 01-23-2012, 01:32 PM
forumstaff forumstaff is offline
Senior Member
 
Join Date: Oct 2010
Posts: 521
Default

Hello Nam,

To insert the variables, mentioned in the suggestion mentioned above, press F2 in the area where path of the Task has to be entered.

Insert all three variables one by one, as shown in previous response.

Hope this helps.
Reply With Quote
  #9 (permalink)  
Old 01-24-2012, 06:10 AM
Nam Nam is offline
Junior Member
 
Join Date: Jan 2012
Posts: 5
Default

I'm sorry but I know F2 inserts the function. My problem is that the "Run Task" function doesn't allow for it to be done. I attached a picture. You can't input variables into that line I boxed. That's why I want to know if there's another way to loops through a series of tasks in a file.
Attached Images
File Type: jpg Run Task.jpg (106.8 KB, 5 views)
Reply With Quote
  #10 (permalink)  
Old 02-15-2012, 08:36 AM
forumstaff forumstaff is offline
Senior Member
 
Join Date: Oct 2010
Posts: 521
Default

Hello Nam,

We understand that the version of Automation Anywhere you are using, could be older version. Earlier there was an issue, which we fixed in latter version of Automation Anywhere 6.1. So currently if you download the latest version of Automation Anywhere, it will allow you to insert the variable in Run Task Window. Please view the screen shot attached with the post for your reference.

http://www.automationanywhere.com/Do...e-setup610.exe
Attached Images
File Type: jpg RunTaskVariableSupport.jpg (19.5 KB, 1 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:25 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