Siebel Pricing Administration Guide > Creating Product Offers > Workflow Reference for Product Offers >

RAF Apply Offer To Create Order Web Workflow


RAF Apply Offer To Create Order Web Workflow, shown in Figure 30, takes account, asset, and offer information and applies the offers for a residential customer to create an order. It also sends an error message as part of its output if there is an error while processing the offer. It is called while calling method ApplyOfferToCreateOrder of the Web service Product Offer Web Service.

Figure 30. RAF Apply Offer To Create Order Web Workflow

Workflow Description. This workflow performs the following actions:

  • Has Asset Id? This decision step checks whether the input of the Web service operation ApplyOfferToCreateOrder contains AssetId. If so, it routes the flow to the step Query Asset With Asset Id. Otherwise, it routes the flow to the step Has Service Id?
  • Has Service Id? This decision step checks whether the input of the Web service operation ApplyOfferToCreateOrder contains ServiceId. If so, it routes the flow to the step Query With Service Id. Otherwise, it routes the flow to the step Query Asset for Account Only.
  • Query Asset With Asset Id. This step calls Query method of the business service EAI Siebel Adapter, using the Account Id and Asset Id to retrieve all the asset Information for the specified account and asset.
  • Query With Service Id. This step calls the Query method of the business service EAI Siebel Adapter, using the Account Id and Service Id to retrieve all the asset information for the specified account and service Id.
  • Query Asset for Account Only. This step calls the Query method of business service EAI Siebel Adapter, using the Account Id to retrieve all the asset information for the specified account.
  • IO Transformation. This step calls the method IntObjHierToPSHier of the business service IntObjHierToPSHier to transform the Input from Integration Object format to Property Set Format.
  • Get Context. This step calls the method GetRowSetData of Context Service business service. It uses Variable Map Default Product Offer Recommendation Variable Map - Context to get the account header information.
  • Get Rowset. This step calls the method GetRowSetData of Context Service business service. It uses Variable Map Default Product Offer Recommendation Variable Map - Row Set to get all asset information for the account.
  • Residential Account? This decision step checks whether the account in the input of the Web service operation ApplyOfferToCreateOrder is of the type Residential. If so, it routes the flow to the step RAF Create Document Workflow. Otherwise, it routes the flow to the Stop step to set the error message.
  • Stop. This stop step sets an error message as part of output message of the Web service operation ApplyOfferToCreateOrder, if the account is not a residential account.
  • RAF Create Document Workflow. This step calls the subprocess RAF Create Document Workflow to apply the offer on the account, and to return the Order Id.
  • Active Doc Id? This step verifies if the offer is successfully applied by creating an order with a non-null value for the DocId. If DocId (Order Id) is NULL, it routes the flow to the step Query Empty Order. Otherwise, it routes the flow to the step Detail Output?
  • Detail Output? This step verifies if DetailOutput is set as Y in the input, to determine whether only the order Id or the full order structure is part of output message. If it is evaluated to TRUE, it routes the flow to the step Query Order. Otherwise, it routes the flow to Query Empty Order.
  • Query Order. This step calls the Query method of the business service EAI Siebel Adapter by using the newly created order after applying the offer. It takes the DocId (Order Id) as input and returns the full order structure as the output that would be part of the response message to the Web service call.
  • Query Empty Order. This step calls the Query method of the business service EAI Siebel Adapter, querying an invalid order to populate the empty value for the order message as part of response message the Web service call.
Siebel Pricing Administration Guide Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices.