Method addMapping (context, sourceID, targetID)

addMapping() flags a request for a key mapping call. The collected requests are executed with method execute().

Method Parameters

Type Name Description

Export, String

context

Key mapping context

Export, Identifier

sourceID

Source identifier (CTT:Identifier)

Export, Identifier

targetID

Target identifier (CTT:Identifier)

Example

A coding example for adding a mapping request to a AddKeyMapping instance is given below.

<xsl:variable name="ref" select="AddKeyMapping:new($MappingTrace)"/>
 <xsl:variable name="sourceID"
       select="Identifier:new('PartnerGUID', 'QM3_300', 'B123')"/>
 <xsl:variable name="targetID"
       select="Identifier:new('CustomerID', 'EU3_003', 'B456')"/>
              <!-- Add mapping request  -->
 <xsl:variable name="void"
       select="AddKeyMapping:addMapping($ref, 'BUS1006',
                                        $sourceID, targetID)"/>