Transports and Interfaces: Siebel Enterprise Application Integration > Transcode Service Business Service > Transcode Service Business Service Examples >

Using the Validate Method


The following examples demonstrate the use of the Validate method of the Transcode Service business service:

XML Hierarchy Example

In this workflow example, a file encoded in codepage 932 (Japanese) is read into an XML hierarchy, then validated for conversion into codepage 1252 (Western European).

To create the validation workflow

  1. Create a workflow as follows:

    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

    Siebel Operation Object Id

    String

    In/Out

    XMLHier

    Hierarchy

    In/Out

  3. Set up the first business service step to use the EAI XML Read from File business service with the ReadXMLHier method and the following input and output arguments:
    Input Argument
    Type
    Value

    FileName

    Literal

    c:\JPN_JIS.xml

    Property Name
    Type
    Output Argument

    XMLHier

    Output Argument

    XMLHierarchy

  4. Set up the second business service step to use the Transcode Service business service with the Validate method and the following input arguments:
    Input Argument
    Type
    Value
    Property Name

    SourceEncoding

    Literal

    CP932

    Not applicable

    TargetEncoding

    Literal

    CP1252

    Not applicable

    ValidationMode

    Literal

    Not applicable

    Not applicable

    XMLHierarchy

    Process Property

    Not applicable

    XMLHier

Siebel Message Example

In this workflow example, an account record is read from an integration object by the EAI Siebel Adapter as a Siebel Message, then validated for conversion from UTF-8 (Unicode) to codepage 1252 (Western European).

To create the validation workflow

  1. Create a workflow as follows:

    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

  3. Set up the first business service step to use the EAI Siebel Adapter business service with the Query 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 Validate method and the following input arguments:
    Input Argument
    Type
    Value
    Property Name

    SourceEncoding

    Literal

    UTF-8

    Not applicable

    TargetEncoding

    Literal

    CP1252

    Not applicable

    ValidationMode

    Literal

    Not applicable

    Not applicable

    SiebelMessage

    Process Property

    Not applicable

    SiebelMsg

Transports and Interfaces: Siebel Enterprise Application Integration Copyright © 2014, Oracle and/or its affiliates. All rights reserved. Legal Notices.