Using the Convert Method

The following workflow example demonstrates the use of the Convert method of the Transcode Service business service. An account record is read from an integration object by the EAI Siebel Adapter as a Siebel Message, converted from UTF-8 (Unicode) to codepage 932 (Japanese), and then written to an XML file.

To create the conversion workflow (using the Convert method)

  1. Create a workflow containing the following steps, as shown in the following image:

    1. EAI Siebel Adapter (Query)

    2. Transcode Service (Convert)

    3. EAI XML Write to File (WriteEAIMs...)

    Transcode_Convert.png"
    Note: For details on the Business Process Designer, see Siebel Business Process Framework: Workflow Guide.
  2. Define the following process properties:

    Name Data Type In/Out

    Error Code

    String

    In/Out

    Error Message

    String

    In/Out

    Object Id

    String

    In/Out

    Process Instance Id

    String

    In/Out

    Siebel Operation Object Id

    String

    In/Out

    SiebelMsg

    Hierarchy

    In/Out

    SiebelMsgJPN

    Hierarchy

    In/Out

  3. Set up the first business service step to use the EAI Siebel Adapter business service with the Read Siebel Msg method and the following input and output arguments:
    Input Argument Type Value Property Name

    OutputIntObjectName

    Literal

    Sample Account

    Not applicable

    PrimaryRowId

    Process Property

    Row ID of the account record

    Object Id

    Property Name Type Output Argument

    SiebelMsg

    Output Argument

    SiebelMessage

  4. Set up the second business service step to use the Transcode Service business service with the Convert method and the following input and output arguments:

    Input Argument Type Value Property Name

    SourceEncoding

    Literal

    UTF-8

    Not applicable

    TargetEncoding

    Literal

    CP932

    Not applicable

    ConversionMode

    Literal

    EncodingToEncoding

    Not applicable

    <Value>

    Process Property

    Not applicable

    SiebelMsg

    Property Name Type Output Argument

    SiebelMsgJPN

    Output Argument

    <Value>

  5. Set up the third business service step to write the converted integration object hierarchy to an XML file using the EAI XML Write to File business service with the WriteEAIMsg method. This step requires the following input arguments:

    Input Argument Type Value Property Name

    FileName

    Literal

    File to write, for example, d:\temp\acct_record_JPN.xml

    Not applicable

    <Value>

    Process Property

    Not applicable

    SiebelMsgJPN