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

 

-----------

What’s New for Talend Spring ’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