tLoop combined with tIterateToFlow using while condition results in infinite loop

Ten Stars

tLoop combined with tIterateToFlow using while condition results in infinite loop

First : globalMap.put("response_success", true)

tLoop with while condition:   ! ((boolean) globalMap.get("response_success"))

tIterateToFlow : sets some parameters like page_nr , to call soap , until no response, set response_success=false... and stop the loop.

 

Look at the picture. I also tried it with a context variable.

Im missing something here...  Cant get it to work with a tIterateToFlow, basicly  tLoop never checks the global var .

Please help me out on this one Smiley Sad

 

Highlighted
Moderator

Re: tLoop combined with tIterateToFlow using while condition results in infinite loop

@Dijke, can you try with 

 

((boolean) globalMap.get("response_success"))==false

Manohar B
Don't forget to give kudos/accept the solution when a replay is helpful.
Highlighted
Ten Stars

Re: tLoop combined with tIterateToFlow using while condition results in infinite loop

I've tried all variatons on true/false testing (before I've posted), tried numbers too... The problem is within the tLoop if I use i<10 it works fine... as soon as I switch to whatever global var... it is broken.
Highlighted
Moderator

Re: tLoop combined with tIterateToFlow using while condition results in infinite loop

@Dijke,when you give global variable.you specify with Integer?

can you try with (Integer)global variable>10

Manohar B
Don't forget to give kudos/accept the solution when a replay is helpful.
Highlighted
Ten Stars

Re: tLoop combined with tIterateToFlow using while condition results in infinite loop

@manodwhb, I already tried... I also did some code inspection to see what might be the caus

Could you plase try (or somebody at Talend?), Ive exported the TEST job!?

2019 GARTNER 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

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