Business Processes and Rules: Siebel eBusiness Application Integration Volume IV > 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. From the application-level menu, choose View > Site Map > Business Process Administration > Workflow Processes.
  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.
  4. 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, Process Instance 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
    Process Instance Id
    String
    In/Out
    -
    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.

  5. Click the Process Designer tab in the bottom applet to review the process design for this workflow process.
  6. Click for full size image

  7. Double-click the first step after Start to review its arguments.
  8. 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.

  9. Double-click the second step and review its method and arguments.
  10. 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 eBusiness Application Integration Volume IV 
 Published: 18 April 2003