You are on page 1of 2

Exercise 7

Integration Framework - Using XSLT to transform inbound transactions

If external system has a different schema than Maximo (TPAE), then transformation is
required.

There are two ways to achieve this:

1 - Writing a custom UserExit: A UserExit is a JAVA class written to apply extra logic on
MIF.

2 - Using XSLT: ( EXtensible Stylesheet Language Transformation) can be used to transform


the inbound message when it arrives MIF. This does not require any code customization.

As Maximo has its own schema, we need to have the external schema reference to create a
XSL file to convert it.

For this example, the standard MXASSETInterface will be used to update an existing ASSET
description.

Sample XSL

sample1.xsl

Enterprise Service Settings:

In order to use the XSL to transform the inbound message, it needs to be associated with the
Enterprise Service:

1 - Copy the XSL file to [MEA_GLOBAL_DIR]\schema\external folder.

If the external folder does not exist, it needs to be created.

2 - Go to > Integration > Enterprise Services > "MXASSETInterface"


2.1 - Check the "Use External Schema?" option so both "XSL Map" and "Split Tag"
fields will turn editable.

2.2 - In the "Split Tag" field, set its value as "MPCDocument" which is the main
element from the external schema.

2.3 - In the "XSL Map" field, set the path to the XSL file as specified in Step 1.

3 - Save the Enterprise Service

4 - Import data using a different schema

Sample XML to be Imported

ASSET.xml

The XSLT will act over the inbound XML and transform it to the internal Maximo schema

5 - Check in the ASSETs application, the MPC1 Asset record has been created

You might also like