Trigger Dependency question - VisualCron - Forum

Community forum

osirisja
2013-01-03T13:57:09Z
Hi All

I'm just trying to get my head around the best way to automate a tricky task. I think I have it right in my head by using Trigger Dependencies, but I want to just double check with anyone who might have done something similar. I have never used the trigger dependencies, hence the 'probably' silly question.

I have a task that is dependent on two triggers. The first one will be an automated Email which has key production data in it which is required by the job, however, when the email is received it is possible that the data hasn't yet arrived (it will be in the early hours of the morning so the operation will be unattended). So, my question is, can I send the email so the contents are 'retained' but then wait for the second trigger (or further triggers) to fire so that everything is in place before the job runs (most importantly, the content of the email will still be available for reading)?

Thanks much

Cheers

Andy
Support
2013-01-04T11:15:58Z
Let say the Email Trigger Triggers first and then the Time Trigger. In that case the Variables from "last" Trigger will be overwritten by the time Trigger. But, since you can configure the Email Trigger to save email and attachments you could probably pickup the latest email.

Another alternative is to have another Job that watches the same folder and then save result in some way, on file or database, so that the first Job can pickup that info when the second Time Trigger has triggered.

Not sure if this is what you meant?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
osirisja
2013-01-04T15:00:58Z
Thanks Henrik - That's given me a couple of options to consider

Cheers

Andy
osirisja
2013-01-04T17:32:09Z
Hi Henrik

In the Email Trigger, it allows you to save the email to a psecified path, but can it be saved in a format that can read by VC rather than .eml format? e.g. just write the Email Body out as a text file?

Also, can we define the Filename to save the email as? It seems to me that at the moment we have to trigger the job with an email and write the email data out to a file with the Write task which means the job has to run, which kind of defeats the purpose of a trigger dependency?

Cheers

Andy
Support
2013-01-04T18:11:19Z
If you ran the Email Trigger separately you could retrieve the body through Variables. You cannot control the name of file, it is always set to the id of the email.

Trigger dependency was built to match two dependencies or more dependencies. The Triggers could potentially Trigger thousands of times before all are met and then is the question which value from which Trigger you want.

Giving two much features that are to specific in the Trigger turns the Trigger to a Task more than the core Trigger it was supposed to be.

In your case it seems more natural to use the Email Trigger only and use that Job to prepare the emails. Then you have a Time trigger which handles all files/emails that have been processed at a certain time.

Originally Posted by: osirisja 

Hi Henrik

In the Email Trigger, it allows you to save the email to a psecified path, but can it be saved in a format that can read by VC rather than .eml format? e.g. just write the Email Body out as a text file?

Also, can we define the Filename to save the email as? It seems to me that at the moment we have to trigger the job with an email and write the email data out to a file with the Write task which means the job has to run, which kind of defeats the purpose of a trigger dependency?

Cheers

Andy




Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top