Invoke REST Api To Get Form Instance On PCS (Doc ID 2250482.1)

Last updated on AUGUST 23, 2017

Applies to:

Oracle Process Cloud Service - Version N/A and later
Information in this document applies to any platform.

Goal

Trying to get the payload using the GET
/bpm/api/3.0/process-definitions/{processDefId}/{serviceName}/form/payload
based on the following documentation:
.
https://docs.oracle.com/en/cloud/paas/process-cloud/cprra/op-process-definitions-%7BprocessDefId%7D-%7BserviceName%7D-form-payload-get.html
call returns 500 error.


1. Retrieve the form URL using Postman or your favorite REST client
https://bpm-pcssupport.process.us2.oraclecloud.com/bpm/api/4.0/process-definitions/default~USCourts!1~NewIncident/NewIncident.service/webform?operation=start
You'll get the URL
"https://bpm-pcssupport.process.us2.oraclecloud.com:443/bpm/api/4.0/webforms/default~USCourts!1~NewIncident~d501401b-aeda-4844-bfb8-f5686893d2ce~2a1f86bb-b1a2-439b-a665-a85ecbd4ecdf"

2. Run the payload retrieval request using the same process definition ID ,
service name and operation that in the previous call and formInstanceURL =
the URL you just got:

https://bpm-pcssupport.process.us2.oraclecloud.com/bpm/api/4.0/process-definitions/default~USCourts!1~NewIncident/NewIncident.service/form/payload?formInstanceURL=https://bpm-pcssupport.process.us2.oraclecloud.com:443/bpm/api/4.0/webform/default~USCourts!1~NewIncident~d501401b-aeda-4844-bfb8-f5686893d2ce~2a1f86bb-b1a2-439b-a665-a85ecbd4ecdf&operation=start

You'll get the 500 error.

 

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms