You are not logged in.
Announcement
Unanswered posts
|
Pages: 1

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 ?
Offline
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
Pages: 1