use if else to choose between to data flows

Highlighted
Five Stars

use if else to choose between to data flows

I want to chose between two data flows depending on how many inputs i get.

Is there a way I can run the same sub component for two different data flows and only one of them runs based on if/else?

I know how to run two different sub jobs based on if/else.

Just want to run the same sub components based on input chosen.

 

Four Stars

Re: use if else to choose between to data flows

I suggest, you first count the number of records in your input

then you you use the connector if

I hope this will help
Regards
DGM
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Employee

Re: use if else to choose between to data flows

Hi,

 

   If you can assign each input a specific value (say 1 for input A, 2 for input B etc.) then you can do the filtering and redirection of data using tMap itself. You have to add the output expression filter to specify the flow which need to go to output.

 

Warm Regards,
Nikhil Thampi

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 :-)


Warm Regards,
Nikhil Thampi
Please appreciate our members by giving Kudos for spending their time for your query. If your query is answered, please mark the topic as resolved :-)

What’s New for Talend Spring ’19

Watch the recorded webinar!

Watch Now

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch

Downloads and Trials

Test drive Talend's enterprise products.

Downloads

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Download