Hi
I would like Trigger the Job whether job status 1 or 2.
What is actual expression for this ?
Thanks
Man
Job sequence issue need help
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 73
- Joined: Tue May 10, 2005 6:21 pm
- Location: Sydney
Re: Job sequence issue need help
I guess it will be something like this:mandyli wrote:Hi
I would like Trigger the Job whether job status 1 or 2.
What is actual expression for this ?
Thanks
Man
JobActivity1.$JobStatus = DSJS.RUNOK Or JobActivity1.$JobStatus = DSJS.RUNWARN
JobActivity1 is the Job Activity Stage name.
Edward Yuan
Hi All,
I have a question here on the triggers. I have a sequencer which executes 10 jobs. I want to abort my job if any of these jobs has warnings or failure. So, what should I put in triggers? Since, all the 10 links are linked to one sequencer stage which is later linked to Job Activity stage where I have the triggers. Do I have to put the triggers the following way,
JobActivity1.$JobStatus = DSJS.RUNFAILED Or JobActivity1.$JobStatus = DSJS.RUNWARN or JobActivity2.$JobStatus = DSJS.RUNFAILED Or JobActivity2.$JobStatus = DSJS.RUNWARN or JobActivity3.$JobStatus = DSJS.RUNFAILED Or JobActivity3.$JobStatus = DSJS.RUNWARN
I have a question here on the triggers. I have a sequencer which executes 10 jobs. I want to abort my job if any of these jobs has warnings or failure. So, what should I put in triggers? Since, all the 10 links are linked to one sequencer stage which is later linked to Job Activity stage where I have the triggers. Do I have to put the triggers the following way,
JobActivity1.$JobStatus = DSJS.RUNFAILED Or JobActivity1.$JobStatus = DSJS.RUNWARN or JobActivity2.$JobStatus = DSJS.RUNFAILED Or JobActivity2.$JobStatus = DSJS.RUNWARN or JobActivity3.$JobStatus = DSJS.RUNFAILED Or JobActivity3.$JobStatus = DSJS.RUNWARN
Thanks !!!
Sambit
Sambit
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
It's probably easier not to handle failures through triggers and emplace an Exception Handler. This has activity variables that can be used to report which activity failed and why.
Check the "automatically handle activities that fail" check box in the job sequence compilation options.
Check the "automatically handle activities that fail" check box in the job sequence compilation options.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Participant
- Posts: 7
- Joined: Thu Apr 19, 2007 10:22 pm
- Location: Melbourne
Re: Job sequence issue need help
I would recommend the following custom trigger which has always worked for me.mandyli wrote:Hi
I would like Trigger the Job whether job status 1 or 2.
What is actual expression for this ?
Thanks
Man
JobActivity.$JobStatus = 1 OR JobActivity.$JobStatus = 2 OR JobActivity.$JobStatus = 11 OR JobActivity.$JobStatus = 12 OR JobActivity.$JobStatus = 13
Where values:
--------
1 = Finished OK
2 = Finished with warnings
11 = Validate OK
12 = Validate with warnings
13 = Validation failed
You may wish to drop a couple of these depending on what you are trying to achive.
Cheers,
Amar
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: