Method addMapping (context, sourceID, targetID)
With addMapping() a request for a key mapping call is flagged. The collected requests are executed with method execute().
Parameters of the Method
| 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 GetKeyMapping instance is given below.
<xsl:variable name="ref" select="GetKeyMapping:new($MappingTrace)"/>
<xsl:variable name="sourceID"
select="Identifier:new('PartnerGUID', 'QM3_300', 'B123')"/>
<xsl:variable name="targetID"
select="Identifier:new('CustomerID', 'EU3_003')"/>
<!-- Add mapping request -->
<xsl:variable name="void"
select="GetKeyMapping:addMapping($ref, 'BUS1006',
$sourceID, targetID)"/>