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.

 

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

15TH OCTOBER, COUNTY HALL, LONDON

Join us at the Community Lounge.

Register Now

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.

Download