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: Trigger task based on the execution status of another task
Topic Summary:
Created On: 01/09/2017 02:27 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/09/2017 02:27 AM
User is offline View Users Profile Print this message

Author Icon
SteliosGkiokas
n00b (>6 posts)

Posts: 2
Joined: 03/22/2016

Hello all,

I'm having two tasks that do the following:

  • Task A: monitors a folder and as soon as some files arrive, it does some file manipulation (encryption/decryption), rerouting and archiving.
  • Task B: in case the files from Task A have been received, they are data processed and then a set of reports is generated. In case those files haven't been received, a report is generated (it's called NAK) and sent to the customer. This task is scheduled to run daily at 18:00.

Since some times the files are received later that the sheduled trigger, we miss the SLA because of the late data processing. To avoid that, an easy solution would be to trigger Task B as soon as Task A finishes.

However, in case the expected files do not arrive at all in one day, based on the suggested solution, we'll be unable to generate the NAK report to inform the customer.

Consequently, what I would like to do is to add a later scheduled trigger to Task B (e.g. set 21:00 as a cut off point) and if Task A hasn't been executed at all at the examined day, execute Task B. Via this way, the NAK report generated will be valid.

Is there any way to monitor the execution status of Task A and implement the aforementioned solution?

Thanks a lot in advance and apologies for the lengthy text.

Regards,

Stelios

P.S.: Unfortunately, I cannot attach the tasks since it's against my company's policy.

 01/10/2017 12:16 PM
User is offline View Users Profile Print this message

Author Icon
Justin Aucoin
HelpSystems

Posts: 360
Joined: 02/15/2016

Hi Stelios,

The most straight forward way to do this would be to create a date stamped marker file as part of Task A. This could be a log or simply an empty file. Then when task B is scheduled to run, have it look for that marker file, using an IF file present action. You can have the marker file deleted as part of this process, using an else action to send your email. Attached is a simple example of this.


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


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

Justin Aucoin | Support Analyst
AutoMate | Division of HelpSystems
HelpSystems, LLC | T: +1.213.738.1700 | F: +1.213.738.7665
 01/11/2017 06:04 AM
User is offline View Users Profile Print this message

Author Icon
SteliosGkiokas
n00b (>6 posts)

Posts: 2
Joined: 03/22/2016

Hi Justin,

I didn't think the obvious - thank you

Kind Regards,

Stelios

 01/11/2017 06:13 AM
User is offline View Users Profile Print this message

Author Icon
Justin Aucoin
HelpSystems

Posts: 360
Joined: 02/15/2016

Hi Stelios,

I'm glad we were able to be of assistance.

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

Justin Aucoin | 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 1181 guests browsing this forum, which makes a total of 1181 users using this forum.

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

Sitemap Network Automation Software Blog