• Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » How to execute java code after a tWarn ?

#1 2008-01-11 12:09:32

pemen
Member
Company: EUROFINS
Registered: 2006-10-04
Posts: 59

How to execute java code after a tWarn ?

Hello,

I have a big Job with a lot of tWarns components (on join rejects).
For most of these tWarns, I want to execute the same bloc of Java code when the tWarns are executed.

For this, I linked the tWarns to a tJava component by a OnOk trigger (see the first linked image).

It doesn't work because the tJava code is called for each tWarn with the link and not only when the tWarn appends. It's normal because the tJava is called by OnOk trigger (so the tJava is called on the tWarn_end).

The solution is to use tJavaRow components. Each tWarn component has to be linked at a tJavaRow by a row link (see the second linked image).

But with this solution I have many tJavaRows who are totally similars and it's not a good way for the maintenance or evolutions.
Does anyone have another solution ? a best solution ?


Uploaded Images

Offline

#2 2008-01-11 12:54:16

laurie
Member
Company: Eurofins
Registered: 2008-01-11
Posts: 40
Website

Re: How to execute java code after a tWarn ?

One possibility is to put the common java code a in a java routine and call this routine in each tJavaRow.

But with this solution, there is always a lot of tJavaRow components that are identical.

Is there a solution where we can have only one component ?

Offline

#3 2008-01-11 18:56:35

mhirt
Talend team
Registered: 2006-09-19
Posts: 1633

Re: How to execute java code after a tWarn ?

Hello,

This can be the job of the tLogCatcher

Regards,


Uploaded Images

Offline

  • Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » How to execute java code after a tWarn ?

Board footer

Powered by FluxBB