Petals-SE-Talend

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

Changes (10)

View Page History
This component allows to expose Talend jobs as services into Petals and to execute them inside the bus.
It only acts as service provider, not as a service consumer.
This component supports jobs created with both Talend Open Studio and Talend Integration Suite (see http://www.talend.com for more details).

It provides several mechanisms to pass information and data to a job.

The native job's output is an array of array of String, that is to say: {code:lang=java}String[][]{code}
This result may contain only an integer, in which case {code:lang=java}String[ 0 ][ 0 ]{code} is an integer and indicates the result of the job execution. Otherwise, this array contains raw data (which is the case if the job contains a tBufferOutput).
This can be a solution to determine whether the job execution succedded or not. The Petals-SE-Talend does not do it. It is the responsibility of the client to make this check (since in fact, it depends on the job itself).

\\
If the job contained a tPetalsOutput, then the output data flow is retreived from the job.

About the tPetalsInput or the tPetalsOutput components:
* A job can contain several instances of any of these components.
* All the tPetalsInput instances point to the same input message.

* All the tPetalsInput must have the same schema.
** This is checked during the export.

* All the tPetalsOutput must have the same schema.
** This is checked during the export.

* All the tPetalsInput instances read the same input message.

* All the tPetalsOutput instances write in the same output message.
** If two instances of tPetalsOutput are on the same processing flow, the second will erase what is written by the first instance.

The export is the same in both Talend Open Studio and Talend Integration Suite.
The generated artifacts are the same in both of them. And the content of the jbi.xml is (almost) the same in both of them.
The only differences are the job's content (which Talend components have been added into the job) and the generated WSDL (which depends on the job content and the export options).

The service-unit structure and the jbi.xml are desribed farther.
This section only introduces the export options, options and their impact on the result.
The generated WSDL is not discussed in this documentation.
However, you will find samples in the simple use cases for this component.


|| Export Mode || Description ||
| Not exported | The context is not exported (not visible as a parameter). But the context can still be overridden using the native parameters (options) of the job. |
| Parameter | The context is exported as a parameter in the contexts. WSDL's operation. |
| In-Attachment | The context will be passed the location of a temporary file whose content was attached in the input message. |
| Out-Attachment | The context will be read after the job was executed.