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: Determining variable count passed to a subtask
Topic Summary:
Created On: 08/09/2018 11:02 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.
 08/09/2018 11:02 AM
User is offline View Users Profile Print this message

Author Icon
flowers
Artisan (200-499)

Posts: 259
Joined: 01/08/2009

Hi,

we have a subtask called by hundreds of existing tasks which today pass 2 values to that subtask.

I am now confronted by a new task which would pass 3 values. I know I could duplicate the subtask and it have it expect to receive 3 values.

However, I was wondering if a subtask can determine if 2 or 3 values were passed?

Could the Extended function "IsDefined()' be used ?

Thanks,
Rich

 Category Survey
AutoMate 10 version:
Windows version:


Edited: 08/09/2018 at 11:12 AM by flowers
 08/15/2018 10:09 AM
User is offline View Users Profile Print this message

Author Icon
Alex Escalante
HelpSystems

Posts: 871
Joined: 02/26/2014

Hello,

The number of values received by a subtask is relative to how the subtask is written. In other words, if your subtask is hardcoded for only 2 values, then there will be a conflict. However if the subtask is written to be dynamic (for example, looping through a list of values instead of hardcoding each value) then the subtask should be able to handle the additional values.

 Category Survey


-------------------------

Alex Escalante | Support Analyst
AutoMate | Division of HelpSystems
HelpSystems, LLC | T: +1.213.738.1700 | F: +1.213.738.7665
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 566 guests browsing this forum, which makes a total of 566 users using this forum.

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

Sitemap Network Automation Software Blog