Integration Platform Technologies: Siebel Enterprise Application Integration > Siebel EAI and File Attachments > Using Inline XML to Exchange Attachments >

Creating a Test Workflow


You create a workflow in Siebel Tools to do the following:

  • Query the Siebel database for the record with the attachment.
  • Convert the integration object and its attachment into a Siebel Message.
  • Read an external XML file (containing an attachment) and convert it into a Siebel Message.

    NOTE:  The XML file must use the exact integration object hierarchy as the attachment integration object you created.

  • Insert the record into the Siebel database.

To create a test workflow to exchange attachments

  1. Create the following workflow:
  2. Define the process properties as shown in the following table.
    Name
    Data Type

    Error Code

    String

    Error Message

    String

    Object Id

    String

    Process Instance Id

    String

    Siebel Operation Object Id

    String

    SiebelMessage

    Hierarchy

  3. The first business service step queries the database using the EAI Siebel Adapter business service with the Query method. This step requires the following input and output arguments:
    Input Argument
    Type
    Value

    OutputIntObjectName

    Literal

    Attachment integration object you created, for example, Account Attachment

    PrimaryRowId

    Literal

    Row ID of the record to which you added an attachment

    Property Name
    Type
    Output Argument

    SiebelMessage

    Output Argument

    SiebelMessage

  4. The second business service step writes the 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

    FileName

    Literal

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

    SiebelMessage

    Process Property

    SiebelMessage

  5. The third business service step reads an XML hierarchy and converts it into a Siebel Message using the EAI XML Read From File business service with the ReadEAIMsg method. This step requires the following input and output arguments:
    Input Argument
    Type
    Value

    FileName

    Literal

    File to read, for example, d:\temp\AttachmentTest_read.xml

    NOTE:  For testing purposes, you can use a modified form of the file written in the second business step, which will automatically have the correct hierarchy.

    Property Name
    Type
    Output Argument

    SiebelMessage

    Output Argument

    SiebelMessage

  6. The fourth business service step reads the Siebel Message and inserts the record into the Siebel database using the EAI Siebel Adapter business service with the Insert method. This step requires the following input argument:
    Input Argument
    Type
    Value

    SiebelMessage

    Process Property

    SiebelMessage

Integration Platform Technologies: Siebel Enterprise Application Integration Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices.