Defining a context variable - 6.4

MDM event processing

author
Talend Documentation Team
EnrichVersion
6.4
EnrichProdName
Talend Data Fabric
Talend MDM Platform
Talend Open Studio for MDM
task
Data Governance > Third-party systems > MDM components > MDM event processing components
Data Quality and Preparation > Third-party systems > MDM components > MDM event processing components
Design and Development > Third-party systems > MDM components > MDM event processing components
EnrichPlatform
Talend MDM Server
Talend Studio

Procedure

  1. From the Contexts tab, click the [+] button to add one variable and name it exchangeMessage.
  2. Fill in the variable value in the Value field.
    Note that the XML record must conform to a particular schema. For more information about the schema, see the description of processes and schemas used in MDM processes to call Jobs in Talend Studio User Guide.
    One sample of XML record from the Update Report is as follows:
    <exchange xmlns:mdm="java:com.amalto.core.plugin.base.xslt.MdmExtension">
    <report>
    <Update>
    <UserName>administrator</UserName>
    <Source>genericUI</Source>
    <TimeInMillis>1381486872930</TimeInMillis>
    <OperationType>ACTION</OperationType>
    <RevisionID>null</RevisionID>
    <DataCluster>Product</DataCluster>
    <DataModel>Product</DataModel>
    <Concept>Product</Concept>
    <Key>2</Key>
    </Update>
    </report>
    <item><Product><Id>001</Id><Name>Computer</Name><Description>Laptop series</Description><Availability>true</Availability><Price>400</Price><OnlineStore>TalendShop@@http://www.cafepress.com/Talend.2</OnlineStore><Stores><Store>[Dell]</Store><Store>[Lenovo]</Store></Stores></Product></item>
    </exchange>
    In this example, the XML record is trimmed like this:
    <exchange><report/><item><Product><Id>001</Id><Name>Computer</Name><Description>Laptop series</Description><Availability>true</Availability><Price>400</Price><OnlineStore>TalendShop@@http://www.cafepress.com/Talend.2</OnlineStore><Stores><Store>[Dell]</Store><Store>[Lenovo]</Store></Stores></Product></item></exchange>
  3. Press Ctrl+S to save your changes.