Network Automation Software We are currently migrating this forum
over to our HelpSystems domain. Please
post all new threads in our new
HelpSystems Community Portal.
Post to the HelpSystems Forum
You are not currently logged on. You must be logged on in order to post. Log on
Or Create a new account
AutoMate Discussion
Decrease font size
Increase font size
Topic Title: User Created Functions
Topic Summary:
Created On: 01/14/2014 02:44 AM
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
View similar topics View similar topics
View topic in raw text format. Print this topic.
 01/14/2014 02:44 AM
User is offline View Users Profile Print this message

Author Icon
WayneGray
Student (5-19 posts)

Posts: 7
Joined: 07/23/2012

Hi everyone.

 

I am trying to create my own function in Automate 7 that will accept various parameters and that can be called from other tasks.

 

Can someone please point me to a link on how to do that?

 

Thanks for the help.



 Category Survey


Edited: 01/14/2014 at 03:10 AM by WayneGray
 01/14/2014 04:45 AM
User is offline View Users Profile Print this message

Author Icon
JeanDelfosse
Supreme Guru (1000+)

Posts: 8883
Joined: 03/30/2005

Wayne, there are two ways:
-either using subtasks (managed tasks) that you invoke from the "Star Task" action. During execution, subtasks share their variables with the calling task.
-or using a basic script file that declares the functions (with parameters). Invoking that basic script file at the beginning of a task makes all the functions declared therein available throughout the task in any expression, although they will not be listed in the expression builder.

 Category Survey
AutoMate 7 version:
Windows version:



Task Steps: (Right click, Select All, Copy to copy to the clipboard. Steps can then be pasted into the AutoMate Task Builder)


-------------------------
Jean Delfosse - Automate Beta Tester
Win7 Pro 64 bits -Win XP Pro SP3 32 bits - AM8, AM7, BPA10, BPA9, BPA8, BPA7, AM6 Enterprise, AM4
Statistics
18258 users are registered to the AutoMate Discussion forum.
There are currently 0 users logged in.
The most users ever online was 5551 on 01/08/2018 at 11:11 AM.
There are currently 1354 guests browsing this forum, which makes a total of 1354 users using this forum.

FuseTalk Enterprise Edition v4.0 - © 1999-2020 FuseTalk Inc. All rights reserved.

Sitemap Network Automation Software Blog