You may configure your system to use notification download tables to interface outgoing messages via XAI. When creating notification download staging records, you may use the context collection to define extra information about the NDS.
Context variables are exposed to the XSL transformation script as script parameters. Each context variable can be referred to using a parameter name having the same name as the context variable. The following XSL example shows how it is done for creating an email, but the same concept can be used for any XSL script used in a route type. In this example XPER and OHAD are context variables of the notification download record.
<xsl:stylesheet xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-microsoft-com:xslt' xmlns:var='urn:var' xmlns:user='urn:user' exclude-result-prefixes='msxsl var user' version='1.0'>
<xsl:output method='xml' omit-xml-declaration='yes' />
<xsl:param name="XPER"></xsl:param>
<xsl:param name="OHAD"></xsl:param>
<xsl:template match='/'>
<xsl:apply-templates select='CDxPersonMaintenance'/>
</xsl:template>
<xsl:template match='CDxPersonMaintenance'>
<EmailMessage>
<To>
<InternetAddress address="ohad_anyone@splwg.com" personal="à äã ùðé" charset="Windows-1255" />
<InternetAddress1>
<!-- Connection from source node "EmailID" to destination node "address" -->
<xsl:attribute name='address'><xsl:value-of select='CDxPersonMaintenanceService/CDxPersonMaintenanceDetails/@EmailID'/></xsl:attribute>
</InternetAddress1>
</To>
<BCC1><InternetAddress address="ohad_anyone@splwg.com" /></BCC1>
<Subject charset="Windows-1255">
<!-- Connection from source node "EntityName" to destination node "Subject" -->
<xsl:value-of select='CDxPersonMaintenanceService/CDxPersonMaintenanceDetails/@EntityName'/>
Mark Brazil
</Subject>
<MessageText charset="Windows-1255">
<!-- Connection from source node "Description" to destination node "MessageText" -->
<xsl:value-of select='CDxPersonMaintenanceService/CDxPersonMaintenanceDetails/@Description'/>
<xsl:value-of select="$XPER"/>
<xsl:value-of select="$OHAD"/>
This is text of the email message.
</MessageText>
<Attachment1 fileName="d:\cdx\test\test.pdf" contentId="fl3">
</Attachment1>
</EmailMessage>
</xsl:template>
</xsl:stylesheet>
Copyright © 2011, Oracle and/or its affiliates. All rights reserved.