Oracle Process Cloud Service (PCS) Integration

Overview

The Oracle Configure, Price, and Quote (CPQ) application includes approval functionality and now provides customers with the ability to integrate Oracle CPQ with Oracle Process Cloud Service (PCS) or other remote approval systems to manage their approval workflows. Remote approval systems such as PCS also allow customers to consolidate all of their approvals into a central location and provide a common configuration and common attributes to manage approvals for an entire suite of applications. This eliminates the need to migrate approval data from one system to another. When customers choose remote approvals, Oracle CPQ sends approval requests to external approval systems for processing. Once complete, the associated approve or reject action is performed on the remote approval system, which then calls the appropriate approve or reject Oracle CPQ REST endpoint to update the Oracle CPQ quote history and status.

In 2016 R1, Oracle CPQ introduces a new Submit action attribute to enable remote approvals. Use this new functionality to create a new Submit action for your remote approval system. The purpose of this Oracle CPQ – PCS Integration Implementation Guide is to provide an overview of remote approvals and instructions on how to implement the Oracle CPQ − PCS integration.

Oracle has only tested the contents of this implementation guide on Oracle CPQ 2016 R1 and PCS 16.3.5 and above.

Check with Oracle PCS customer support for the availability of this integration.

ClosedImplementation Overview

The following figure provides a visual depiction of the Oracle CPQ – PCS remote approval call process.

Oracle CPQ – PCS remote approval call process

The remote approval lifecycle is broken down into three steps (Submit, Remote Approval, and Final Approval), these steps are described below.

remote approval lifecycle

Administration

ClosedOracle CPQ Setup

Before leveraging the pre-built PCS flows, administrators must establish a connection between PCS and CPQ.

ClosedCreate a PCS Integration

Establish a connection from Oracle CPQ to PCS that complements the existing connection from PCS to CPQ.

  1. In CPQ, navigate to the Admin Home Page.
  2. Click Integration Center under Integration Platform. The Integration Center page opens.
  3. Click Create Integration. The Create Integration page opens.

    Create Integration page

  4. If a user selects Create Integration and there are not any integrations available, the system displays an error message. The following figure provides a sample error message.

    Sample error messag

  1. Select Remote Approval from the Type drop-down menu.
    • There is a limit of one entry for each integration type. Any previously created integration types are disabled.
    • Administrators can only select integration types that are not yet created. By default, the first valid option is selected.
    • Changing the integration type immediately changes the available fields.
  1. Enter a Name. Use a name that makes it easy to find your integration.
  2. Enter the Request URL and Revise URL. For PCS integrations, these fields are pre-populated with "https://"

For example, Request URL and the Revise URL might look like the following:

https://<host:port>/bpm/api/1.0/processes

  1. Enter your PCS User name and Password.
  2. Click Save to enable your integration.

  3. Save integration


ClosedCreate a New Submit Action

  1. Navigate to the Admin Home Page.
  2. Select Process Definition under Commerce and Documents. The Processes page opens.
  3. For the appropriate process, select Documents in the Navigation drop-down menu and click List.
    The Document List page opens.
  4. For the appropriate document, select Actions in the Navigation drop-down menu and click List.
    The Action List page opens.
  5. Select Add to create a new submit action. The Admin Action page opens.
  6. Enter a Label and a Variable Name.
  7. Select Submit from the Action Type drop-down.
  8. Click Add to create a new submit action.

    Create integration

  1. From the Approval Sequence options, select Use Remote to enable the remote approval sequence.
  2. Click Update.

  3. Approved Sequence option


ClosedRemote Approval BML Functions

Remote Approvals use BML functions for the following activities:

  • Send a request to the remote approval system to initiate the approval process.
  • Parse the response, return the process ID, and store the ID in the remote approval process ID attribute. The Submit action creates this attribute.
  • Send the payload, with or without attachments, to PCS to start the PCS process.
  • Use BMQL to fetch the username, password, and the URL fields defined in the integration center.
    Set the username and password in the header while using the URL functions.
Define Remote Approval BML Functions

Complete the following steps to define a request approval function:

  1. Navigate to the Admin Home Page.
  2. Select Process Definition under Commerce and Documents.
    The Processes page opens.
  3. For the appropriate process, select Documents in the Navigation drop-down menu and click List.
    The Document List page opens.
  4. For the appropriate document, select Actions in the Navigation drop-down menu and click List.
    The Action List page opens.
  5. Set up the following sub-actions:
    1. Request Approval – perform to Step 6 through Step 8.
    2. Approve/Reject Function (optional) – perform to Step 9 through Step 11.
    3. Revise Function (optional) – perform to Step 12 through Step 14.
  6. Select remote approval Request Approval sub-action.
    The remote approval Request Approval Admin Action page opens.
  7. Click Define Function next to Remote Call Processing.

  8. Define Function for Remote Call Processing

  1. Enter and save the BML script for the request approval function. Refer to the following samples:
  2. Text file iconJSON urlmultipartbypost – Send attachments with the payload to start the PCS process.

    Text file iconJSON urldatabypost – Send only the JSON payload to start the PCS process.

    Text file iconSOAP urldatabypost – Send only the SOAP payload to start the PCS process.

  3. Select the remote approval Approve sub-action.
    The remote approval Approve Admin Action page opens.
  4. Click Define Function next to Remote Call Processing.
  5. Enter and save the BML script for the approve function.
    For additional information, refer to the Text file iconApprove/Reject BML sample.
  6. Select the remote approval Revise sub-action.
    The remote approval Revise Admin Action page opens.
  7. Click Define Function next to Remote Call Processing.
  8. Enter and save the BML script for the revise function.
    For additional information, refer to the Text file iconRevise BML sample.

A new Submit action attribute called “remote_approval_process_id” is available for remote approvals. This attribute stores the value returned from the request approval BML function, which is typically processed for the PCS process instance. Use this attribute in the revise flow to cancel an existing PCS process instance.

Submit action attribute called “remote_approval_process_id”


ClosedOracle CPQ REST Endpoints

Approve and reject sub actions are automatically exposed as REST endpoints. PCS uses these REST endpoints to notify Oracle CPQ when a quote is approved or rejected. When the REST endpoints are invoked with the “POST” operation, the corresponding BML in these actions is executed. The return value from the BML is used to update the approval history. If no BML is defined, then the approval history is not updated.

As shown below, the REST endpoints use the standard format:

http://hostname:port/rest/v16/commerceDocuments<processName>Quote/<bsid>/actions/

<action_variable_name>

When using remote approval functionality, do not use REST/SOAP web services to initiate approvals. The remote approval sequence does not support initiating approvals with REST/SOAP web services. The only web service supported, to notify Oracle CPQ of the approval status, is on REST Endpoints for approve and reject sub actions.

ClosedPCS Setup Guidelines

The PCS setup information provided in this section is intended as guidance only. With future versions of PCS, some portions of the user interface may change. For additional setup guidance, refer to the PCS documentation or contact PCS support.

Web Form Parameters for Start Node and JSON

The JSON string defined in the BML Request Approval sub action should match the Web Form parameters for the PCS process Start Node. If they do not match, an error displays when executing the request approval action.

If the Start node in PCS is defined to accept a structure like header and lines, then the JSON in Oracle CPQ should contain the same XML tags and header and line data.

Web Form Parameters for Start Node and JSON

JSON string in BML Request Approval sub action:

JSON string in BML Request Approval sub action:

Service Activity Data Association to Call Oracle CPQ REST Endpoint

PCS uses a service activity to call the Oracle CPQ REST endpoint for the approve and reject action. In the data association for this service activity, verify the bs_id and sub action variable name when constructing the URL to invoke.

Service Activity Data Association to Call Oracle CPQ REST Endpoint

An example data association for a service activity is shown below.

data association for a service activity

In SSL enabled environments, the Oracle CPQ administrator should work with the PCS administrator to ensure the Oracle CPQ server is trusted by the PCS domain. This setup is not usually required in PODs where the applications are typically all on the same domain. An SSL path error typically displays at the end of the process during the Oracle CPQ REST call from PCS. When the error displays, this setup procedure is needed. For additional information on the setup, contact PCS Cloud Support.

Related Topics

Related Topics Link IconSee Also