public final class InvokeChannel extends java.lang.Object implements ServiceInvoker, MetaDataProperties
ServiceInvoker
interface.
This is used for invoking any service endpoint from Maximo. Endpoints can be configured
or set programmatically for this channel. This implementation gives preference to the
configured value over programmatic setting. If not endpoint name is configured it looks
into the context for programmatically set endpoint name.
The channel creates an IntegrationContex
for storing invocation metadata and
target and source objects as well as endpoint name. This context can be accessed and modified
by any participating classes [processing classes (request/response), user exits (request/response)
and endpoint handler].IntegrationContext
,
ServiceInvoker
ACCESSMODIFIER, CURRENTDISPLAYKEY, CURRENTKEY, CURRENTOBJNUM, DEFAULT, ENDPOINT, ENDPOINTPROPS, ERDATA, IMPORTUSERINFO, INTERNALRESPONSE, IRDATA, ISPREVIEW, JTA, MAXCOUNT, OSFILTER, PRIMARYOBJECT, PROCESSRULES, RUNASLOGINID, SOURCEOBJECT, SOURCETYPE, SYNCRESPONSE, TARGET_OBJECT, TARGETOBJECT, UNIQUEID, USERRESPONSE, WSIOTXN
Modifier and Type | Method and Description |
---|---|
InvokeInfo |
getInvokeInfo() |
java.lang.String |
getName() |
byte[] |
invoke(java.util.Map<java.lang.String,java.lang.Object> metaData,
MboRemote sourceMbo,
MboRemote targetMbo,
java.lang.String endPointName)
Service invocation for Source and Target Mbo
|
byte[] |
invoke(java.util.Map<java.lang.String,java.lang.Object> metaData,
MboRemote sourceMbo,
MboSetRemote targetMboSet,
int action,
java.lang.String endPointName)
Service invocation for Source Mbo and Target MboSet
|
byte[] |
invoke(java.util.Map<java.lang.String,java.lang.Object> metaData,
MboSetRemote sourceMboSet,
MboRemote targetMbo,
java.lang.String endPointName)
Service invocation for Source MboSet and Target Mbo
|
byte[] |
invoke(java.util.Map<java.lang.String,java.lang.Object> metaData,
MboSetRemote sourceMboSet,
MboSetRemote targetMboSet,
int action,
java.lang.String endPointName)
Service invocation for Source and Target MboSet
|
public InvokeInfo getInvokeInfo()
public java.lang.String getName()
public byte[] invoke(java.util.Map<java.lang.String,java.lang.Object> metaData, MboRemote sourceMbo, MboRemote targetMbo, java.lang.String endPointName) throws MXException, java.rmi.RemoteException
ServiceInvoker
invoke
in interface ServiceInvoker
metaData
- the meta data for the service invocation.sourceMbo
- the source Mbo for the service invocation.targetMbo
- the target Mbo for the service invocation.endPointName
- the endpoint name for the service invocation.MXException
java.rmi.RemoteException
public byte[] invoke(java.util.Map<java.lang.String,java.lang.Object> metaData, MboRemote sourceMbo, MboSetRemote targetMboSet, int action, java.lang.String endPointName) throws MXException, java.rmi.RemoteException
ServiceInvoker
invoke
in interface ServiceInvoker
metaData
- the meta data for the service invocation.sourceMbo
- the source Mbo for the service invocation.targetMboSet
- the target MboSet for the service invocation.action
- determites whether to update or add (to) the target MboSet.
the value are MboSetRemote.INSERTONLY or MboSetRemote.UPDATEONLYendPointName
- the endpoint name for the service invocation.MXException
java.rmi.RemoteException
public byte[] invoke(java.util.Map<java.lang.String,java.lang.Object> metaData, MboSetRemote sourceMboSet, MboRemote targetMbo, java.lang.String endPointName) throws MXException, java.rmi.RemoteException
ServiceInvoker
invoke
in interface ServiceInvoker
metaData
- the meta data for the service invocation.sourceMboSet
- the source MboSet for the service invocation.targetMbo
- the target Mbo for the service invocation.endPointName
- the endpoint name for the service invocation.MXException
java.rmi.RemoteException
public byte[] invoke(java.util.Map<java.lang.String,java.lang.Object> metaData, MboSetRemote sourceMboSet, MboSetRemote targetMboSet, int action, java.lang.String endPointName) throws MXException, java.rmi.RemoteException
ServiceInvoker
invoke
in interface ServiceInvoker
metaData
- the meta data for the service invocation.sourceMboSet
- the source MboSet for the service invocation.targetMboSet
- the target MboSet for the service invocation.action
- determites whether to update or add (to) the target MboSet.
the value are MboSetRemote.INSERTONLY or MboSetRemote.UPDATEONLYendPointName
- the endpoint name for the service invocation.MXException
java.rmi.RemoteException