Example: BiDiDataObjTransformationBO API

An example of BiDiDatatObjTransforationBO API illustrates how to create bidirectional language transformation for a Service Data Object.

Purpose

The BiDiDatatObjTransforationBO API is for the transformation of a Service Data Object.

Parameters

The BiDiDatatObjTransforationBO API has the following signature:

BiDiDatatObjTransforationBO(WBIBIDiContext ctx, DataObject sdo, int direction where
  • ctx is the default bidirectional language format for the external application.
  • sdo is the Service Data Object to transform.
    Note: The sdo can override the default bidirectional language format (ctx) by defining specific bidirectional language format in ASI of each of its attributes.
  • direction is the direction for the bidirectional language format transformation. It may take one of two possible values:
    • OutBound for a bidirectional language transformation from the WebSphere Process Server default format to the external application format, or InBound for the opposite transformation.

Transformation for BO object going from WebSphere Process Server to EIS


DataObject sourceObj = new DataObject();
...
// make any operation with DataObject content
...
String bidiFormat = "VLYNN";
WBIBiDiContext connexionContext = new WBIBiDiContext(bidiFormat, bidiFormat, "false", ""); 
WBIBiDiTransformation.BiDiDataObjTransformationBO(connexionContext, sourceObj, WBIBiDiTransformation.OUTBOUND_FLOW);

Transformation for BO object going from EIS to WebSphere Process Server

DataObject sourceObj = new DataObject();
...
// make any operation with DataObject content
...
String bidiFormat = "VLYNN";
WBIBiDiContext connexionContext = new WBIBiDiContext(bidiFormat, bidiFormat, "false", ""); 
WBIBiDiTransformation.BiDiDataObjTransformationBO(connexionContext, sourceObj, WBIBiDiTransformation.INBOUND_FLOW);

For an example of bidirectional language transformation of a Service Data Object, refer to the BiDiDatatObjTransforationBO API example on the CD labeled WebSphere Process Server for Multiplatforms CD 2 or at the IBM passport site.

Draft comment:
The directory on CD 2 and the specific way to access the example to download on the IBM passport site must be proved by Sou Laosiri.

Parent topic: Examples


Copyright IBM Corp. 2003, 2005