2012 07 17_ste_integration_framework

44
Support Technical Exchange: Integration Framework Tom Sarasin, Maximo Design/Architecture, [email protected] 17 July 2012

description

 

Transcript of 2012 07 17_ste_integration_framework

Page 1: 2012 07 17_ste_integration_framework

Support Technical Exchange:

Integration FrameworkTom Sarasin, Maximo Design/Architecture, [email protected] July 2012

Page 2: 2012 07 17_ste_integration_framework

1-2

• 6.x to 7.x - Terminology/GOTO Menu

• 6.x to 7.x - Upgrade Items

• 7.x - Functionality

AGENDA

Page 3: 2012 07 17_ste_integration_framework

1-3

Maximo Enterprise Adapter / Integration Framework

MEA=MIF=Integration Framework

6.x 7.x

Integration Objects = Object Structures

Outbound Interface = Publish Channels

Inbound Interface = Enterprise Services

Page 4: 2012 07 17_ste_integration_framework

1-4

Integration GO TO Menu

Release 6Integration

Integration ObjectsIntegration InterfacesExternal Systems

Release 7.5.0.2Integration

Object StructuresPublish ChannelsEnterprise ServicesExternal SystemsInvocation Channels Web Services LibraryEnd PointsLogical Management OperationsIntegration ModulesLaunch in ContextMessage ReprocessingMessage TrackingInteractions

Page 5: 2012 07 17_ste_integration_framework

1-5

Maximo Enterprise Adapter - 6 to 7 Upgrade Most Integration content is upgraded (including customer-created) – some

exceptions

Upgrade Guide– Preparing to upgrade Maximo Enterprise Adapter– Completing the Maximo Enterprise Adapter upgrade process– Maximo Enterprise Adapter updates

Page 6: 2012 07 17_ste_integration_framework

1-6

Maximo Enterprise Adapter - 6 to 7 UpgradeXML Format Change

7.x XML

<SyncMXASSET> <MXASSETSync> <ASSET> <ASSETNUM>1001</ASSETNUM> </ASSET> </MXASSETSync></SyncMXASSET>

6.x XML

<MXASSETInterface > <Header> <SenderID> </Header> <Content> <MXASSET> <ASSET> <ASSETNUM>1001</ASSETNUM> </ASSET> </MXASSET> </Content></MXASSETInterface>

System Property – mxe.int.<Adapter Name>.convert6to7xml

Page 7: 2012 07 17_ste_integration_framework

1-7

URLs

• 6.x - http://hostname:port/meaweb/measervlet/adapterExternal System and Interface in the XML message

• 7.x - http://hostname:port/meaweb/esqueue/extsysname/entservnameExternal System and Service (interface) in the URL

You can continue to use a global URLhttp://hostname:port/meaweb/measervlet

Two options to identify SENDER and INTERFACE

1. Pass those values using the SENDER and INTERFACE properties in the HTTP header.

Maximo Enterprise Adapter - 6 to 7 Upgrade

Page 8: 2012 07 17_ste_integration_framework

1-8

2. Provide a class file to assign values to SENDER and INTERFACE• Define Class file in web.xml of MEAWEB

(maximo install folder\applications\maximo\meaweb\webmodule\WEB-INF)<env-entry>

<description>Custom Class for SENDER/INTERFACE</description> <env-entry-name>SRVICEIDENTIFIERCLASS</env-entry-name> <env-entry-type>java.lang.String</env-entry-type> <env-entry-value>class name</env-entry-value></env-entry>

• Class implements interfacepublic interface ServiceIdentifier

{/*** @return the name of the enterprise service*/public String getServiceName();/*** @return the name of sender*/public String getSenderName();}

Maximo Enterprise Adapter - 6 to 7 Upgrade

Page 9: 2012 07 17_ste_integration_framework

1-9

• Alternate Keys

Maximo Enterprise Adapter - 6 to 7 Upgrade

Database Configuration – Define alternate key for integration – applies to all Object Structures

Object Structure – Define alternate key for integration – applies only to selected Object Structure

Page 10: 2012 07 17_ste_integration_framework

1-10

• Setting Restrictions

Maximo Enterprise Adapter - 6 to 7 Upgrade

Database Configuration – Define Setting Restriction for object attributes – applies to all Object Structures

Object Structure – Define Setting Restriction for object attributes – applies only to selected Object Structure

Page 11: 2012 07 17_ste_integration_framework

1-11

• Interface Tables - not created on 7.x• Configure Object Structures as Flat Supported• Resolve any duplicate names (Alias Conflicts)• Assign Interface Table End Point to External System• Create Interface tables

• System Properties (application)• mxe.int…..• mxe.rest…

• Merged Integration Objects• Replaced by object structure using non-persistent objects• See upgrade guide

Maximo Enterprise Adapter - 6 to 7 Upgrade

Page 12: 2012 07 17_ste_integration_framework

1-12

Interface Controls now called Integration Controls• No longer tied to an Adapter – system wide

• Create an Integration Control

Maximo Enterprise Adapter - 6 to 7 Upgrade

Page 13: 2012 07 17_ste_integration_framework

1-13

• Create an Integration Control• Associate the Control to a Channel/Service

Maximo Enterprise Adapter - 6 to 7 Upgrade

Page 14: 2012 07 17_ste_integration_framework

1-14

• Create an Integration Control• Associate the Control to a Channel/Service• Set External System-specific value & override

Maximo Enterprise Adapter - 6 to 7 Upgrade

Page 15: 2012 07 17_ste_integration_framework

1-15

Maximo Enterprise Adapter - 6 to 7 Upgrade Upgrade Guide

– Preparing to upgrade Maximo Enterprise Adapter– Completing the Maximo Enterprise Adapter upgrade process– Maximo Enterprise Adapter updates

Page 16: 2012 07 17_ste_integration_framework

1-16

Database | Business object (MBOs) framework

TPAE (Base Services)

Common Applications | Security | Reporting | UI FW | Integration FW (MIF)

Consuming Products

Maximo, SCCD, TSAM

Product-specific applications/extensions (Nuclear, Oil & Gas etc)

TPAE Products

Page 17: 2012 07 17_ste_integration_framework

1-17

XM

L In

terfa

ce

to a

ny

Bu

sin

es

s O

bje

ct (M

BO

)

JM

S Q

ue

ue

ER

P s

ys

tem

JM

S Q

ue

ue

Max

imo

(TP

AE

)

ES

B

Cu

sto

me

r ap

plic

atio

ns

Bu

sin

es

s Ob

jects

(WO

, PO

, Item e

tc)

Applications,Business Objects, Integration

artifacts

Integration framework provides an XML interface for all Business Objects

Provides support for bi-directional integration with external applications and middleware products

Support message exchange in synchronous and asynchronous model

Me

ss

ag

e In

itiatio

n

Integration messages can be initiated via

business object events, an application user and a programmatic

invocation

Supports sending and receiving any message using standard protocols:

HTTP/HTTPS Web ServicesJMSFlat/XML FilesDB tables

Page 18: 2012 07 17_ste_integration_framework

1-18

SA

P

MA

XIM

O

Le

ga

cy

Ap

plic

atio

ns

SR

M

Integ

ratio

n

Fra

me

wo

rk

ERP IntegrationData Replication

Purchasing, Inventory, Financials

XML/HTTPAsynchronous

SAPAdapter

RESTApi

RESTful Interactions WEB 2.0 applicationsQuery/Update REST Resources (Service

Requests, Service Catalog )

HTTPSynchronous

GB

S

Implementation

Data Loading

Delimited Files (.csv)Asynchronous

UI / CRON

WebService

QueryDisplaying External Data to Application

Users

Web ServicesSynchronous

*New in 7.5.0.1

Integration Use Case

Page 19: 2012 07 17_ste_integration_framework

1-19

Message (schema) Definition• Graph of related Business Objects (mbo) that define the content of integration messages for channels and services

• Columns of each business object are configurable to be included/excluded

• Over 70 provided out of box(TPAE/Consuming Products)

• Support for creation of custom object structures

• User Defined fields replaced by non-persistent MBO field

PO

POLINE

POTERM

POCOST

Object Structure: MXPO

Object Structures are also used for Query based Reporting and by Migration Manager

ITEM

Object Structure: MXITEM

Page 20: 2012 07 17_ste_integration_framework

1-20

Object Structure Use

TPAE

Products

Bu

sin

ess

Ob

jec

ts(W

O, P

O, Ite

m e

tc)

ObJect

Structure

Application Export

Application Import

XML File

.csv File

XML File

.csv File

REST ApiWeb 2.0 UI

(XML/JSON)

*New in 7.5

*New in 7.5

Service

Web Service

XML/HTTP

*New in 7.5.0.1

Page 21: 2012 07 17_ste_integration_framework

1-21

TPAE

Products

Flat F

ile (.c sv)

ObJect

Structure

Application-based Export/Import (7.5)

Bu

sine ss O

bjects

(WO

, Asset, S

R etc )

MXWO(WO, Plan Mat’l)

MXASSET(Asset, Spec Attr)

MXSR(SR)

Work OrderApplication User

Export

Import

ExcelF

lat File (.c sv)

AssetApplication User

Export

Import

XM

L Ed itor

SRApplication User

Export

Import

XM

L F

ile

Page 22: 2012 07 17_ste_integration_framework

1-22

• Minimum Configuration• No Channel/Service/External System/End Point

• Synchronous Processing (no use of JMS queues)• Outbound processing only supports export to a file• Message format according to schema• No Customization

Object Structure Processing/Configuration

Page 23: 2012 07 17_ste_integration_framework

1-23

TPAE

Products

Bu

sin

ess

Ob

jec

ts(W

O, P

O, Ite

m e

tc)

JMS

Qu

eu

e

ES

B

Me

ss

ag

e B

rok

er

Channel (XML)

ObJect

Structure

JMS

Qu

eu

e

ER

P s

yste

m

Service (XML)

Processing Layers on top of an Object Structure

HTTP/HTTPS

Web Service

JMS XML / FlatFiles

DB tables

End Points

ExternalSystems

Page 24: 2012 07 17_ste_integration_framework

1-24

TPAE

Products

Bu

sin

ess

Ob

jec

ts(W

O, P

O, Ite

m e

tc)

JMS

Qu

eu

e

ES

B

Me

ss

ag

e B

rok

er

Channel (XML)

ObJect

Structure

ER

P s

yste

m

Channel Processing (OUTBOUND)

HTTP/HTTPS

Web Service

JMS XML / FlatFiles

DB tables

End Points

ExternalSystems

Publish Channel

Invocation Channel

Page 25: 2012 07 17_ste_integration_framework

1-25

Publish Channel (Asynchronous)

Bu

siness O

bjects

Extern

al Ap

plicatio

n / S

ervice

Ob

ject Stru

cture

MA

XIM

O

XML

HTTP Post

Write to JMS Queue

Invoke Web ServiceInvoke EJB

DB Table

Publish Channel

Flat/XML File

XS

L M

ap

Pro

cessing

Ru

les

JMS

Qu

eue

Even

t / Data E

xpo

rt

User E

xit

User E

xit

Pro

cessing

Class

JavaCRON Task

Customization - Optional

En

d P

oin

t

End Point can be configured per Publish Channel within an External System

Page 26: 2012 07 17_ste_integration_framework

1-26

Customization - Optional

Invocation Channel (Synchronous)

Bu

siness O

bjects

Extern

al Ap

plicatio

n / S

ervice

En

dP

oin

t/Han

dler

Ob

ject Stru

cture

MA

XIM

O

Source MBO

Actio

n C

lass A

pp

lication

,W

ork F

low

,E

scalation

Response

HTTP Post

Write to JMS Queue

Invoke Web Service

Invoke EJBCommand Line

Invocation Channel*

Write to XML File

XS

L M

ap

XS

L M

ap

Java C

lasses

JavaC

lasses

Target MBO

Request

* Interactions – UI Wizard to auto-create a Web Service-based interaction – added in 7.1.1.6

Page 27: 2012 07 17_ste_integration_framework

1-27

Channel Processing Capabilities

Publish Channel Invocation Channel

Processing Async (Queue-ing) Sync (no Queue-ing, response processing)

End Points Required Required

External System Required N/A

Customization Yes Yes (No Processing Rules)

Message Initiation Event-based, Data Export Action class (Java)

Page 28: 2012 07 17_ste_integration_framework

1-28

TPAE

Products

Bu

sin

ess

Ob

jec

ts(W

O, P

O, Ite

m e

tc)

JMS

Qu

eu

e

ES

B

Me

ss

ag

e B

rok

er

Service (XML)

ObJect

Structure

ER

P s

yste

m

Service Processing (INBOUND)

HTTP/HTTPS

Web Service

JMS XML / FlatFiles

DB tables

ExternalSystems

Enterprise Service

Enterprise/Standard Service

Web Service support for all adapters

Page 29: 2012 07 17_ste_integration_framework

1-29

Customization - Optional

Extern

al System

Bu

siness O

bjects

MBO(s)

Ob

ject Stru

cture

WS Invoke w/ Response

EJB Invoke w/ Response

HTTP Invoke w/ Response

MA

XIM

O

XS

L M

ap

Pro

cessing

Ru

les

User E

xit

User E

xit

Enterprise Service*

JMS

Qu

eue

Pro

cessing

Class

WS Invoke

EJB Invoke

HTTP Invoke

File Load / Interface Table

Enterprise Service

* Enterprise Service Operations: Create, Update, Delete, Sync, Query

CRON Task or Message Driven Beans (MDBs)

Page 30: 2012 07 17_ste_integration_framework

1-30

Standard ServiceE

xternal S

ystem

Bu

siness O

bjects

MBO(s)

An

no

tated M

etho

d

Web Service Invoke

Web Service Response

EJB Invoke

EJB Response

HTTP Invoke

HTTP Response

Standard Service

MA

XIM

O

Operations: Annotated Methods Example: poChangeStatus

Ap

plicatio

n S

ervice

Page 31: 2012 07 17_ste_integration_framework

1-31

Data Import (UI File Loading) Enhancements (7.1.1.4)

Enterprise Service using JMS

Preview Mode

File-based Error Management

Page 32: 2012 07 17_ste_integration_framework

1-32

Service Processing Capabilities

Object Structure Service

Enterprise Service Standard Service

Processing Sync Async and Sync Sync

Access EJB/HTTP/Web Service

EJB/HTTP/Web Service

EJB/HTTP/Web Service

External System

N/A Required N/A

Customization No Yes No

Workflow Servlet – added in 7.1.1.6 – supports the initiation/wake-up of a Workflow. Available only via XML/HTTP

Page 33: 2012 07 17_ste_integration_framework

1-33

REST APIE

xternal A

pp

lication

(HT

TP

/HT

TP

S)

Bu

siness O

bjects (m

bo

)*

Object

Structure*M

AX

IMO

REST Requests & ResponseXML or JSON

REST Requests & ResponseXML or JSON

REST Requests & ResponseXML or JSON

Standard

Service

Methods

* Rest Resources: mbo** & object structure

**mbo resources requires NO Integration-related CONFIGURATION

Page 34: 2012 07 17_ste_integration_framework

1-34

REST API

Resource Request TPAE Resources

mbo (business object)os (object structure)

Extern

al TP

AE

Co

nsum

er

Resource Handler

Resource Response

Resource Serializer

REST APIController

Resource/ Resource Collection(MBOs)

Resource Representation (XML, JSON)

TPAE Framework

REST API Framework

TPAE Authentication Layer TPAE Authorization Layer

Page 35: 2012 07 17_ste_integration_framework

1-35

REST API

Object Structure Query

MIF (HTTP POST)URL: http://…/meaweb/os/mxasset

HTTP Message Body:<QueryMXASSET xmlns="http://www.ibm.com/maximo"> <MXASSETQuery> <ASSET> <ASSETUID operator="=">4562</ASSETUID> </ASSET> </MXASSETQuery></QueryMXASSET>

REST (HTTP GET)URL: http://…/maxrest/rest/os/mxasset/4562

Page 36: 2012 07 17_ste_integration_framework

1-36

Message Reprocessing (Error Management)

Page 37: 2012 07 17_ste_integration_framework

1-37

Message Tracking (Queue-based messages)

Page 38: 2012 07 17_ste_integration_framework

Launch in Context

Bu

siness O

bjects / D

B

Extern

al Ap

plicatio

n

MA

XIM

O A

pp

lication

s (Item

, WO

etc)

Launch EntryURL

Formation

Launch In Context

UI Control (button, select

action)Configured to a Launch Entry

Registered Launch Entry

URL for an external web application

(new application)

ClickOf

Button

Retrieve URL substitution values from business

objects

Extern

al UI

http://www.grainger.com/Grainger/items/{ASSETNUM}

Page 39: 2012 07 17_ste_integration_framework

1-39

Release 7.5.0.0 thru 7.5.01 - New Features

7.5.0.0 - Publish Channel Eventing– Improved support for capturing events from a child object within an object structure.

7.5.0.0 - Application-based Importing and Exporting– Provide importing and exporting capabilities directly from an application such as WO,

PO, Asset etc.

7.5.0.0 - Support for Application Authorization– Inbound message processing using authorization from an application

7.5.0.0 - Web Services via the Application Server– Support for JAX-WS leveraging the application server’s container. Allows for support of

WS policies such as WS-SECURITY, WS-ADDRESSING etc. 7.5.0.0 - BIDI Support

– Support for Bi-Directional content within integration messages. 7.5.0.1 – REST API

– Support for Object Structures and MBOs as REST Resources 7.5.0.1 - JMS messages in a TEXT format

– Support for messages in a TEXT format

Page 40: 2012 07 17_ste_integration_framework

1-40

Fix Packs 7.1.1.2 - 7.1.1.8 - New Features 7.1.1.6 - Attachments

– Support for including attachments on integration messages.

7.1.1.6 - WorkFlow– Support for initiating/waking up a work flow process via integration

7.1.1.6 - Nulling Fields– Support for nulling out fields from files and/or interface tables

7.1.1.6 - View/Delete Queue– UI dialog to view/delete queue messages.

7.1.1.6 - Web Service Interactions – Provide wizard-based UI to build interaction from Maximo to external web service

Page 41: 2012 07 17_ste_integration_framework

1-41

Fix Packs 7.1.1.2 - 7.1.1.8 - New Features (cont)

7.1.1.4 - Message Reprocessing– Data Import of large files offers ability to manage messages in error via a file.

7.1.1.4 - Data Import– Enhanced features for Preview Mode functionality

7.1.1.4 - Action Class to support initiating an invocation channel– Pre-built Action class provided to support invocation channel execution

7.1.1.4 - Integration Query – Support of a SQL WHERE clause– Support of 2nd level query attributes

Page 42: 2012 07 17_ste_integration_framework

1-42

Reference 7.5 Info Center – Integration Framework

– http://pic.dhe.ibm.com/infocenter/tivihelp/v49r1/topic/com.ibm.mbs.doc/gp_intfrmwk/c_if_overview.html

Maximo Integration wiki– https://www.ibm.com/developerworks/wikis/display/maximo/Integration

Training CoursesIntegration Framework Configurationhttp://www-304.ibm.com/jct03001c/services/learning/ites.wss/us/en?

pageType=course_description&courseCode=TR281Integration Framework Customizationhttps://www-304.ibm.com/services/learning/content/ites.wss/us/en?

pageType=course_description&courseCode=TR640Customizing Business Objectshttps://www-304.ibm.com/services/learning/content/ites.wss/us/en?

pageType=course_description&courseCode=TR271

Page 43: 2012 07 17_ste_integration_framework

1-43

BACK-UP

Page 44: 2012 07 17_ste_integration_framework

1-44