• Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » Purpose of tFlowToIterate and tIterateToFlow

#1 2012-06-26 17:08:31

tpk
Member
Registered: 2012-01-20
Posts: 178

Purpose of tFlowToIterate and tIterateToFlow

Tags: [development]

Hi Team,

I was trying to understand the exact purpose of tFlowToIterate and tIterateToFlow components. I tried to understand the components by reading the documentation available for the components, but it could not help me. I didn't exactly understand the actual use.

Can any one explain me with a good scenario that can be easily understandable and grasped.

Thanks in advance for the solutions you are going to post.

Thanks and Regards,
Pavan

Offline

#2 2012-06-27 05:31:58

pedro
Member
Registered: 2011-11-17
Posts: 3682

Re: Purpose of tFlowToIterate and tIterateToFlow

Hi Pavan

Two scenarios would explain these two components.

Scenario 1---tFlowToIterate:
Let's say we have a mysql table called tableA which contains queries like "select * from tableB". I need to extract thses queries from tableA and use them for extracting data from tableB.
tMysqlInput(tableA)--main(row1)-->tFlowToIterate--Iterate-->tMysqlInput_2--main-->tLogRow
In tMysqlInput_2, I type this expression 'row1.query' in the query text field on tMysqlInput_2 for further extraction.

Scenario 2---tIterateToFlow:
tFileList--Iterate-->tIterateToFlow-->tLogRow
How can I get all file names from the specified directory and print them on console?
Use tIterateToFlow as the following image.

Regards,
Pedro


Uploaded Images


Only Paranoid Survive.

Offline

#3 2012-06-27 12:24:52

tpk
Member
Registered: 2012-01-20
Posts: 178

Re: Purpose of tFlowToIterate and tIterateToFlow

Hi Pedro,

Thank you for the scenarios!

Thanks and Regards,
Pavan

pedro wrote:

Hi Pavan

Two scenarios would explain these two components.

Scenario 1---tFlowToIterate:
Let's say we have a mysql table called tableA which contains queries like "select * from tableB". I need to extract thses queries from tableA and use them for extracting data from tableB.
tMysqlInput(tableA)--main(row1)-->tFlowToIterate--Iterate-->tMysqlInput_2--main-->tLogRow
In tMysqlInput_2, I type this expression 'row1.query' in the query text field on tMysqlInput_2 for further extraction.

Scenario 2---tIterateToFlow:
tFileList--Iterate-->tIterateToFlow-->tLogRow
How can I get all file names from the specified directory and print them on console?
Use tIterateToFlow as the following image.

Regards,
Pedro

Offline

  • Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » Purpose of tFlowToIterate and tIterateToFlow

Board footer

Powered by FluxBB