Integration Platform Technologies: Siebel eBusiness Application Integration Volume II > Siebel eAI and File Attachments > Using MIME Messages to Exchange Attachments >

Creating Workflow Processes Examples


Depending on whether you are preparing for an outbound or an inbound attachment exchange, you need to design different workflow process as described in the following two procedures.

Outbound Workflow Process

To process the attachment for an outbound request you need to create a workflow process 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 process

  1. Navigate to Workflow Process Designer.
  2. Create a workflow process consisting of Start, End, and four Business Services. Set up each Business Service according to the task it needs to accomplish.
  3. Define your process properties.
  4. Set workflow process properties when you need a global property for the entire workflow.

    Name
    Data Type
    Default String
    SiebelMessage
    Hierarchy
     
    Error Message
    String
     
    Error Code
    String
     
    Object Id
    String
     
    Process Instance Id
    String
     
    Siebel Operation Object Id
    String
     
    MIMEHierarchy
    Hierarchy
     
    SearchSpec
    String
    [Account.Name] = 'Sample Account'
    MIMEMsg
    String
     

  5. 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.
  6. Input Argument
    Type
    Value
    Property Name
    Property Data Type
    Output Integration
    Object Name
    Literal
    Sample Account
    -
    -
    SearchSpec
    Process Property
    -
    SearchSpec
    String

    Property Name
    Type
    Output Argument
    SiebelMessage
    Output Argument
    Siebel Message

    NOTE:  For more information on using EAI Siebel Adapter, see EAI Siebel Adapter.

  7. 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.
  8. Input Argument
    Type
    Property Name
    Property Data Type
    Siebel Message
    Process Property
    SiebelMessage
    Hierarchy

    Property Name
    Type
    Output Argument
    MIMEHierarchy
    Output Argument
    MIME Hierarchy

    NOTE:  For more information on the EAI MIME Hierarchy Converter, see 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.
  10. Input Argument
    Type
    Property Name
    Property Data Type
    MIME Hierarchy
    Process Property
    MIMEHierarchy
    Hierarchy

    Property Name
    Type
    Output Argument
    MIMEMsg
    Output Argument
    MIME Message

    NOTE:  For more information on the EAI MIME Doc Converter, see The EAI MIME Doc Converter.

  11. For the final step, you need to 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.
  12. Input Argument
    Type
    Value
    Property Name
    Property Data Type
    Message Text
    Process Property
    -
    MIMEMsg
    String
    File Name
    Literal
    c:\temp\account.txt
    -
    -

    NOTE:  For details on File Transport, see Transports and Interfaces: Siebel eBusiness Application Integration Volume III.

Inbound Workflow Process Example

To process the attachment for an inbound request, you need to create a workflow process to read the content from a file, convert the information into a Siebel Message, and send to EAI Siebel Adapter to update the database accordingly.

To create an inbound workflow process

  1. Navigate to Workflow Process Designer.
  2. Create a workflow process consisting of Start, End and four Business Services. Set up each Business Service according to the task it needs to accomplish.
  3. Define your process properties.
  4. Set workflow process properties when you need a global property for the entire workflow.

  5. The first business service in the workflow reads the Account information from a file using the EAI File Transport business service with Receive method. This step requires the following input and output arguments.
  6. Input Argument
    Type
    Value
    File Name
    Literal
    c:\temp\account.txt

    Property Name
    Type
    Output Argument
    MIMEMsg
    Output Argument
    Message Text

    NOTE:  For details on File Transport, see Transports and Interfaces: Siebel eBusiness Application Integration Volume III.

  7. The second business service of the workflow converts the Account information to a MIME hierarchy using the EAI MIME Doc Converter business service with the MIME Doc to MIME Hierarchy method. This step requires the following input and output arguments.
  8. Input Argument
    Type
    Property Name
    Property Data Type
    MIME Message
    Process Property
    MIMEMsg
    String

    Property Name
    Type
    Output Argument
    MIMEHierarchy
    Output Argument
    MIME Hierarchy

  9. The third business service of the workflow converts the MIME hierarchy to a document and sends it to the EAI Siebel Adapter business service. This step uses the EAI MIME Hierarchy Converter business service with the MIME Hierarchy to Siebel Message method. This step requires the following input and output arguments.
  10. Input Argument
    Type
    Property Name
    Property Data Type
    MIME Hierarchy
    Process Property
    MIMEHierarchy
    Hierarchy

    Property Name
    Type
    Output Argument
    SiebelMessage
    Output Argument
    Siebel Message

  11. The last step of the workflow writes the information into the database using the EAI Siebel Adapter business service with the Insert or Update method. This step requires the following input argument.
  12. Input Argument
    Type
    Property Name
    Property Data Type
    Siebel Message
    Process Property
    SiebelMessage
    Hierarchy


 Integration Platform Technologies: Siebel eBusiness Application Integration Volume II 
 Published: 18 July 2003