Siebel Order Management Guide > Workflows for Asset-Based Ordering >

Applying an Order to the Service Profile


This workflow applies a completed order line item to the current account's service profile. It consists of the workflow process:

SIS OM Apply Completed Service Order Line Item to Service Profile

This workflow creates assets from completed order line items or modifies a current asset. It therefore maintains the account's service profile, which consists of its associated assets. If there are multiple accounts in an account hierarchy, service items are applied to the service account. This workflow is shown in Figure 11.

NOTE:  You must develop an order synchronization workflow that updates the status of order line items in your Siebel application when your company's external order management system completes all or part of an order. After it updates all the order items, the order synchronization workflow must call this workflow to apply the completed changes to the customer's service profile, which is stored as a series of assets. You can disable this workflow if an external system maintains service profiles.

By default, a user initiates this workflow by clicking the Auto-Asset button in the Order Entry - Order Line Items view.

NOTE:  The Auto-Asset button is designed for testing and demonstration purposes, not for actual end use. It is recommended that you configure your Siebel application to call this workflow as a subprocess of the order synchronization workflow mentioned previously.

Figure 11.  SIS OM Apply Completed Service Order Line Item to Service Profile Workflow

Click for full size image

Workflow Description. This workflow does the following:

  1. Loads the selected order line item from the database.
  2. Updates the Order Item Processed flag.
  3. The workflow updates the Order Item Processed flag of the topmost order line item. The workflow sets this flag to Y if all line items have a status of Complete, Failed, or -. Other workflows use this flag to determine whether a line item remains Open and should be applied to the current service profile to generate a requested future state.

  4. Applies the Trim method.
  5. Trim eliminates any incomplete or failed changes from the order line item. It eliminates line items whose products are not tracked as assets, line items whose status is not Complete, and line items whose action code is Existing. This causes the service profile to reflect the true state of the assets.

  6. Checks whether line items exist.
  7. If Trim has eliminated all line items, the workflow stops. Otherwise, the workflow continues.

  8. Checks the quantity of each line item.
  9. The workflow checks whether all line items have a quantity of 1. At this point, all line items with a quantity greater than 1 should have been exploded into separate line items. The workflow stops if an item has not been exploded. You must provide error-handling logic or otherwise make sure that this situation cannot occur.

  10. Converts Delete actions into Modified actions.
  11. The Logical Delete step converts Delete actions into Modified actions and sets the status to Inactive. This step supports the maintenance of a history of disconnected services.

  12. Loads the service profile from the database.
  13. If the order line item is a change to an existing item, the workflow loads the corresponding service profile, or asset, from the database.

  14. Applies the order line item to the asset.
  15. If the asset does not already exist, the workflow creates a new asset.

  16. Checks whether the asset is empty.
  17. If, as a result of applying the changes, the asset is empty, the workflow stops. Otherwise, the workflow writes the asset to the database.

Associated Business Service Methods. The following table shows the steps in this workflow that call business service methods.

Workflow Step
Business Service Method Called
Trim Order Line Item
Trim
Calculate Fully Exploded Flag
Is Fully Exploded
Update Order Line Item Completed Flag
Update Order Line Item Completed Flag
Logical Delete Order Item
Logical Delete
Set Product Instance
Set Product Instance
Apply Changes
Apply


 Siebel Order Management Guide 
 Published: 18 April 2003