Business Processes and Rules: Siebel Enterprise Application Integration > Defining Workflows for Siebel EAI > Sample Integration Workflows >

Export Account (File)


This sample workflow process exports an account to a file in an XML format. This workflow uses the EAI Siebel Adapter and the EAI XML Write to File business service to query the data and then convert the data from the Siebel business object to an XML document.

To review the Export Account (File) workflow process

  1. Navigate to the Administration - Business Process > Workflow Processes view.
  2. Query for Export Account (File) workflow process.
  3. With the Export Account (File) workflow process selected, click the Process Properties tab to review the process properties for this workflow process.

    Workflow process properties are global to the entire workflow. For example, as shown in the following table, the Export Account (File) workflow has several properties. The Account Message is defined to identify the outbound Account as a hierarchical structure. The Error Message, Error Code, Object Id, and Siebel Operation Object Id properties are included in each workflow by default.

    Name
    Data Type
    In/Out
    Default String

    Account Message

    Hierarchy

    In/Out

    -

    Error Code

    String

    In/Out

    -

    Error Message

    String

    In/Out

    -

    Object Id

    String

    In/Out

    1-6

    Siebel Operation Object Id

    String

    In/Out

    -

    Note also how the Object Id process property is set to the account number 1-6, in the Default column. This string identifies an actual account in the Siebel Database by its Row Id. You may set this workflow to use the active account instead of specifying a hard-coded account number. You can accomplish this by creating a button that invokes this workflow from the Account screen, or you can pass the value of the Object Id into the workflow process as an input argument.

  4. Click the Process Designer tab in the bottom applet to review the process design for this workflow process.
  5. Double-click the first step after Start (Get Account) to review its arguments.

    This step uses the EAI Siebel Adapter business service to query an account from your Siebel Database. The EAI Siebel Adapter uses the following input arguments.

    Input Arguments
    Type
    Value
    Property Name
    Property Data Type

    Output Integration Object Name

    Literal

    Sample Account

    -

    -

    Object Id

    Process Property

    -

    Object Id

    String

    Note that Output Integration Object Name of Sample Account is part of the query criteria. The Sample Account integration object describes the structure of the Account business object and was created using the Integration Object Builder. The other part of the query criteria is the Object Id, which is a process property that includes the account number 1-6 defined as a process property before.

    Also note the following output property for this step.

    Property Name
    Type
    Output Argument

    Account Message

    Output Argument

    Siebel Message

    The output from this step is Account Message. Account Message is a process property that will include the Siebel Message, which is the instance of Account that includes data for account number 1-6. The format is specified by the Sample Account integration object.

  6. Double-click the second step (Write to File) and review its method and arguments.

    This step invokes the EAI XML Write to File business service with the Write Siebel Message method. The EAI XML Write to File uses the following input arguments.

    Input Arguments
    Type
    Value
    Property Name
    Property Data Type

    File Name

    Literal

    c:\account.xml

    -

    -

    Siebel Message

    Process Property

    -

    Account Message

    Hierarchy

    The EAI XML Write to File business service converts the hierarchical message to XML and writes the resulting document to the file named in the File Name argument.

Business Processes and Rules: Siebel Enterprise Application Integration Copyright © 2006, Oracle. All rights reserved.