Page 1 of 1

How to write condition for stopping the sequences

Posted: Tue Oct 09, 2007 11:32 pm
by nexus2me
How to write condition for stopping the sequences..

for ex:- suppose there are three jobs activities is there in sequence

Like this type

A ---> B ----> C

i want to run A and C .. Not B then how to write trigger condition...

Re: How to write condition for stopping the sequences

Posted: Wed Oct 10, 2007 1:19 am
by Havoc
nexus2me wrote:How to write condition for stopping the sequences..

for ex:- suppose there are three jobs activities is there in sequence

Like this type

A ---> B ----> C

i want to run A and C .. Not B then how to write trigger condition...
Put a nested condition activity stage after the job A...
put a trigger for C where the A.JobStatus < 3
and for Job B put the A.JobStatus = 3

The above will ensure:

Job C runs if Job A ran successfully but will not run Job B
Job B runs if Job A aborted and Job C will also not run in this case

Posted: Wed Oct 10, 2007 4:36 pm
by ray.wurlod
Change the job sequence design. I am inferring that you want to run B if A aborts or C if A succeeds. All you need is separate triggers out of A.

A -----> C
|
|
V
B

The trigger from A to C is a custom trigger with the expression A.$JobStatus = DSJS.RUNOK Or A.$JobStatus = DSJS.RUNWARN while the trigger from A to B is an Otherwise trigger.

Posted: Wed Oct 10, 2007 7:03 pm
by chulett
Or if you typically run all three and sometimes need to skip B, use Sequencer and Nested Condition to evaluate if B should run or not:


Code: Select all

A   -->  NC -->   B  -->  Seq/Any --> C
          |                   ^
          +-------------------+