Register Web Service for Initiate Action Plan
You must register web service for Initiate Action Plan.
Following are the steps:
-
Sign in to Oracle CX Sales using Administrator role.
-
Navigate to Application Composer.
-
Go to Common Setup > Web Services.
-
Click New icon for creating web service reference.
-
Select REST type and click OK.
-
Specify InvokeProcess as the name.
Note:This will be referenced in Object Function groovy script.
-
Enter the PCS REST call URL.
-
Format: https://<OIC Server URL>/bpm/api/4.0/dp-instances?processDefinitionKey=<Process Definition Key>
-
For the Process Definition Key value for your application:
-
You can use the GET request with any REST client: https://<OIC Server URL>/bpm/api/4.0/dp-definitions
-
From the returned results, identify the key value for your application.
-
-
-
For authentication schema, select Call with basic authentication.
-
For credential key, click + sign to add the Oracle Process Cloud Service process owner user credential. Provide a name to the key.
-
Select POST as the method to expose.
-
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" }
-
Put in {} as sample code sample for Response Payload. Click Save and Close.