Siebel Order Management Infrastructure Guide > Data Transfer Utilities Business Service > Examples of Invoking the DTU >

Example of Invoking DTU from a Workflow: Auto Order Web Service


The Auto Order web service exposes Siebel's auto order function as a web service. It takes a quote row ID as the input argument, creates an order based on the quote, and returns a quote integration object. The web service is implemented by a workflow.

To see how the workflow SISOMAutoOrderWebService invokes the DTU

  1. In Oracle's Siebel Tools, locate the workflow SISOMAutoOrderWebService.
  2. In this workflow, select the step DTU Auto Order, which uses DTU to create a new order from a quote using the "DataTransfer" method.
  3. Display input arguments, which have the values shown in the following table:
    Input Argument
    Sequence
    Type
    Value
    Property Name

    DataMapObj

    1

    Literal

    QuoteToSalesOrder

     

    Operation

    2

    Literal

    Insert

     

    Option

    3

    Literal

    /BatchMode/NewSrcBusObj

     

    RowID

    4

    Process Property

     

    Object Id

    Notice that there are some subtle differences from the input arguments of the previous example:

    • Here, RowId is explicitly passed in as an argument, but when you use a signal, the order management infrastructure implicitly passes in a RowId argument.
    • The Option argument contains "NewSrcBusObj". In the previous example, since signals pass the "RowId" argument instead of the buscomp instance into DTU, a new instance of the source buscomp is always created. This workflow specifies its Business Object as Quote. As a result, DTU receives a reference to the quote business component as part of the invocation context. Because you use NewSrcBusObj in this argument, DTU does not work off the instance of the quote buscomp associated with the workflow. Instead it creates a new instance of the quote business object. For information about why NewSrcBusObj is used, see Performance Tuning for DTU.
  4. Display the output argument for this step, which has the values shown in the following table:
    Property Name
    Sequence
    Type
    Output Argument
     

    ActiveOrderId

    5

    Output Argument

    &OrderId

     

  5. The newly created order ID is output through the DTU named parameter &OrderId. The parameter is defined in the data map Header component data map field view, which has the values shown in the following table:
    Order
    Source Type
    Source
    Destination Type
    Destination

    52

    Parameter

    &OrderId

    Expression

    [Id]

Siebel Order Management Infrastructure Guide Copyright © 2006, Oracle. All rights reserved.