Business Processes and Rules: Siebel eBusiness Application Integration Volume IV > Defining Workflows for Siebel eAI > Sample Integration Workflows >

Import Account (File)


This is a sample workflow process that reads an XML file (c:\account.xml) and imports the account information into the Siebel environment using the EAI XML Read from File business service. The EAI XML Read from File business service converts the data and the EAI Siebel Adapter updates the Siebel Database.

To review the sample import Account (File) workflow process

  1. From the application-level menu, choose View > Site Map > Business Process Administration > Workflow Processes.
  2. Query for Import Account (File) workflow process.
  3. With the Import Account (File) workflow process selected, click the Process Properties tab in the bottom applet 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 Import Account (File) workflow has several properties. The Account Message is defined to identify the output of the Read File step (a parsed version of the XML Account Message) 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

    Account Message

    Hierarchy

    In/Out

    Error Code

    String

    In/Out

    Error Message

    String

    In/Out

    Object Id

    String

    In/Out

    Process Instance Id

    String

    In/Out

    Siebel Operation Object Id

    String

    In/Out

  4. Click the Process Designer tab in the bottom applet to review the process design for this workflow process.
    Click for full size image
  5. Double-click the first step after Start to review its method and arguments.

    This step uses the Read Siebel Message method of the EAI XML Read from File business service to convert XML from a file into an integration object hierarchy, with the following input argument.

    Input Arguments
    Type
    Value

    File Names

    Literal

    c:\account.xml

    Note how the path and file name are specified as a string in the Value field of the Input Arguments applet.

    Also note the following output property for this step.

    Property Name
    Type
    Output Argument

    Account Message

    Output Argument

    Siebel Message

  6. Double-click the second step to review its method and arguments.

    This step uses the EAI Siebel Adapter business service with the Insert or Update method to read the Siebel Message and update or insert the Account object in the Siebel Database. The EAI Siebel Adapter uses the information in the XML file and the following input argument to accomplish this task.

    Arguments
    Type
    Property Name
    Property Data Type

    Siebel Message

    Process Property

    Account Message

    Hierarchy

    Because the Insert or Update method is specified on the EAI Siebel Adapter business service, this step checks the Siebel Database to see if the Account object defined in the XML file already exists in the database. If the account exists, then it updates the account in the database with the account instance from the XML file; otherwise, it inserts the account into the database.

Business Processes and Rules: Siebel eBusiness Application Integration Volume IV