Set Up Oracle Service Fulfillment Manager

This chapter covers the following topics:

Overview of Set Up Oracle Service Fulfillment Manager Chapter

This chapter describes setup tasks that you must perform to Oracle Service Fulfillment Manager (SFM) that are specific to the Oracle Telecommunications Service Ordering (TSO) solution.

Before You Begin

Before you can set up Oracle Service Fulfillment Manager for use with the TSO solution, you must set up Oracle Installed Base and Oracle Order Management. For more information, see the chapter, Set Up Install Base.

Setup Checklist

Following is the setup checklist for implementing TSO-specific functionality for Oracle Service Fulfillment Manager.

Oracle Service Fulfillment Manager-TSO Setup Checklist
Setup Step Required/Optional
Implement Oracle Service Fulfillment Manager Required
Create SFM-Enabled Workflow Header Process Required
Create SFM-Enabled Workflow Line Process Required
Add Function for Menu Notifications Optional
Create PL/SQL Procedure to Update Active Flag Optional
Create Workflow Process Optional
Define Work Item Optional
Map Line Types Optional
Enable Order Cancellation Optional

For more information on functionality, setting up, or using Oracle Service Fulfillment Manager, refer to the Oracle Service Fulfillment Manager Implementation Guide.

Create SFM-Enabled Workflow Header Process

Use the following procedure to create an Oracle Order Management Workflow header process to use for SFM. In this procedure, log in to Workflow Builder.

Steps

  1. Open the OM Order Header workflow item type (OEOH).

  2. Open the Service Fulfillment Header workflow item type (XDPOMOH).

  3. In the item type, OEOH, open the Order Flow - Generic process.

  4. Save this process with a new name Order Flow - Service Fulfillment.

  5. Drag and drop the Service Fulfillment Order process from the item type, XDPOMOH, into Order Flow - Service Fulfillment between the Book - Order, Manual and Close - Order processes.

  6. Save your work.

Create SFM-Enabled Workflow Line Process

Use the following procedure to create an Oracle Order Management Workflow line process to use for SFM. In this procedure, log in to Workflow Builder.

Steps

  1. To customize the Workflow, change the Access Level to 100:

    • Choose Help, About Oracle Workflow Builder.

    • In the Access Level field, enter 100.

    • Click OK.

  2. Open the OM Order Line workflow item type (OEOL).

  3. Open the Service Fulfillment Line workflow item type (XDPOMOL).

  4. In item type OEOL, open the Line Flow - Service Fulfillment process that you created in the section, "Add Installed Base Activity to OM Line Workflow", in the chapter, Set Up Order Management.

  5. Drag the activity, Service Fulfillment (For Activation Required Items), from item type, XDPOMOL, and drop it between Ship - Line, Manual and Fulfill - Deferred.

  6. Save your work.

Add Function for Menu Notifications

This is an optional procedure.

In this procedure you are adding the Workitem Notification Redirection to the menu for notifications. This procedure assumes that you have not already added Workitem Notification Redirection to the menu. This function lets you view error notifications in HTML. For more information, see the section, "Manage Failure Notifications in HTML", in the chapter, Administering the Solution.

In this procedure, log in to Oracle Forms with System Administrator responsibility and navigate to Applications, Menu.

Steps

  1. Select Menu and click Open. The Menus window opens.

  2. In the Menu field, query for FND_WFADMIN_NEW.

  3. Select New.

  4. On the new empty line, keep the Prompt and Submenu fields empty.

  5. In the Function field, click the List of Values. The Function window opens.

  6. Enter the Search criteria, %redirect%.

  7. Select Workitem Notification Redirection, and click OK. Both the Function and Description fields automatically populate.

  8. Save your work.

  9. When the message about recompiling menus appears, click OK.

See also: The end-user procedure that uses the preceding setup is in the section, "Manage Failure Notifications in HTML", in the chapter, Administering the Solution

Create PL/SQL Procedure to Update Active Flag

The following information is a specific example that you can consider for a reference. It is not a requirement that you create your PL/SQL procedure in this manner.

In this procedure, use the PL/SQL editor of your choice to create a package in your instance. The procedure in this package updates the work item parameter, ACTIVE_FLAG, to Y. You define ACTIVE_FLAG as an extended attribute for your Service Fulfilment Items in the section, "Map Work Item to Item and Action (Line Transaction Type) Combination", below.

CREATE OR REPLACE PACKAGE XXMACD_SFM_UTILS AS
PROCEDURE SET_ACTIVE(itemtype IN VARCHAR2,
itemkey IN VARCHAR2,
actid IN NUMBER,
funcmode IN VARCHAR2,
resultout OUT VARCHAR2);
END;
/
CREATE OR REPLACE PACKAGE BODY XXMACD_SFM_UTILS AS
PROCEDURE SET_ACTIVE(itemtype IN VARCHAR2,
itemkey IN VARCHAR2,
actid IN NUMBER,
funcmode IN VARCHAR2,
resultout OUT VARCHAR2) IS
l_wi_instance_id NUMBER ;
BEGIN
-- RUN mode - normal process execution
-- 
IF (funcmode = 'RUN') THEN
l_wi_instance_id := WF_ENGINE.GetItemAttrNumber
(itemtype => itemtype ,
itemkey  => itemkey ,
aname => 'WORKITEM_INSTANCE_ID');
XDP_ENGINE.SET_WORKITEM_PARAM_VALUE
(P_WI_INSTANCE_ID => l_wi_instance_id,
P_PARAMETER_NAME => 'ACTIVE_FLAG',
P_PARAMETER_VALUE   => 'Y');
resultout:= 'COMPLETE';
RETURN;
ELSE
resultout := xdp_om_util.HandleOtherWFFuncmode(funcmode);
RETURN;
END IF;
EXCEPTION
WHEN OTHERS THEN
wf_core.context('XXMACD_SFM_UTILS','SET_ACTIVE', itemtype, itemkey, actid, NULL);
RAISE;
END SET_ACTIVE;
END XXMACD_SFM_UTILS;

Create Workflow Process

The following example is an option. It is not a requirement.

This example assumes sample names for:

In this procedure, use Workflow Builder module.

Steps

  1. Create a new Item Type. For example: SFMTEST - SFM Test Item Type.

  2. Associate the following three previously defined Service Fulfillment Manager item types to the new item type:

    • SFM Lookup Codes

    • SFM Standard

    • Standard

  3. Create a Function. For example: Update WI Active Flag.

  4. Map the function to the procedure, XXMACD_SFM_UTILS.SET_ACTIVE, that you created in the section, "Create PL/SQL Procedure to Update Active Flag", above.

  5. Map Error Item Type to XDPWFSTD.

  6. Map Error Process to XDP_ERROR_PROCESS.

  7. Define a process. For example: SFM MACD Test WorkItem Process.

  8. Drag the function, Update WI Active Flag, into the process.

  9. Drag the functions, Start and End, from Item Type Standard and into the process.

  10. Drag the function, Complete Work Item, from Item Type SFM Standard into the process.

  11. Define the flow between the functions as follows:

    • Start...to

    • Update WI Update Flag...to

    • Complete Work Item...to

    • End

  12. Save your work.

Define Work Item

The following example is an option. It is not a requirement.

This example assumes sample names for:

In this procedure, log in to Oracle Forms with SFM System Administrator responsibility and navigate to Setup, Service Definition, Work Items.

Prerequisites (see the following sections:)

Steps

  1. For the work item, specify Display Name (Set Active), Internal Name, Version and Begin Date.

  2. From the list, choose Work Item Type User-Defined Workflow.

  3. From the Item Type list, choose the SFM Test Item Type that you created in the section, "Create Workflow Process", above.

  4. From the Process list, choose the SFM MACD Test WorkItem Process that you created in the section, "Create Workflow Process", above.

  5. Specify an Item Key for this Work Item. For example, an Item Key could be SFMMACD. The Item Key value becomes the prefix for the Workflow Item Key.

  6. Navigate to the Parameters tab.

  7. Choose the parameters: Active, Phone, and Primary. These parameters are extended attributes that you defined in the section, "Create Extended Attributes", in the chapter, Set Up Install Base.

Map Line Types

You can attach one or more work items or tasks to a combination of item and action. In this procedure, log in to Service Fulfillment Manager with SFM Administrator responsibility and navigate to Setup, Service Definition, Service Actions.

Prerequisites

You must have created the work item, the item, and the action.

Steps

  1. For each of the Service Fulfillment items that you defined according to standard setup for Oracle Service Fulfillment Manager, navigate to the Actions tab and map the Line Transaction Types, ADD and CHANGE, to the item. For more information on setting up Service Fulfillment items, see Oracle Service Fulfillment Manager Implementation Guide.

  2. Navigate to the Work Item for Action tab and map Work Item Set Activate to the two Item Action combinations.

Enable Order Cancellation

To set up order cancellation, you must:

These steps are discussed below.

Create Validation Template

The following procedures describe how to create a validation template in Oracle Order Management for the purpose of setting up order cancellation in Oracle Service Fulfillment Manager.

In this procedure, log in to Oracle Order Management and navigate to Setup > Rules, Security, Validation Templates.

Steps

  1. In the Entity field, specify Order Header.

  2. Enter the Template Name. For example: Validate SFM Cancel.

  3. Enter the Short Name. For example: SFMCNCL.

  4. Enter Description. For example: Attempt to cancel order in SFM.

  5. Select Validation Type as the API.

  6. Enter the PL/SQL Package Name, XDP_CANCEL_ORDER.

  7. Enter the Procedure Name, CANCEL_SFM_ORDER.

  8. Save the validation template and record the name of the template.

Create a Processing Constraint

After you have created a validation template, create a processing constraint to enable order cancellation in Oracle Service Fulfillment Manager.

In this procedure, log in to Oracle Order Management and navigate to Setup > Rules, Security, Processing Constraints.

Prerequisite

Validate template has been created.

Steps

  1. Query for the Application, Order Management, and the Entity, Order Header.

  2. For the Constraint Cancel, add the following condition:

    1. Navigate to Condition tab.

    2. Select the Scope, Any.

    3. In Validation Entity field, enter Order Header.

    4. In the Record Set field, enter Order.

    5. Enter the validation template name that you specified when you created the validation template above.

    6. Enter a User Msg that should appear when the order cannot be cancelled.

  3. Save the Processing Constraint.

Note: The condition for the Cancel Order functionality should always be the last condition.

Build Rollback Activities into the Workflow

To enable order cancellation in Oracle Service Fulfillment Manager, you must also build Rollback Activities into the workflow. This is an implementation dependent task.

An SFM_Rollback Workflow has seeded:

You can extend this process at implementation time to do business-specific rollback for any Oracle Service Fulfillment Manager work done up to the point that the cancel order was executed.

Test Order Cancellation

Test that order cancellation is working properly. You can cancel orders only at header level and not at the line level.

In this procedure, log in to Oracle Order Management and navigate to Order, Returns, Sales Order.

Steps

  1. Query the order you wish to cancel.

  2. At the order header level, select Action.

  3. From the List of Actions, select Cancel.

  4. Enter a Reason for cancellation and any comments.

  5. Click the OK button.

Note: If cancellation is successful, the Rollback Workflow starts, or otherwise, the user-defined error message appears.

Design Tips

Some tips relating to Oracle Service Fulfillment Manager include: