Download as pdf or txt
Download as pdf or txt
You are on page 1of 12

Gnration dun programme TALEND

This document explain how Talend make Java Code


A talend Job have some Flow/Process/subJob
JAVA = the main Java Class have the name of the job

Subjobs are linked by trigger link

A subJob have one to many components


JAVA = Subjos is a java method name by the firsr component

Component are linked by flow link

A component make 3 java piece


JAVA = basic java code,
2009 Talend All Rights Reserved Slide 1
Job have differents subjobs

Subjob/Process

onSubjobOK

Subjob/Process

onSubjobOK

Subjob/Process

For each Trigger Link, a subjob is created

2009 Talend All Rights Reserved Slide 2


Process/Subjob
Process/Subjob have components linked by
flow or iterate links

Main Main Main

Subjobs components are linked by main, Iterate, or table link


Main link become a lookup link if there are two or more link to a component
Main link could be rename (ex tUniqueRow : Unique and Duplicate link)
Table link is used to create a cluster component

2009 Talend All Rights Reserved Slide 3


Component
A component have 3 parts: Begin, Main and End
javaJet

BEGIN Java Code is design by javaJet,


component parameters and link
Parameters active or not the pieces of
MAIN Java code
Link type manage generation order of all
END components begin main end parts.

There are some virtual component to manage generation order

2009 Talend All Rights Reserved Slide 4


Component type

Input component BEGIN BEGIN


Virtual component
BEGIN

MAIN MAIN
MAIN

END END
END

BEGIN
Output component

MAIN

END

BEGIN Process component


MAIN

END

2009 Talend All Rights Reserved Slide 5


Basic subjob (main link)

Main Main
input process output

BEGIN BEGIN BEGIN MAIN MAIN MAIN END END END

While loop

2009 Talend All Rights Reserved Slide 6


Basic subjob (with iterate link)

Iterate Main Main


loop input process output

BEGIN MAIN BEGIN BEGIN BEGIN MAIN MAIN MAIN END END END END

While loop of the flow

While loop of iteration

2009 Talend All Rights Reserved Slide 7


Basic subjob (with lookup link)

Input

Lookup

Main Main
input tMap output

BEGIN BEGIN MAIN MAIN END END


Hash loader

call BEGIN BEGIN BEGIN MAIN MAIN MAIN END END END

While loop of the flow

2009 Talend All Rights Reserved Slide 8


Virtual component break the flow

Main Main
tSort tSort
input output
Output Input

BEGIN BEGIN MAIN MAIN END END BEGIN BEGIN MAIN MAIN END END

While loop of the flow While loop of the flow

2009 Talend All Rights Reserved Slide 9


tUnite merge link

input

Main Main
Merge tUnite tMap output

Input

BEGIN BEGIN BEGIN

BEGIN MAIN MAIN MAIN MAIN END BEGIN MAIN MAIN MAIN MAIN END

While loop of the flow While loop of the flow


END END END

2009 Talend All Rights Reserved Slide 10


tReplicate

Main Main
tMap output

input tReplicate

Main Main

tMap output

BEGIN BEGIN BEGIN BEGIN BEGIN

BEGIN MAIN MAIN MAIN MAIN MAIN MAIN END

While loop of the flow


END END END END END

2009 Talend All Rights Reserved Slide 11


Links
Flow Link
Main Lookup, merge
Iterate
Table

Trigger Link
Subjob Component
onSubjobOK onComponentOK
onSubjobError onComponentError
Run-If
parallelize
synchronize

2009 Talend All Rights Reserved Slide 12

You might also like