Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
JayQueue
Creator
Creator

Multiple inputs from tMap to tJavaRow

Hello,

I can send 2 types of JSONs but the send Java code is the same for both.

To create the different JSONs I use a tMap with an expression filter. But the tJavaRow only accepts 1 input.

0695b00000OBHVYAA5.png 

I want both JSON to use the Post2MAGDA tJavaRow, if it's possible.

What is the best practice here?

Thanks,

Jonathan

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable

Once the path is split into 2 different routes, you cannot merge them within the same Subjob (without using some code that is). There are many reasons for this.

 

Your options here are to ....

  1. Repeat the Post2MAGDA tJavaRow component (probably not the most elegant way of doing this)
  2. Use tHashOutput components to collect the data into memory after your tMap, then in another SubJob following the above, read that data (combined) from a tHashInput component and process it using the Post2MAGDA config you have above

 

https://help.talend.com/r/en-US/8.0/technical/thashoutput

 

https://help.talend.com/r/en-US/8.0/technical/thashoutput-thashinput-tfixedflowinput-tfileoutputdelimited-dropping-and-linking-components-standard-component-drag

View solution in original post

3 Replies
Anonymous
Not applicable

Once the path is split into 2 different routes, you cannot merge them within the same Subjob (without using some code that is). There are many reasons for this.

 

Your options here are to ....

  1. Repeat the Post2MAGDA tJavaRow component (probably not the most elegant way of doing this)
  2. Use tHashOutput components to collect the data into memory after your tMap, then in another SubJob following the above, read that data (combined) from a tHashInput component and process it using the Post2MAGDA config you have above

 

https://help.talend.com/r/en-US/8.0/technical/thashoutput

 

https://help.talend.com/r/en-US/8.0/technical/thashoutput-thashinput-tfixedflowinput-tfileoutputdelimited-dropping-and-linking-components-standard-component-drag

JayQueue
Creator
Creator
Author

@Richard Hall​ Thank you, I'll start working on it.

It's a small change of mind coming from FME:)

 

JayQueue
Creator
Creator
Author

Worked like a charm!