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: Start Two Tasks From One Task's Success
Topic Summary:
Created On: 04/27/2012 07:43 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.
 04/27/2012 07:43 AM
User is offline View Users Profile Print this message

Author Icon
KristeenSellers
Student (5-19 posts)

Posts: 7
Joined: 04/04/2012

1)  Application Task  ---->  2) File Move Task
     (Wait for App To
       Finish Checked)
                |
                |
               \|/
3)  eMail Task

This scenario is not working correctly.  When task 1 triggers, it immediately triggers task 2 and 3.  Then, when the application finishes, task 2 and 3 are triggered again, with task 3 failing, as the files are not there to be moved this time.

Question 1:  Is this a valid scenario in Automate 8 BPA?
Question 2:  If this is valid, how do I keep task 2 & 3 from triggering twice?

Thanks



 Category Survey
 04/27/2012 08:44 AM
User is offline View Users Profile Print this message

Author Icon
Leonard Amabile
HelpSystems

Posts: 5454
Joined: 05/15/2007

Kristeen,

What is the trigger for this workflow? Is it a file trigger? If so, how are you moving the files? Are you using the wildcards? If you are moving files using *.*, then your workflow is configured improperly. The file trigger will execute upon every file in the folder. If you drop 2 files into the monitored folder then 2 workflows are going to trigger. The problem is that the initial triggered workflow already moved all of the files because you're setting it that way. So when the 2nd trigger occurs, there are no files to move. Rather than using *.*, using the file trigger variable %amtrigger.filename% wherever you reference the triggering file. This will only manipulate the triggering file per workflow and prevent the issue you are experiencing.




 Category Survey
AutoMate BPA Server 8 version:
Windows version:


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

Leonard Amabile | Director, Cross Platform Support
AutoMate | InterMapper | Skybot | Divisions of HelpSystems
T: +1.213.738.1700 | F: +1.213.738.7665
 04/27/2012 09:10 AM
User is offline View Users Profile Print this message

Author Icon
KristeenSellers
Student (5-19 posts)

Posts: 7
Joined: 04/04/2012

I am not sure I understand why you are asking the questions you are, but here are the answers:

1)  I am using a scheduler to start the task, which calls a FileWait to look for a file.  When that file appears, it calls Task 1 -- the application task.

2)  I am using Full UNC Path Name to move the files. There are no wild cards or variables involved.

I think you may be misunderstanding my question.  It is the application task that appears to be causing the issue.  When it starts/triggers, the tasks that are to trigger on SUCCESS trigger immediately instead of waiting for the task to complete.(which can be up to 2 hours later)  Then, when the application returns the "I'm finished" notice, the following tasks trigger again.  The Workflow itself is running only one time.

Also, you did not answer my question as to the validity of the setup of the package.



 Category Survey


Edited: 04/27/2012 at 09:18 AM by KristeenSellers
 04/27/2012 09:35 AM
User is offline View Users Profile Print this message

Author Icon
Leonard Amabile
HelpSystems

Posts: 5454
Joined: 05/15/2007

Kristeen,

I can't answer to the validity without fully understanding the functionality. If possible please export the workflow and attach the .ampkg file or send it to support@networkautomation.com and reference this forum thread.





 Category Survey
AutoMate BPA Server 8 version:
Windows version:


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

Leonard Amabile | Director, Cross Platform Support
AutoMate | InterMapper | Skybot | Divisions of HelpSystems
T: +1.213.738.1700 | F: +1.213.738.7665
 04/27/2012 10:03 AM
User is offline View Users Profile Print this message

Author Icon
KristeenSellers
Student (5-19 posts)

Posts: 7
Joined: 04/04/2012

Forum would not let me upload the file -- Sent via eMail



 Category Survey
 04/30/2012 12:19 PM
User is offline View Users Profile Print this message

Author Icon
Liz Casale
AUTOMATE EMPLOYEE

Posts: 940
Joined: 05/23/2011

Hi Kristeen,

From what I can tell, it appears your Success arrow is going the wrong way between "D_CHStatement_SSIS_Success_Email" and "D_CHStatement_SSIS." It appears you want the email to be sent IF the "D_CHStatement_SSIS" task is successful, therefore you'd want the success arrow to go From "D_CHStatement_SSIS" TO "D_CHStatement_SSIS_Success_Email" and not the other way around.

 Category Survey


-------------------------
Liz Casale
Technical Support Representative
(213) 738-6966
Network Automation, Inc.

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

AM5 5.5.5.1; AM6 6.2.8.0; AM7 7.1.3.0; AM8 8.0.9.0; AM9 9.0.3.4
BPA7 7.1.3.0; BPA8 8.0.9.0; BPA9 9.0.3.4
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 1403 guests browsing this forum, which makes a total of 1403 users using this forum.

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

Sitemap Network Automation Software Blog