public final class ExitProcessor
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
ERP_EXIT |
static int |
PREPROC_EXIT |
static int |
USER_EXIT |
Constructor and Description |
---|
ExitProcessor()
Constructor get called many places such as Publish, Invoke, MicSetIn(for inbound process)
and Query
|
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
getExitHandle(java.lang.String exitClassName,
int type) |
byte[] |
mapData(byte[] inXML,
java.lang.String mapName,
java.util.Map params)
Return Mapped Data
|
StructureData |
mapData(StructureData inData,
java.lang.String mapName,
java.util.Map params)
Return Mapped Data
|
java.util.Map<java.lang.String,ExternalDataInfo> |
processExitsAndRulesOut(PublishInfo pubInfo,
java.lang.String forExtSystem,
byte[] pubXmlData,
boolean isEvent,
MXTransaction mxTx,
java.util.List<MboRemote> usedMboList,
UserInfo userInfo)
Exits and Rules task being called as part of publish process
Called from: Publish Channel
|
StructureData |
processExitsIn(EnterpriseServiceInfo inInfo,
UserInfo userInfo,
java.lang.String extSystem,
byte[] erData,
MXTransaction mxTrans)
Exit called as part of incoming query process
Called from: Query
|
StructureData |
processExitsIn(EnterpriseServiceInfo inInfo,
UserInfo userInfo,
java.lang.String extSystem,
StructureData exitInputData,
MXTransaction mxTrans)
Exit called as part of incoming data sync processes
Called from: integration services - create, update, delete, sync
|
StructureData |
processExitsIn(InvokeInfo invkInfo,
byte[] xmlData,
MXTransaction mxTx,
UserInfo userInfo)
Exit called as part of invocation process's response
Called from: Invoke
|
byte[] |
processExitsOut(InvokeInfo invkInfo,
byte[] xmlData,
MXTransaction mxTx,
java.util.List<MboRemote> usedMboList,
UserInfo userInfo)
Exit called as part of invocation process
Called from: Invoke
|
byte[] |
processExitsOutForInProcess(EnterpriseServiceInfo serviceInfo,
java.lang.String extSystem,
byte[] pubXmlData,
MXTransaction mxTx,
java.util.List<MboRemote> usedMboList,
UserInfo userInfo)
Exit called as part of incoming process's response
Called from: Query's response, Create's response
|
public static final int ERP_EXIT
public static final int USER_EXIT
public static final int PREPROC_EXIT
public ExitProcessor()
public byte[] processExitsOutForInProcess(EnterpriseServiceInfo serviceInfo, java.lang.String extSystem, byte[] pubXmlData, MXTransaction mxTx, java.util.List<MboRemote> usedMboList, UserInfo userInfo) throws MXException, java.rmi.RemoteException
serviceInfo
- Enterprise Service Info objectextSystem
- Name of the external systempubXmlData
- Byte array of response Data that is going outmxTx
- MXTransaction objectusedMboList
- List of Mbos that are used in current MX TransactionMXException
- - MAXIMO exceptionjava.rmi.RemoteException
- - Remote exceptionpublic byte[] processExitsOut(InvokeInfo invkInfo, byte[] xmlData, MXTransaction mxTx, java.util.List<MboRemote> usedMboList, UserInfo userInfo) throws MXException, java.rmi.RemoteException
invkInfo
- Invoke Info objectxmlData
- Byte array of response Data that is going outmxTx
- MXTransaction objectusedMboList
- List of Mbos that are used in current MX TransactionMXException
- - MAXIMO exceptionjava.rmi.RemoteException
- - Remote exceptionpublic java.util.Map<java.lang.String,ExternalDataInfo> processExitsAndRulesOut(PublishInfo pubInfo, java.lang.String forExtSystem, byte[] pubXmlData, boolean isEvent, MXTransaction mxTx, java.util.List<MboRemote> usedMboList, UserInfo userInfo) throws MXException, java.rmi.RemoteException
pubInfo
- Publish Info objectforExtSystem
- If meant for a specific external systempubXmlData
- Byte array of response Data that is going outisEvent
- If event fired or not (indication of currently implemented export action)mxTx
- MXTransaction objectusedMboList
- List of Mbos that are used in current MX TransactionMXException
- - MAXIMO exceptionjava.rmi.RemoteException
- - Remote exceptionpublic static java.lang.Object getExitHandle(java.lang.String exitClassName, int type) throws MXException
MXException
public byte[] mapData(byte[] inXML, java.lang.String mapName, java.util.Map params) throws MXException
inXML
- XML in byte array formmapName
- Name of th XSL used for transformationparams
- currently not used. Place holder for future use if user wants to pass in interface name etc.
(mechanism of getting user params will need to be implemented).MXException
- - MAXIMO exceptionpublic StructureData mapData(StructureData inData, java.lang.String mapName, java.util.Map params) throws MXException
inData
- XML in byte array formmapName
- Name of th XSL used for transformationparams
- currently not used. Place holder for future use if user wants to pass in interface name etc.
(mechanism of getting user params will need to be implemented).MXException
- - MAXIMO exceptionpublic StructureData processExitsIn(EnterpriseServiceInfo inInfo, UserInfo userInfo, java.lang.String extSystem, byte[] erData, MXTransaction mxTrans) throws MXException, java.rmi.RemoteException
inInfo
- Enterprise Service Info objectuserInfo
- User Info objectextSystem
- External SystemerData
- the query xml in byte[] formatmxTrans
- MXTransaction objectMXException
- - MAXIMO exceptionjava.rmi.RemoteException
- - Remote exceptionpublic StructureData processExitsIn(EnterpriseServiceInfo inInfo, UserInfo userInfo, java.lang.String extSystem, StructureData exitInputData, MXTransaction mxTrans) throws MXException, java.rmi.RemoteException
inInfo
- Enterprise Service Info objectuserInfo
- User Info objectextSystem
- External SystemexitInputData
- Incoming data instantiated in StructureData form to prepare for exit processingmxTrans
- MXTransaction objectMXException
- - MAXIMO exceptionjava.rmi.RemoteException
- - Remote exceptionpublic StructureData processExitsIn(InvokeInfo invkInfo, byte[] xmlData, MXTransaction mxTx, UserInfo userInfo) throws MXException, java.rmi.RemoteException
invkInfo
- Invoke Info objectxmlData
- the input xml in byte[] formatmxTx
- MXTransaction objectuserInfo
- User Info objectMXException
- - MAXIMO exceptionjava.rmi.RemoteException
- - Remote exception