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 MAIN END Java Code is design by javaJet, component parameters and link Parameters active or not the pieces of Java code Link type manage generation order of all components begin main end parts.
There are some virtual component to manage generation order
2009 Talend All Rights Reserved
Slide 4
Component type
BEGIN
Input component
BEGIN
BEGIN
Virtual component
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 input process
Main 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 loop input
Main process
Main 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 input tMap Main output
BEGIN
BEGIN
MAIN
MAIN
END
END
Hash loader
BEGIN BEGIN MAIN MAIN MAIN END END END
call
BEGIN
While loop of the flow 2009 Talend All Rights Reserved
Slide 8
Virtual component break the flow
Main input Main output
tSort Output
tSort 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 Merge tUnite tMap Main 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
tMap
Main
output
input
tReplicate
Main tMap
Main 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 Iterate Table Trigger Link Subjob onSubjobOK onSubjobError Component onComponentOK onComponentError Run-If parallelize synchronize Lookup, merge
2009 Talend All Rights Reserved
Slide 12