Breaking from tFlowToIterrate

Eight Stars

Breaking from tFlowToIterrate

Hi all.

I wonder if any of you has some tricks to exit from tFlowToIterrate iteration like a break in a for loop.


Accepted Solutions
Twelve Stars

Re: Breaking from tFlowToIterrate

you are true but it's the only (quick) way you have to structure job and sub job for it.
an other way is to skip all next iteration.
add a global var and test it before each iteration.

Francois Denis

Tag as "solved" for others! Kudos to thanks!


All Replies
Twelve Stars

Re: Breaking from tFlowToIterrate

tDie !

 

Francois Denis

Tag as "solved" for others! Kudos to thanks!

Seven Stars

Re: Breaking from tFlowToIterrate

you can process outflow as:

 

tFlowToIterate-->tjava(*handle break condition)-->tDie

Regards
Aashish
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Eight Stars

Re: Breaking from tFlowToIterrate

Correct me if I'm wrong but doesn't tDie stop the processing of current job? What I want is exiting only the iteration 

Twelve Stars

Re: Breaking from tFlowToIterrate

you are true but it's the only (quick) way you have to structure job and sub job for it.
an other way is to skip all next iteration.
add a global var and test it before each iteration.

Francois Denis

Tag as "solved" for others! Kudos to thanks!

Highlighted
Eight Stars

Re: Breaking from tFlowToIterrate

I will accept this as a solution but before, I will profit to ask what if I want this time to exit a flow, I mean if a line match a given condition, don't process the remaining lines.

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

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch