August 15, 2023

Creating the Job communicating the MDM message – Docs for ESB 6.x

Creating the Job communicating the MDM message

Linking the components

  1. Create a Job named update_product.
  2. Drop tMDMTriggerInput,
    tXMLMap, tMDMTriggerOutput
    and tLogRow from Palette onto
    the workspace.
  3. Right-click tMDMTriggerInput and from the contextual
    menu, select the Row > Main link to connect it to tXMLMap.
  4. Do the same to connect tXMLMap to
    tMDMTriggerOutput, and name the connection
    output.
  5. Double-click tMDMTriggerOutput to open its
    Component view.
  6. Click the […] button next to Edit
    schema
    to open the editor.
  7. Select the single pre-defined column of
    tMDMTriggerOutput, and then click schema_icon-left_arrow.png to
    reproduce this column on the input side (left).
  8. Connect tMDMTriggerOutput to
    tLogRow using the Row > Main connection.

    use_case-tmdmtriggerinput9.png

Configuring the transformation of the MDM message

  1. Double-click tXMLMap
    to open its editor.
  2. In the table representing the input flow (upper left of the
    editor), right-click the column name MDM_Message on the top of the XML tree and select
    Import From Repository.

    The Metadata wizard is displayed.
  3. Select the entity schema
    ProductReceive retrieved earlier using the
    Receive MDM model, then click
    OK.
  4. Click OK in the
    dialog box that prompts you to add the schema of the Update Report to the
    input XML tree.

    This builds a complete input document for an MDM event. In the input
    XML tree, the Features element is set as the loop
    element automatically.
    use_case-tmdmtriggerinput11.png

  5. In the table representing the output flow (upper right of
    the editor), develop the output XML tree as presented in the figure below.

    This tree is constructed depending on the required static model of the
    MDM output report.
    The XML construct required to return the validation-success message is
    <report><message
    type="info">message</message></report>
    , and the
    XML construct required to return the validation-failure message is
    <report><message
    type="error">message</message></report>
    .
    use_case-tmdmtriggerinput10.png

  6. Map the OperationType element on the input side to
    the message element on the output side.

    This will output the information about the type of the event occurring
    on the MDM record.
  7. In the Expression
    column, enter "info" in the row
    corresponding to @type.
  8. Click the pincer icon to display the output settings panel,
    and then set the All in one option to
    true.
  9. Click OK to close
    the editor and validate these changes.
  10. Double click tLogRow
    to open its Component view, then,
    click Sync columns.


Document get from Talend https://help.talend.com
Thank you for watching.
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x