構文
BusObj[] runMap(String mapName, String mapType, BusObj[] srcBOs, cwExecCtx)
パラメーター
戻り値
mapName の宛先ビジネス・オブジェクトであるビジネス・オブジェクトの配列を戻します。
例外
MapFailureException - mapName の実行中にエラーが発生した場合です。
MapNotFoundException - mapName がリポジトリーの中にない場合です。
CxMissingIDException - maintainSimpleIdentityRelationship() を参照してください。
注記
別のマップ内からサブマップを呼び出すには、runMap() メソッドを使用します。サブマップの呼び出しの詳細については、"サブマップを使用した変換" を参照してください。
例
次のコードはサブマップを呼び出して、アプリケーション固有の Address ビジネス・オブジェクトを汎用 Address ビジネス・オブジェクトにマップします。
// 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);
参照項目