tJavaFlex behaviour when changing loop position

a 夏天 提交于 2019-12-02 09:54:10

Yes you don't use it correctly.

  • The initial part is for initiate variable. (executed one time before the first tow)
  • In the principal you put your loop (executed one time at each row)
  • In the final you store in global variable for example.(executed one time after the last row)

The principal code will be executed at each row in a tjavaflex. So don't put a for loop inside you can do like the example in the screen.

You tjavaflex comportement is normal. you have ten row so each row the for loop wil be executed 10 time (i<10)

You can use it like :

You dont need to create your own loop.

By putting the for loop in the Start code, your main code will be triggered by the loop and by incoming rows, and it will be executed n*r times.

The behaviour of subjob that contains a tJavaFlex, reveils that component before tJavaFlex is included into its starting code, and the after component is included in the ending code, but that may depend to many conditions like data propagation and trigger type.

start code :

System.out.print("tJavaFlex is starting...");
int i = 0;

Main code :

i++;
System.out.print("tJavaFlex inside Main Code...iteration:"+i);
row8.ITEM_NAME = row7.ITEM_NAME;
row8.ITEM_COUNT = row7.ITEM_COUNT; 

End code :

System.out.print("tJavaFlex is ending..."); 
System.out.print(row7.ITEM_NAME);
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!