How to convert tjava code to tjavaflex?

Five Stars

How to convert tjava code to tjavaflex?

I have following tjava code which I need to implement in tjavaflex component.  The reason is tJava component is not connecting to tRestClient component.

 

if ( ((Integer)globalMap.get("tLoop_2_CURRENT_ITERATION")) > 10)
{

context.continueLooping = false;
}

else
{
context.continueLooping = true;
}

Forteen Stars

Re: How to convert tjava code to tjavaflex?

just put your code in a midle part of tJavaFlex.

 

top part - run before any iterations

middle - run for each row, what you are really want

bottom part - run after all iterations

 

-----------

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 Integration

Practical steps to developing your data integration strategy.

Download