Siebel Order Management Guide Addendum for Communications > Workflows for Employee Asset-Based Ordering > Workflows to Edit Order Line Items >
SIS OM Edit Service Order Line Item Workflow
This workflow prevents new line items from being created for a deleted action code. It is called when the user customizes a product. This workflow applies active and unprocessed orders to the asset that is associated with the chosen line item and displays the asset in the Product Configurator view. The user makes changes to define the newly requested state and clicks Done. The workflow then writes the difference between the current and requested states of the asset to the current order as one or more line items. Figure 21 illustrates the SIS OM Edit Service Order Line Item workflow.
Figure 21. SIS OM Edit Service Order Line Item Workflow
|
Workflow Description. This workflow performs the following actions:
- Clears the business service cache of existing product instances.
- Checks the action code of the first-level component of the order line item. If the action code is Add, then goes to Step 9.
- If the action code is not Add, then the workflow recursively loops through the input property set and gets the integration IDs for the line items. The input property set includes the order line items in the active document.
- Reads the asset that is associated with the chosen order line item from the Siebel database, excluding components that contain an Inactive status.
- Checks whether the asset is successfully loaded. If not, then goes to Step 9.
- Retrieves all prior active and unprocessed orders that are related to the asset and applies them to generate the requested future state of the asset.
- Removes asset components whose Track As Asset flag is not set.
- If one of the active and unprocessed orders disconnects the first-level component, or if the Track As Asset flag is not set for any asset components, then the resulting asset is empty, and the workflow displays the following error message: A request has already been made to disconnect this service item. The workflow stops.
- Applies the current order line item to the asset.
- Stores the order header so that line items can be added to it.
- Corrects the asset so that the asset structure matches the product definition. If any changes are made to the asset, then the workflow displays a warning message.
- Displays the currently requested state of the asset in the Product Configurator view. The user makes the required changes, then clicks Done or Cancel.
- If the user clicks Cancel, then the workflow terminates. If the user clicks Done, then the workflow retrieves the newly requested state from the Configurator.
- Caches the newly requested state of the asset to use as an input in determining the delta.
- Generates the delta between the following as one or more order line items:
- The requested state of the asset before the current order line item is applied.
- The state of the asset after the user reconfigures it.
- If the system preference Enable AIA Comms is set to True, then the Integration Ids of the deleted line item from Order Line Item process property are copied to the delta document, avoiding creation of new line items by retaining the existing Integration Ids.
- Ungroups into multiple line items any order line item that includes a quantity of more than 1, each with a quantity of 1. Writes the order line item to the Siebel database and refreshes the view.
NOTE: This step does not control the quantity of the line items. It only works with the quantity it is given. The user specifies order line item quantities in the Configurator.
- Performs one of the following:
- If the Enable AIA Comms system preference is set to True, then the workflow creates a one-time service charge item for the order. For more information, see SIS OM Add Service Charge Order Sub-Process Workflow.
- If the Enable AIA Comms system preference is set to False, then the workflow proceeds to Step 20 without creating a one-time service charge item.
- Generates a unique asset integration ID for all line items that contain an action code of Add.
- Saves the document to the Siebel database.
- Navigates to the Order Line Item view.
Table 24 shows the steps in this workflow that call business service methods.
Table 24. Associated Business Service Methods
|
|
|
Copy Fields |
CopyFields |
SIS OM PMT Service |
Get Deleted Integration Id |
TraverseHierarchy |
SIS OM PMT Service |
Copy Integration Id |
MergeCompPropSets |
SIS OM PMT Service |
Set Product Instance (EAI Op) |
Set Product Instance |
SIS OM PMT Service |
Prepare Sync Input (Set EAI_OPERATION codes) |
Compute EAI Operation |
SIS OM PMT Service |
Ensure New Line Items |
Set Field Value |
SIS OM PMT Service |
Refresh Business Component |
Refresh Business Component |
SIS OM PMT Service |
|