08.01.08
MEA: XML and Flat files (Outbound)
The Maximo MEA has the ability to automatically generate both XML and flat files for outbound transactions. Out of the box, there is no way to automated the loading (inbound) of flat or XML files. Let’s look at how to do it.
Setup
The Integration Object and Integration Interface are setup as normal and you don’t need to do anything special for flat files or XML files. It is the External System where all the action is. Both XML and Flat files have there own End Points. There are no properties for the XML end point, but for the Flat Files you can specify the directory and the delimiter that separates each value.
This means, that for Flat Files, you can have multiple end points, each point to different folders. Of course the folder has to be accessible as a local drive on the server running Maximo. If you do not specify this directory, then the MEA will generate an error when it tries to write the files. XML end point is a different story. Since there are no properties at the end point level, the only place to specify the folder is in the MEA Global Directory in the Integration Admin Setup.
The MEA will write the XML to a folder called “xmlfiles” under the directory specified here.
Once you specify your end point and setup the rest of the External System, you will need to add your outbound interface.
The last step is to enable the Integration Event for the interface. This is done by accessing the Enable/Disable Integration Events screen. If you created your own Outbound Interface, then there will automatically be an option here for it.
If you forget this step, then no matter how many changes you make to a record, it will never be passed into the MEA.
File Format
The XML file format is detailed my post MEA: XML Messages. Flat Files are a little different. The first line will have three values in it. The first is the name of the External System. Next comes the name of the Integration Interface. Last will the action (usually REPLACE). The next line will be the column names. The last line is the actual data. The data elements will be in the order of the column names.
1: MyExtSys,MXASSETInterface,Replace2: ASSETNUM,PARENT,SERIALNUM,ASSETTAG,AS_LOCATION,AS_DESCRIPTION,VENDOR,FAILURECODE,AS_MANUFACTURER,PURCHASEPRICE,REPLACECOST,INSTALLDATE,WARRANTYEXPDATE,TOTALCOST,YTDCOST,BUDGETCOST,CALNUM,ISRUNNING,AS_ITEMNUM,UNCHARGEDCOST,TOTUNCHARGEDCOST,TOTDOWNTIME,AS_STATUSDATE,CHANGEDATE,CHANGEBY,EQ1,EQ2,EQ3,EQ4,EQ5,EQ6,EQ7,EQ8,EQ9,EQ10,EQ11,EQ12,EQ23,EQ24,PRIORITY,INVCOST,GLACCOUNT,ROTSUSPACCT,CHILDREN,BINNUM,DISABLED,AS_SOURCESYSID,AS_OWNERSYSID,AS_EXTERNALREFID,AS_SITEID,AS_ORGID,AUTOWOGEN,AS_ITEMSETID,AS_DESCRIPTION_LD,CONDITIONCODE,GROUPNAME,ASSETTYPE,USAGE,AS_STATUS,MAINTHIERCHY,ASSETID,MOVED,ASSETUID,TOOLRATE,ITEMTYPE,ANCESTOR,AS_SENDERSYSID,SHIFTNUM,TOOLCONTROLACCOUNT,PLUSDCREWID,N_ASSETREFID,NG_ELEVCOLUMN,NG_COORDINATE,NG_LOCATIONDESC,PLUSDFEATURECLASS,PLUSDISGIS,A,N_ASSETALIAS,N_ASSETGISID,N_BTU_APLY_IND,N_COMPNUM,N_DIALCOUNT,N_DMND_CNST,N_DTL_INDCR,N_DVVRF_CD,N_EQTYP_CD,N_FERCAT,N_FIX_FTR_VAL,N_FS_DMND_VAL,N_INDSTRBILL,N_MCE_PHS_CD,N_MODELNUM,N_MTRCF_CD,N_MTRSZ_CD,N_MTR_PCT_VAL,N_MTR_TYPE_CD,N_MULTYR_VAL,N_PRM_INDCR,N_PRSUR_INW_NUM,N_PRSUR_PSI_NUM,N_READINGREQ,N_RMVD_DT,N_RMVRSN_CD,N_SCMPRS_VAL,N_SEQ_NUM,N_UTIL_TYP_CD,N_XCOORD,N_XPCOORD,N_YCOORD,N_YPCOORD,N_ZCOORD,N_ZPCOORD,N_LEAKGRD,N_LOA,N_NISOURCEID,N_ORIGINCD,N_REMARKS,N_ITEMNUM,N_AMR,N_INDEX,TRANS_LANGCODE,METERNAME,ACTIVE,MEASUREUNITID,ROLLOVER,AVGCALCMETHOD,SLIDINGWINDOWSIZE,ROLLDOWNSOURCE,SINCELASTREPAIR,SINCELASTOVERHAUL,SINCELASTINSPEC,SINCEINSTALL,LIFETODATE,AM_CHANGEBY,AM_CHANGEDATE,REMARKS,AM_ORGID,LASTREADINGDATE,LASTREADING,POINTNUM,AVERAGE,READINGTYPE,LASTREADINSPECTOR,ASSETMETERID,PERSONID,AC_ORGID,ISUSER,ISCUSTODIAN,ASSETUSERCUSTID,ISPRIMARY3: 10000020026,10000020001P,,,16AAP0010,"BREAKER, EMERGENCY LUBE OIL PUMP 120V DC bubbles",,MOTOR,WEHS,0.0,0.0,,,0.0,0.0,0.0,,1,,0.0,0.0,0.0,2007-05-17T00:00:00-04:00,2008-07-31T20:52:22-04:00,MAXADMIN,,,,,,,,,,,,,,,,0.0,,,0,,0,,,,SGS,NIPSCO,0,,,,,ELECTRIC METER,,OPERATING,0,999999999974,0,999999999974,,,10000020001P,MX,,,,16A-APX-BKR-001046,0,,16A ELECTRICAL PACKAGE ROOM,,0,,,,0,,,,0,,,,,,1,,,,,,,,0,,,0,,,,,,,,,,,,,,,,,,,,EN,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Although this doesn’t sound like a very powerful tool, you will find in development, the XML end point is one of the most useful. When you are setting up your Integration Object and Interface, you can use this end point to test it and get it right.