Maximo to Maximo Integration: Switching PUBLISH to SYNC on exit

Maximo to Maximo Integration: Switching PUBLISH to SYNC on exit

Sending MIF messages from one Maximo to another is a relatively straight forward task. In short, you establish identical Publish Channel and Enterprise Service (identical in terms of the object structure), and then you simply send messages across. However, in order to get the message into the destination Maximo, you must first convert the operation name from "Publish" to "Sync".

The easiest way to perform this small correction is to transform the message with an XSLT script. This script will then be associated with the Publish Channel and will modify every outgoing message by replacing the "Publish" operaton with the "Sync" operation (in this very example, replace PublishMXASSET with SyncMXASSET). Here is the script:

		
			<?xml version="1.0"?>
			<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ibm="http://www.ibm.com/maximo" version="1.0">
				<xsl:template match="ibm:PublishMXASSET">
					<xsl:element name="SyncMXASSSET">
						<xsl:apply-templates select="@*|node()"/>
					</xsl:element>
				</xsl:template>
				<xsl:template match="@*|node()">
					<xsl:copy>
						<xsl:apply-templates select="@*|node()"/>
					</xsl:copy>
				</xsl:template>
			</xsl:stylesheet>