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

RAF Create Document Workflow


RAF Create Document Workflow, shown in Figure 13, is a wrapper workflow to carry out all actions in the product offer. It is invoked through the signal RAF Create Offer Document when the user accepts or rejects a product offer in the recommendation window.

Figure 13. RAF Create Document Workflow

Workflow Description. This workflow performs the following actions:

  • Web Channel Call? This decision step routes the flow to the Prepare Actions step if the process property Web Channel Call is Y or to the Get Context step if it is not Y. If the workflow is invoked through the Web channel, the context and rowset information are prepopulated, and the flow can go directly to the Prepare Actions step because it is not necessary to get the context or the rowset.
  • Get Context. This step calls the method GetRowSetData of the Context Service business service. It uses the 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 the variable map Default Product Offer Recommendation Variable Map - Row Set to get all asset information for the account.
  • Prepare Actions. This step calls the subprocess RAF Prepare Actions Sub Process which queries for all the actions defined for the particular product offer and sorts them into different property sets depending on Action type. Outputs of this step are property sets such as Modify Action Set, New Action Set, RunProcess Action Set and so on.
  • Return to same view. This decision step determines if the user should be navigated to a different view or remain in the same view. If the product offer has no actions specified, then the Return to same view flag is set to Y. If this Flag is Y the flow goes to business service step Return to Same View. If not, the flow goes to the step Only RunProcess?
  • Only Run Process? This decision step routes flow to Merge Consolidated and RunProcess Actions if all the actions defined for Product Offer are of Type Run Process. If not, it routes the flow to Prepare Doc Header.
  • Prepare Doc Header. This step calls the subprocess RAF Prepare Header Sub Process, which creates an Order or Quote header depending on account type and active doc Id.
  • Consolidate Actions. This step calls the subprocess RAF Consolidate Actions Sub Process, which consolidates all actions based on Action type (other than Run Process) and groups them under one Base product.
  • Merge Consolidated and RunProcess Actions. This step merges the consolidated property set from Consolidate Actions and Run Process property set.
  • Sort Merged Actions. This business service step calls the method SortRowSet of business service RAF Product Offers Service which sorts the merged action property set according to sequence.
  • Next Row Set. This step picks the next rowset from context property set.
  • Is Next Row? This decision step routes the flow to the step Get Consolidated Action if Cur Row Id is not Null. Otherwise, it routes the flow to the step Is Order Created.
  • Get Consolidated Action. This step gets the current consolidated actions and, depending on account type, builds an order or quote context rowset.
  • Action Type = Run Process? This decision step routes the flow to Check Pre Order or Post Order if the Action Set Type is Run Process. Otherwise, it routes the flow to Action = Modify or Update?
  • Action = Modify or Update? This decision step routes the flow to Modify Sub Process if the Action Code is - or Modified. Otherwise, it routes the flow to Action = Delete?
  • Action = Delete. This decision step routes the flow to Delete Sub Process if the Action Code is Deleted. Otherwise, it routes the flow to Action = Add.
  • Action = Add. This decision step routes the flow to Add Sub Process if the Action Code is New. Otherwise, it routes the flow to Action = Upgrade.
  • Action = Upgrade. This decision step routes the flow to Sub Process Upgrade if the Action Code is Upgrade. Otherwise, it routes the flow to Clear Context Row id.
  • Check Pre Order or Post Order. This step checks whether Run Process is the first action to be processed and whether or not an order has been created.
  • To Sync? This decision step routes the flow to Check For Promotion and Apply Promotion if the response is not reject and the order has not been synchronized already. Otherwise, it routes the flow to Run Process Sub Process.
  • Check For Promotion and Apply Promotion. This step calls the subprocess RAF Check For Promotion Sub Process which checks whether the Promotion Name is correct and does Apply, Disconnect, Modify or Upgrade promotion.
  • Ensure New Integration Id. This step calls the subprocess RAF Ensure New Line Item, which ensures that all line items have unique integration ids.
  • Sync. This step calls the business service method Synchronize of the ABO Bulk Request Processing Service, which synchronizes order and quote line items in the database.
  • To Set Prom Inst Id? This decision step routes the flow to Set Promotion Instance Id After Sync if promotion has been added, deleted, modified or disconnected. Otherwise, it routes the flow to Set Synched True.
  • Set Promotion Instance Id After Sync. This step stamps the promotion name and promotion instance Id on line items modified because of the promotion.
  • Set Synched True. This step sets the Synched flag to Y.
  • Run Process Sub Process. This step calls the subprocess RAF RunProcess Driver Workflow, which fetches workflow parameters and executes the specified workflow.
  • Modify Sub Process. This step calls the subprocess ABO Bulk Request - Modify Sub-Process Workflow to carry out the actions in the product offer of the action type Modify. Instance information is not passed, as it is in bulk request flows. The Is RAF flag is passed to handle exceptions.
  • Delete Sub Process. This step calls the subprocess ABO Bulk Request - Delete Sub-Process Workflow to carry out actions in the product offer of the action code Delete. Instance information is not passed, as it is in bulk request flows. The Is RAF flag is passed to handle exceptions.
  • Add Sub Process. This step calls the subprocess ABO Bulk Request - Add Sub-Process Workflow to carry out actions in the product offer of the action type New. Instance information is not passed, as it is in bulk request flows. The Is RAF flag is passed to handle exceptions.
  • Sub Process Upgrade. This step calls the subprocess ABO Bulk Request - Upgrade Sub-Process Workflow to carry out actions in the product offer of the action type Upgrade. Instance information is not passed, as it is in bulk request flows. The Is RAF flag is passed to handle exceptions.
  • Clear Context Row id. This step clears the details of already processed actions from the context header.
  • Clear Cur Consldtd Action. This step clears the details of already processed actions from the context rowset.
  • Is Order Created? This decision step routes the flow to Is Sync Needed? if an order is created. Otherwise, it routes the flow to Return to same view.
  • Is Sync Needed? This decision step routes the flow to Web Call? if the synched flag is Y. Otherwise, it routes the flow to Check For Promotion and Apply.
  • Check For Promotion and Apply. This step calls the subprocess RAF Check For Promotion Sub Process, which checks whether the promotion name is correct and does Apply, Disconnect, Modify or Upgrade promotion.
  • Ensure New Line Items. This step calls the subprocess RAF Ensure New Line Item, which ensures that all Line items have unique integration ids.
  • Synchronize. This step calls the business service method Synchronize of ABO Bulk Request Processing Service, which synchronizes order and quote line items in the database.
  • Set Prom Inst Id? This step checks whether the line item is added, deleted, modified because of the promotion. If so, it routes the flow to Set Promotion Instance Id.
  • Set Promotion Instance Id. This step stamps the promotion name and promotion instance Id on line items modified because of the promotion.
  • Web Call? This decision step routes the flow to End if it is a Web service call. Otherwise, it routes the flow to Go to View.
  • Go to View. This step navigates the user to Order Entry - Line Items View (Sales) or Order Entry - Network Line Items Detail View (Sales) or Quote Item Detail View or Quote Network Detail View, depending on the account type and the field Compound Product Number.
  • Return to Same View. This step navigates the user back to SIS OM Customer Account Portal view.
Siebel Pricing Administration Guide Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices.