I want to execute component only if previous component have rows more than 'n'
how to achieve this where condition can be on count of rows processed in link from previous component ?
Solved! Go to Solution.
The best way is to validate the value of NB_LINE parameter of the main flow like below (using Control+Space to get all available variables).
Another small trick is to add a numeric sequence to the input flow and map the value to a context variable. Once the last row s also processed, use the value loaded in that context variable to measure the number of rows.
Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved :-)
#1 NB_LINE parameter - I tried control+space by selecting component and by selecting link but it is not working out. I will get message as "Properties not available"
#2 add a numeric sequence -- Here you may need to give me more details, please. Are you referring "Numeric" routine ? or is it something in Tmap ?
Talend named a Leader.
Kickstart your first data integration and ETL projects.
Watch the recorded webinar!
Learn how to do cool things with Context Variables
Find out how to migrate from one database to another using the Dynamic schema
Pick up some tips and tricks with Context Variables