Receiving a Message and Writing It to a File

This example uses the Receive method of the EAI File Transport business service to receive a message as a file, then it uses the Send method of the EAI File Transport business service and the FileTranspSubsys named subsystem to write the message to a file.

To receive a message and write it to a file

  1. Define an EAI File Transport named subsystem, for example:

    create named subsystem FileConnSubsys_sub for subsystem FileTranspSubsys with 
    FileName="D:\temp\FileOut.txt", AppendToFile=true
    
  2. Create a workflow containing the following steps, as shown in the following image:

    1. Receive

    2. Write to File

    This image is described in the surrounding text.
    Note: For details on the Business Process Designer, see Siebel Business Process Framework: Workflow Guide.
  3. Define the following process properties:

    Name Data Type In/Out Default String

    BinaryMsg

    Binary

    In/Out

    Not applicable

    Error Code

    String

    In/Out

    Not applicable

    Error Message

    String

    In/Out

    Not applicable

    Object Id

    String

    In/Out

    Not applicable

    Process Instance Id

    String

    In/Out

    Not applicable

    Siebel Operation Object Id

    String

    In/Out

    Not applicable

  4. Set up the first business service step to use the EAI File Transport business service with the Receive method and the following input and output arguments:

    Input Argument Type Value

    FileName

    Literal

    D:\temp\InputToFile.txt

    Property Name Type Output Argument

    BinaryMsg

    Output Argument

    <Value>

  5. Set up the second business service step to use the EAI File Transport business service with the Send method and the following input arguments:

    Input Argument Type Value Property Name

    <Value>

    Process Property

    Not applicable

    BinaryMsg

    ConnectionSubsystem

    Literal

    FileConnSubsys_sub

    Not applicable