Page 1 of 1

Trigger options in Job Activity in a Sequence

Posted: Wed Nov 21, 2007 11:47 am
by Rea_Antony
Hi,
I have placed a job in a sequence. Under the 'Job Activity' options there is a Trigger tab.
Under 'Expression', I have 4 options:
Unconditional
Otherwise
OK (Conditional)
Failed (Conditional)
Warning (Conditional)
UserStatus (Conditional)
Custom (Conditional)

My query is as follows:
I have two jobs in a sequence. If the first job aborts it has to write the same to log. Hence, if it aborts, 'Execution Failed' will be written in log.
But I need to run the second job regardless of whether the first job is successful or not. Hence, under the 'properties' for the first job activity, shouldn't I put the expression as 'Unconditional' and not Otherwise?

Can someone please confirm the same for me? Thanks in advance.

Re: Trigger options in Job Activity in a Sequence

Posted: Wed Nov 21, 2007 12:57 pm
by baigdw
Rea_Antony wrote:Hi,
I have placed a job in a sequence. Under the 'Job Activity' options there is a Trigger tab.
Under 'Expression', I have 4 options:
Unconditional
Otherwise
OK (Conditional)
Failed (Conditional)
Warning (Conditional)
UserStatus (Conditional)
Custom (Conditional)

My query is as follows:
I have two jobs in a sequence. If the first job aborts it has to write the same to log. Hence, if it aborts, 'Execution Failed' will be written in log.
But I need to run the second job regardless of whether the first job is successful or not. Hence, under the 'properties' for the first job activity, shouldn't I put the expression as 'Unconditional' and not Otherwise?

Can someone please confirm the same for me? Thanks in advance.
UNCONDITIONAL should be the trigger the next job irrespective of the status of the first job completion as per your requirement.

Re: Trigger options in Job Activity in a Sequence

Posted: Wed Nov 21, 2007 1:00 pm
by baigdw
Rea_Antony wrote:Hi,
I have placed a job in a sequence. Under the 'Job Activity' options there is a Trigger tab.
Under 'Expression', I have 4 options:
Unconditional
Otherwise
OK (Conditional)
Failed (Conditional)
Warning (Conditional)
UserStatus (Conditional)
Custom (Conditional)

My query is as follows:
I have two jobs in a sequence. If the first job aborts it has to write the same to log. Hence, if it aborts, 'Execution Failed' will be written in log.
But I need to run the second job regardless of whether the first job is successful or not. Hence, under the 'properties' for the first job activity, shouldn't I put the expression as 'Unconditional' and not Otherwise?

Can someone please confirm the same for me? Thanks in advance.
UNCONDITIONAL should be the trigger the next job irrespective of the status of the first job completion as per your requirement.

Re: Trigger options in Job Activity in a Sequence

Posted: Wed Nov 21, 2007 1:08 pm
by baigdw
Rea_Antony wrote:Hi,
I have placed a job in a sequence. Under the 'Job Activity' options there is a Trigger tab.
Under 'Expression', I have 4 options:
Unconditional
Otherwise
OK (Conditional)
Failed (Conditional)
Warning (Conditional)
UserStatus (Conditional)
Custom (Conditional)

My query is as follows:
I have two jobs in a sequence. If the first job aborts it has to write the same to log. Hence, if it aborts, 'Execution Failed' will be written in log.
But I need to run the second job regardless of whether the first job is successful or not. Hence, under the 'properties' for the first job activity, shouldn't I put the expression as 'Unconditional' and not Otherwise?

Can someone please confirm the same for me? Thanks in advance.
UNCONDITIONAL should be the trigger the next job irrespective of the status of the first job completion as per your requirement.

Re: Trigger options in Job Activity in a Sequence

Posted: Wed Nov 21, 2007 1:42 pm
by gateleys
Yes.

Posted: Wed Nov 21, 2007 1:56 pm
by ray.wurlod
I agree about Unconditional trigger.

You might create a second link with a Failure trigger, if you want to handle the Abort result specifically, for example by sending email.

Posted: Thu Nov 22, 2007 1:10 pm
by Rea_Antony
Thank you very much :D