Page 1 of 1

Job sequence scenario

Posted: Fri Jul 31, 2015 9:27 pm
by vamsi_4a6
I have 3 jobs A,B and c.If any of the two jobs are succesful among a,b and c i need to trigger Job D.All jobs a,b,c are independent jobs.As of now i am thinking four sequencers one for AB,BC,CA,ABC combination.I do not like this approach and can we do samething in different way

Posted: Sat Aug 01, 2015 6:36 am
by chulett
Use the Nested Condition stage.

Posted: Sat Aug 01, 2015 9:01 pm
by vamsi_4a6
nested condition can have one input trigger and typically has multiple output triggers.How to use this nested condition?You mean to say we have to write custom condition ?

Posted: Sun Aug 02, 2015 8:09 am
by chulett
Yes. Use a single Sequencer before it that all three funnel into and then write a custom condition. Another option would be a simple routine to count the number of successes and then trigger after that if it is > 1.

Posted: Sun Aug 02, 2015 11:00 pm
by ray.wurlod
vamsi_4a6 wrote:nested condition can have one input trigger and typically has multiple output triggers.How to use this nested condition?You mean to say we have to write custom condition ?
Yes, but they are fairly simple, being based on activity variables describing the exit status of jobs A, B and C. Just put those together with the appropriate logical operators to define the trigger that leads to job D.

Posted: Thu Aug 27, 2015 4:23 am
by vamsi_4a6
Joba

Jobb----------------->sequencer(any/all )----->nested condition------------>Jobd

Jobc




what i have to use for sequencer(any/all) and condition for nested condition?

Posted: Thu Aug 27, 2015 6:57 am
by priyadarshikunal
you can check for job status of all upstream jobs in nested condition. Use unconditional triggers connected to sequencer (ALL) and check for job status for all 3 jobs in nested condition. You can put all permutation combination in the condition there.

Posted: Thu Aug 27, 2015 7:24 am
by vamsi_4a6
what will happen if joba is aborted and jobb and jobc are success if we use sequencer with all?whether it will go to nested consition

Posted: Thu Aug 27, 2015 7:25 am
by chulett
As noted, it will if you let it - hence the suggestion to use 'unconditional' triggers to the sequencer.

Posted: Thu Aug 27, 2015 7:37 am
by vamsi_4a6
let us say

joba is running
jobb is success

jobc is success

In that case also will it go to nested condition?If yes i did not convey the requirements properly from my side. all the three jobs should be in one of the two status (completed or aborted).Then only i need to check the condition in nested condition stage

Posted: Thu Aug 27, 2015 7:54 am
by chulett
Sounds like you need to brush up on how the sequencer works. Set it to "All".