cancel
Showing results for 
Search instead for 
Did you mean: 

SAP CPS Job condition issue!!

andrew_movius
Discoverer
0 Kudos

Hi Team,

We have a requirement in SAP CPS (Redwood),  we need to run one job in a group of job chain only after last successful completion of two different job chain(not part of same group). If these job chains are not successfully completed so this specific step and next onward should be skipped.

Kindly suggest on this.

Thanks,Narender

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member206885
Participant
0 Kudos

Hi Andrew,

Configure two succesful events say sEVENTA and sEVENTB and two error events eEVENTA and eEVENTB on the two different job chains job chain A and Job chain B which gets raised when these two chains are succesful or errored. Create a redwood script which runs before the job in the group which is dependent on these two chains A and B. This script will check which events are raised. If success events are raised..continue else raise exception to stop the chain.

Regards,

Tinku

andrew_movius
Discoverer
0 Kudos

Thanks for the information Tinku!!

According to my requirement we only need to check the last successful status of the job, if we use event then we also need to clear the vent at same time else every time even would remain raised n condition wouldn't met then.

Please suggest!!

nanda_kumar21
Active Contributor
0 Kudos

The only other option is to create a Redwood script job definition and run it before this one job of yours.

I would revisit the dependencies, since it doesn't make sense to run them as different groups, if they are all dependent.

thanks

Nanda