Procedure
-
Click the Code tab at the bottom of the
design workspace to check the generated code.
As shown above, a message route is built from the
Starter
, set a messageheader
by thecSetHeader
, and then sent tocTalendJob
for the execution of the Job. -
Press F6 to execute the Route.
As shown above, the header and body of the message is printed in the execution console by the tLogRow. The header value is
FileName
. It is defined by the cSetHeader and passed to the Job as a context variable. The body value isHello World!
. It is defined by tRouteInput using the context variablebody
of the Job. The value for this variable is set asworld
in the Job, but changed toHello World!
in cTalendJob.