ray.wurlod wrote:Why do you think one of his job titles is "analyst"?
He could (should?) have pointed out that what's postulated is not even possible in a sequencer.
It is, of course, possible in a job sequence.
The only thing you can do in a sequencer is fire its output trigger(s) if any or all of its inputs have fired.
Oy... let's not mention any of my other 'job titles', shall we?
And I missed the whole 'sequencer' thing in the subject. Dang, time for another round of self-flagellation. 'Attention to detail, lad!' as someone would say...
-craig
"You can never have too many knives" -- Logan Nine Fingers
Eventhough I found a solution, I don't think it is best one. Now, I have 2 different sequences. One does all the work and looping for the Wait_For_File_Activity stage. The other will fire at a certain time based on the scheduler and check if the file exists through UNIX. If it doesn't, then it'll notify. I am sure this can be done in 1 job sequence but I can't think of any ideas yet.
Do you want to recap why you don't currently have it all in one right now? I don't really understand the relationship between the two in your last post or what issues you've been facing other than the Notification trigger, even after re-skimming the entire thread. Your two different sequences - is one a sub-sequence run by the other or are they discrete sequences?
Be glad to attempt to help if you can state how it all should be working.
-craig
"You can never have too many knives" -- Logan Nine Fingers
These are 2 distinct sequences. One has an ExecCommand followed by a NotificationActivity. If there is no row in the folder at 12 noon then an email is sent.
In the first sequencer, I have a loop. Inside the loop, I have a Wait_For_File activity stage. This checks for the file every minute. If at noon (system time), the file has not arrived, an email is supposed to be sent. My Wait_For_File stage continues on the same path in the loop even if the file is found or not. What I want to do is, if the file is not found and current time is past noon, I want to send an email. I want this to happen just once.
Ok. For now at least, I have given up hope of combining the 2 sequencers. Can someone help me with the second sequencer problem?
I have a simple ls command in the ExecCommand activity stage. If it is greater than 0, I want to move on to the next stage in the sequencer, if it is not, I don't want to do anything else. I just have 2 stages in the sequencer. I have set a ReturnValue > 0 in the Triggers page of the ExecCommand stage. However, this doesn't work. Regardless of the
value I set, in the log it says "No such file or directory" even if there is one and it doesn't go to the next stage.
This means that if there is a file, it should NOT go on to the next stage in the sequencer
and end. If there is no file, then it should go into the next stage. This doesn't happen.
Also, my sequencer has just 2 stages. First, an ExecuteCommand stage and then a Notification Activity stage. For a certain value, I want the flow to go to the Notification stage otherwise I just want the sequencer stage to end there. Do I have to have another stage for different values?
Screen output from commands are returned in a dynamic array, so you'll get more than just the count returned. There just was a nice thread on all this, I'll have to see if I can dig it up.
You need to check the first element of the returned value for zero, either that or filter out the @FM characters that are goofing you up right now. So, try this as a Custom expression:
splayer wrote:Also, my sequencer has just 2 stages. First, an ExecuteCommand stage and then a Notification Activity stage. For a certain value, I want the flow to go to the Notification stage otherwise I just want the sequencer stage to end there. Do I have to have another stage for different values?
No, just don't define a trigger for these 'other values' and it will end right there.
-craig
"You can never have too many knives" -- Logan Nine Fingers