Register Web Service for Initiate Action Plan

You must register web service for Initiate Action Plan.

Following are the steps:

  1. Sign in to Oracle CX Sales using Administrator role.

  2. Navigate to Application Composer.

  3. Go to Common Setup > Web Services.

  4. Click New icon for creating web service reference.

  5. Select REST type and click OK.

  6. Specify InvokeProcess as the name.

    Note:

    This will be referenced in Object Function groovy script.

  7. Enter the PCS REST call URL.

    1. Format: https://<OIC Server URL>/bpm/api/4.0/dp-instances?processDefinitionKey=<Process Definition Key>

    2. For the Process Definition Key value for your application:

      1. You can use the GET request with any REST client: https://<OIC Server URL>/bpm/api/4.0/dp-definitions

      2. From the returned results, identify the key value for your application.

  8. For authentication schema, select Call with basic authentication.

  9. For credential key, click + sign to add the Oracle Process Cloud Service process owner user credential. Provide a name to the key.

  10. Select POST as the method to expose.

  11. Insert the following code sample for Request Payload:

    {
      "srNumber":"SR0000013015",
      "deceasedName": "testDeceased2",
      "deceasedDate": "2018/09/09",
      "reportedBy": "testreportedby",
      "reportersPhone": "123456",
      "primaryContact": "testcontact",
      "primaryContactId":"300000001285204",
      "primaryContactsPhone": "223456"
    }
  12. Put in {} as sample code sample for Response Payload. Click Save and Close.