Community forum

Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


ScubaDrew
2011-03-08T00:01:19Z
Hello,

I have a job, with a file trigger which starts when a file is created in the directory.

It will be named either People.txt or VIPPeople.txt

I'd like to run one task if it's people, a different task if it is VIPPeople.

Is there a way to do this?

I could try a trigger with file mask with *VIP*.txt but I'm not sure how I'd setup the other job trigger.

Thanks,

Drew
Sponsor
Forum information
ErikC
2011-03-08T10:39:47Z
Hi ScubaDrew,

You could make the job trigger to files like: *People.txt
Than you could add two conditions: Both reading the triggered filename of the trigger event. The 1st will match this output to People.txt, the other to VIPPeople.txt.
You should setup the actions so that the task getting this condition my only run on match all/any, otherwise it should go to the next task.

Now you can make two tasks, one for the People.txt and one for the VIPPeople.txt and adding the right condition to both and you're done.

An other way is to make two jobs, so you do not haveto make conditions.

Regards
Erik
Uses Visualcron since 2006.
ScubaDrew
2011-03-08T17:00:16Z
ErikC wrote:

Hi ScubaDrew,

You could make the job trigger to files like: *People.txt
Than you could add two conditions: Both reading the triggered filename of the trigger event. The 1st will match this output to People.txt, the other to VIPPeople.txt.
You should setup the actions so that the task getting this condition my only run on match all/any, otherwise it should go to the next task.

Now you can make two tasks, one for the People.txt and one for the VIPPeople.txt and adding the right condition to both and you're done.

An other way is to make two jobs, so you do not haveto make conditions.

Regards
Erik



Thanks Erik, I'm going to give this a shot now. I was trying to impliment the single Job solution, but having trouble figuring a wa to setup the conditions on the filename. I'll look again now and post my success or failure.

appreciate your time,

Drew
ScubaDrew
2011-03-08T21:24:54Z

I'm trying to use a variable condition with Value 1 set to:

{STRING(Contains|{TRIGGER(7f05c220-97c2-4038-8dd7-238ad4f697c6,5bbaf2c8-7ae7-496d-aae7-58cf4de1a8aa,File.Result.Name)}|VIP)}

Then Type: String Condition: Equal

Value 2: True

But despite the fact the value preview gives the results I expect, when the job is actually run, this condition is never met.

I can't find any documentation on the variable conditions either.

Thanks for any help,

Drew


ScubaDrew wrote:

ErikC wrote:

Hi ScubaDrew,

You could make the job trigger to files like: *People.txt
Than you could add two conditions: Both reading the triggered filename of the trigger event. The 1st will match this output to People.txt, the other to VIPPeople.txt.
You should setup the actions so that the task getting this condition my only run on match all/any, otherwise it should go to the next task.

Now you can make two tasks, one for the People.txt and one for the VIPPeople.txt and adding the right condition to both and you're done.

An other way is to make two jobs, so you do not haveto make conditions.

Regards
Erik



Thanks Erik, I'm going to give this a shot now. I was trying to impliment the single Job solution, but having trouble figuring a wa to setup the conditions on the filename. I'll look again now and post my success or failure.

appreciate your time,

Drew


ScubaDrew
2011-03-08T22:19:42Z
Got this working by changing Value 1 to:

{STRING(Contains|{TRIGGER(fa570034-34b8-43f6-adf9-13a7cc8ef1ee,f2b2b915-c7c8-4c7b-a2e9-988dfee43341,File.Result.Name)}|VIP)}

This is under Trigger->File->Result verus Trigger->File->Last Trigger.

Thanks,

Drew


ScubaDrew wrote:


I'm trying to use a variable condition with Value 1 set to:

{STRING(Contains|{TRIGGER(7f05c220-97c2-4038-8dd7-238ad4f697c6,5bbaf2c8-7ae7-496d-aae7-58cf4de1a8aa,File.Result.Name)}|VIP)}

Then Type: String Condition: Equal

Value 2: True

But despite the fact the value preview gives the results I expect, when the job is actually run, this condition is never met.

I can't find any documentation on the variable conditions either.

Thanks for any help,

Drew


ScubaDrew wrote:

ErikC wrote:

Hi ScubaDrew,

You could make the job trigger to files like: *People.txt
Than you could add two conditions: Both reading the triggered filename of the trigger event. The 1st will match this output to People.txt, the other to VIPPeople.txt.
You should setup the actions so that the task getting this condition my only run on match all/any, otherwise it should go to the next task.

Now you can make two tasks, one for the People.txt and one for the VIPPeople.txt and adding the right condition to both and you're done.

An other way is to make two jobs, so you do not haveto make conditions.

Regards
Erik



Thanks Erik, I'm going to give this a shot now. I was trying to impliment the single Job solution, but having trouble figuring a wa to setup the conditions on the filename. I'll look again now and post my success or failure.

appreciate your time,

Drew



Scroll to Top