setContext()

Sets a particular execution context to be part of the global execution context.

Syntax

void setContext(String contextName, Object context

Parameters

contextName
The name of the specific execution context to assign to the global execution context. Currently, MAPCONTEXT is the only valid value.

context
An object that contains the information for the execution context. For map execution contexts, this Object is of type MapExeContext.

Return values

None

Examples

The following example saves a map execution context into a global execution context:

globalExeContext.setContext(CxExecutionContext.MAPCONTEXT,
    mapExeContext);
 

See also

"Calling a native map"

Copyright IBM Corp. 2003, 2004