Outbound Workflow

To process the attachment for an outbound request you must create a workflow to query the database, convert the integration object and its attachments into a MIME hierarchy, and then create a MIME document to send to the File Transport business service.

To create an outbound workflow

  1. In Siebel Tools, select the Workflow Process object in the Object Explorer.

  2. Right-click, then choose New Record.

  3. Give the new workflow a name and associate it with a locked project.

  4. Right-click, and then choose Edit Workflow Process.

    The Workflow Process Designer appears.

  5. Create a workflow consisting of Start, End, and four Business Services. Set up each Business Service according to the task it must accomplish.

  6. Define your process properties.

    Set process properties when you need global properties for the entire workflow.

    Name Data Type Default String

    SiebelMessage

    Hierarchy

    Leave blank.

    Error Message

    String

    Leave blank.

    Error Code

    String

    Leave blank.

    Object Id

    String

    Leave blank.

    Process Instance Id

    String

    Leave blank.

    Siebel Operation Object Id

    String

    Leave blank.

    MIMEHierarchy

    Hierarchy

    Leave blank.

    SearchSpec

    String

    [Account.Name] = 'Sample Account'

    <Value>

    String

    Default output is binary.

  7. The first business service queries the Account information from 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 Property Name Property Data Type

    Output Integration Object Name

    Literal

    Sample Account

    not applicable

    not applicable

    SearchSpec

    Process Property

    not applicable

    SearchSpec

    String

    Property Name Type Output Argument

    SiebelMessage

    Output Argument

    Siebel Message

    Note: For more information on using the EAI Siebel Adapter, see EAI Siebel Adapter Business Service.
  8. The second business service in the workflow converts the Account integration object and its attachments to a MIME hierarchy using the EAI MIME Hierarchy Converter business service with the SiebelMessage to MIME Hierarchy method. This step requires the following input and output arguments.

    Input Argument Type Property Name Property Data Type

    Siebel Message

    Process Property

    SiebelMessage

    Hierarchy

    Note: For more information on the EAI MIME Hierarchy Converter, see About the EAI MIME Hierarchy Converter.
  9. The third business service of the workflow converts the MIME hierarchy to a document to be sent to File Transport business service. This step uses the EAI MIME Doc Converter business service with the MIME Hierarchy To MIME Doc method. This step requires the following input and output arguments.

    Property Name Type Output Argument

    MIMEHierarchy

    Output Argument

    MIME Hierarchy

    Input Argument Type Property Name Property Data Type

    MIME Hierarchy

    Process Property

    MIMEHierarchy

    Hierarchy

    Property Name Type Output Argument

    <Value>

    Output Argument

    MIME Message

    Note: For more information on the EAI MIME Doc Converter, see About the EAI MIME Doc Converter.
  10. For the final step, set up the last business service of the workflow to write the information into a file using the EAI File Transport business service with the Send method. This step requires the following input arguments.

    Input Argument Type Value Property Name Property Data Type

    Message Text

    Process Property

    not applicable

    <Value>

    String

    File Name

    Literal

    c:\temp\account.txt

    not applicable

    not applicable

    Note: For information on File Transport, see Transports and Interfaces: Siebel Enterprise Application Integration.