Developing transformations for outbound messages
Develop an .xsl transformation that Decision Server Insights can apply to outbound messages that do not conform to the event schema.
About this task
The .xsl transformation specifies rules for transforming one XML message to another. To create a create a new .xsl transformation for your outbound messages, you can use the Transformation wizard.
The transformation is pre-filled with the namespace and fields of a specified event in your solution project. You can create the .xsl transformation either from the File menu as described in the procedure, or by right-clicking on any node of a solution project. If you right-click the node of a solution project, the project name is entered into the wizard for you. You can then select the event type in the related BOM project, if a BOM project is available.
Procedure
- Click File > New > Transformation File.
- Select a solution project.
- Enter a container name, or click Browse and select the container.
- Specify a filename for the .xsl transformation.
- Select Outbound event into XML message as your template.
- Select the event type. The event is the event into which outbound messages that are not recognized by Decision Server Insights are transformed.
- Click Finish to save your work.
Results
The wizard creates the .xsl transformation for your solution. You must now add entries to the .xsl transformation that map outbound messages that are not recognized to the specified event type.
Example
In the following example transformation file, the event rows must be completed.
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:event="http://www.ibm.com/ia/xmlns/default/MyCreditCardSolutionBOM/model"
exclude-result-prefixes="event">
<!--Transform the "Transaction" event into the outbound message. -->
<xsl:template match="/event:Transaction">
<!--*TODO* Complete the transformation using the child elements:
event:account
event:amount
event:countryCode
event:date
-->
</xsl:template>
</xsl:stylesheet>What to do next
Generate the outbound connectivity assets.