Breaking from tFlowToIterrate

Six 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
Eleven 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
Eleven Stars

Re: Breaking from tFlowToIterrate

tDie !

 

Francois Denis

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

Six 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.
Six 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 

Eleven 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!

Six 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.