Sending the XML document to the Job - Cloud - 8.0

Talend Data Fabric Studio User Guide

Version
Cloud
8.0
Language
English (United States)
EnrichDitaval
Data Fabric
Product
Talend Data Fabric
Module
Talend Studio
Content
Design and Development

Procedure

  1. Click the third step to display the Step Specifications area where you can define the step parameters.
    Note: You can disable the selected step in the open Process editor at any time if you select the Disable check box in the Step Specification area.
  2. From the Plugin name list, select callJob.
    A description for the selected plugin displays in the box above the Plugin name field.
    Note: The button displays a dialog box that describes the plugin and details its parameters.
  3. Map the decode_xml variable defined in the previous step to this step text input parameter and click the button to add them to the table.
  4. Map this step output parameter to a new variable called output, for example then click the button to add them to the table.
    Note: For each step, you can select one of the by-default variables or one of the variables defined for the preceding plugin the Process you define.
  5. In the Parameters area, complete the definition as follows:<configuration> <url>ltj://ValidatePriceChange/0.1</url> <contextParam> <name>xmlInput</name> <value>{decode_xml}</value> </contextParam> </configuration>
    In the Parameters area, click the three-dot button next to the URL field to open a dialog box. Here you can select the Job you want to invoke.
  6. In the Context Parameters area, set the actual name of the context variable that will receive the XML record.
  7. If required, click the Source tab in the lower left corner of the Process editor to switch to the text editor. Here you can enter the parameters directly in XML.
    Warning: The text you enter in the text editor is indented by default upon saving. This may cause problems in certain cases such as the HTML formatting when creating a Smart View process. If required, clear the Auto-indent check box to disable the text indentation upon saving the process.
    The Job will thus need to parse the context variable using a tExtractXMLField component. You can send as many context variables as necessary, including literal values.
  8. Click the save icon on the toolbar or press Ctrl + S on your keyboard to save your changes.

Results

The newly created Process is listed under the Process node in the MDM Repository tree view.

Now that the Process has been created, you can call it using a Trigger. Once called, it will transform the master data records according to the tasks defined in the Process.

For more information on how to call a specific Process in a Trigger, see Selecting the service to Trigger and setting the service parameters. For more information on Triggers, see Triggers.