Passing data over if condition

Five Stars

Passing data over if condition

Hello ,

I am parsing file and it produces valid and invalid output.I want to store the data if there is no "Invalid parser output". If any parser error found i am setting(context variable X) flag value as true else false in "tJavaflex_3" . Based on this context variable(X) i want to store the final output to postgres Sql. If condition between tJavaflex_4 and tJavaflex_5 is validating the context variable (X). But the problem is how to pass main data between t_Javaflex component over if condition.  In this case i dont want to use context variables to because i have to parse more than 100000 records.


Accepted Solutions
Sixteen Stars TRF
Sixteen Stars

Re: Passing data over if condition

Consider this design:

Capture.PNG


TRF

View solution in original post

Sixteen Stars TRF
Sixteen Stars

Re: Passing data over if condition

Did this help?
If so, thank's to mark your case as solved (Kudo also accepted).

TRF

View solution in original post


All Replies
Sixteen Stars TRF
Sixteen Stars

Re: Passing data over if condition

Consider this design:

Capture.PNG


TRF

View solution in original post

Sixteen Stars TRF
Sixteen Stars

Re: Passing data over if condition

Did this help?
If so, thank's to mark your case as solved (Kudo also accepted).

TRF

View solution in original post

Five Stars

Re: Passing data over if condition

Thank you so much Smiley Happy 

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 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog