A Simple Talend Job - Getting the Result File as an Attachment

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

Changes (13)

View Page History
h2. Exporting the job

The job export is detailled in the use case "A Simple Talend Job".
There is no difference.
Select the job and right-click it. Select *Export to Petals ESB*.
Update the target destination.
Let the job be exposed as a singleton.

Click *Edit the exposed contexts*.
A dialog shows up. Export the _outputLocation_ context as an *Out-Attachment*.

You should have the following dialog:

!SimpleJobExportOutAttachment.jpg!


Click the *Export mode* column, and select *Parameter* in the combo box. Click *OK*.
The link label should be updated and indicate the number of exported contexts.

!SimpleJobExportContext2.jpg!

Click *Finish*.



h1. Deploying and testing in Petals


\\
Now, your input message should be:
Now, your input message (in SoapUI) should look like this:

{code:lang=xml}
TODO
{code}

\\
And the returned message should be:
Notice that there are only empty parameters.

{code:lang=xml}

\\
The returned message, when everything works, is:

{code:lang=xml}
TODO
{code}
\\
If the job execution fails, the 0 is replaced by another integer, e.g. 1.
One failure reason can be, as an example, that the database is not started.

\\
Here are the first lines if this file (the database was populated with random values from another Talend job - do not be shocked by the values).

{panel}

TODO: detail the output attachment

{panel}