Merge several "On Subjob Error"-Connectors to one component/subjob

One Star

Merge several "On Subjob Error"-Connectors to one component/subjob

Hi there!
We have a job-chain executing several subjobs, all jobs are connected with "on subjob ok". So the end of the chain is only reached if all subjobs ended with "ok".
What we try to realize is to connect ALL "on subjob error" connectors to ONE component (tSendMail) to notify us, if any of the subjobs ended with an error.
Connecting more than one connector to the tSendMail component doesn't work. So any suggestions how we could get that working?
Thanks in advance!
Greetings, Christopher
One Star

Re: Merge several "On Subjob Error"-Connectors to one component/subjob

Hi,
You can create an independent job 'FailureJob' which contains your tSendMail.
And add this job after each 'on subjob error'.
One Star

Re: Merge several "On Subjob Error"-Connectors to one component/subjob

Hi NicolasTT,
I thought there could be a component that accepts many input-connectors and has only one output connector. If any of these input-connectors is triggert the output connector would be triggert.
Like an opposite to the "tParallelize" component.
Seventeen Stars

Re: Merge several "On Subjob Error"-Connectors to one component/subjob

I do this in this way:
subjob 1 ---> OnSubjobError ---> tJava_1 (leaf it empty) ---> OnComponentOK --------------
|
subjob 2 ---> OnSubjobError ---> tJava_2 (leaf it empty) ---> OnComponentOK ---> subjob for error handling
I know it looks a bit cumbersome but it is quick done.