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

RAF Prepare Header Sub Process Workflow


RAF Prepare Header Sub Process workflow, shown in Figure 20, checks whether the input specifies a quote or order that must be used.

If the input specifies a quote or order to be used, it does not create a new quote or order. Instead, it checks whether the input includes a DocId. If so, it sets the value of the DocId as the value of the active quote or active order Id.

If the input does not specify a quote or order to be used or if the input does not include a DocId, then there is no active document, and the workflow calls RAF Get Active Document Workflow to create a new quote or order. If there is no active document it generates the order header for further processing without synchronizing it to the database, so there is not an empty order header created if there is a failure during processing of offer actions.

Figure 20. RAF Prepare Header Sub Process Workflow

Workflow Description. This workflow performs the following actions:

  • Use Input Instance ? This decision step checks whether an input document must be used while processing the order or whether a new quote or order must be generated.
  • Has Input DocId? This decision step checks whether the input includes a DocId. If so, the specified quote or order is used as the active quote or order.
  • Get Active Doc Id. This step calls the subprocess RAF Get Active Document Workflow to get the active DocId, which is the row_id of the latest pending quote or order.
  • Active Doc Id IS NULL? This decision step routes the flow to Create Header or Set Order Created flag based whether the Active Doc Id is NULL.
  • Create Header. This step calls the Conditional Action Transform method of the Row Set Transformation Toolkit business service to create a quote or order header template with required fields, which is used in further processing.
  • Assign Doc Id. This step calls the Echo method of Workflow Utilities business service to assign the value of DocId from the input as the Active Doc Id.
  • Set Active Doc Id. This step calls the Set Profile Attribute method of the SIS OM PMT Service business service to set the Order Profile Attribute Name or Quote Profile Attribute Name to the Active Doc Id.
  • Set Order Created Flag. This Step calls the Echo method of the Workflow Utilities business service to set the Order Created Flag to Y.
Siebel Pricing Administration Guide Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Legal Notices.