A Simple Talend Job

Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (17)

View Page History
{section}
{column}

h1. Preliminary notes

Propagate the schema changes to the *tFileOutputDelimited*.
And let's now configure this second component. Select it on the graphical workspace and go into the *Component* view.
Click *...* on the *file name* row, and select the output location, e.g. "C:/Documents and Settings/vzurczak/Bureau/output.csv".
This it for the basis configuration, the job would be able to work this way.

\\
However, we would like to make the target destination not hard-coded, but provided as a property.
We This is why we are now going to replace this value by a context.
Go into the *Contexts* view.
Click *+* and give the new context variable the name "outputLocation". Let it be a string.
Go into the "values *Values as tree"* tab, and set the default value of this context variable to a file path, e.g. C:/Documents and Settings/vzurczak/Bureau/output.csv (without the quotes).

!SimpleJobContextes.jpg!
h2. Exporting the job

Select the job and right-click it. Select *Export to Petals ESB*. Job Scripts*.
In the *Export type* combo, select *Petals ESB*.
Update the target destination. And let the job be exposed as a singleton. Do not export any context.
Let the job be exposed as a singleton. Do not export any context.

You should have the following dialog:

!SimpleJobExport.jpg! !PetalsExport.jpg!

Click *Finish*.

{code:lang=xml}
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tal="http://petals.ow2.org/talend/">

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<tns:executeJobResponse
xmlns:tns="http://petals.ow2.org/talend/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

\\
Another way to check the job's successful completion, is to check the existence of the output file.
Here are the first lines in this file (the database was populated with random values from another Talend job - do not be scared shocked by the values).

{noformat}