Syntax
BusObj[] runMap(String mapName, String mapType, BusObj[] srcBOs, cwExecCtx)
Parameters
Return values
Returns an array of business objects that are the destination business objects of mapName.
Exceptions
MapFailureException - If an error occurs while attempting to run mapName.
MapNotFoundException - If mapName is not found in the repository.
CxMissingIDException - See maintainSimpleIdentityRelationship().
Notes
Use the runMap() method to call a submap from within another map. For more information on calling submaps, see "Transforming with a submap".
Examples
The following code calls a submap to map an application-specific Address business object to the generic Address business object:
// Create the BusObj Array BusObj[] rSrcBOs = new BusObj[1]; rSrcBOs[0] = MyCustomerObj.MyAddressObj[0]; // Make the call to the map service OutObjName = DtpMapService.runMap(MyAppAddressToGenAddress, DtpMapService.CWMAPTYPE,rSrcBOs,cwExecCtx);
See also