Retrieves the
calling context associated with the current
map instance.
Syntax
String getInitiator()
Parameters
None.
Return values
Returns a static constant variable representing the calling context for the
execution of the current map instance. Calling contexts are one of the
following values:
-
EVENT_DELIVERY
- The source business objects being mapped are sent from an application to
InterChange Server through a connector.
-
ACCESS_REQUEST
- The source objects being mapped are sent from an application to
InterChange Server through an access client.
-
SERVICE_CALL_REQUEST
- The source objects being mapped are sent from InterChange Server to an
application through a connector.
-
SERVICE_CALL_RESPONSE
- The source objects being mapped are sent back to InterChange Server from
an application through a connector after a successful service call
request.
-
SERVICE_CALL_FAILURE
- The source objects being mapped are sent back to InterChange Server from
an application through a connector after a failed service call request.
-
ACCESS_RESPONSE
- The source objects being mapped are sent back from InterChange Server to
the application through an access client.
Exceptions
None.
Notes
The calling context is part of the
map execution context. For more information on how calling contexts are
used in maps, see "Understanding map execution contexts".
Examples
In the following example, compare the map run-time initiator with the
constants defined in the MapExeContext class:
cwMapCtx =
(MapExeContext)cwExecCtx.getContext (CxExecutionContext.MAPCONTEXT);
String sInitiator = null;
sInitiator = cwMapCtx.getInitiator();
logInfo("**************Initiator = + sInitiator);
See also
getOriginalRequestBO(), setInitiator()
