Get a Dynamic Process Resource

get

/ic/api/process/v1/dp-resources/{name}

Get the dynamic process resource for the specified resource name and deployment ID.

You must use the deploymentId query parameter to retrieve the dynamic process resource.

Request

Supported Media Types
Path Parameters
Query Parameters
  • The deployment ID of the resource. While retrieving the dynamic process resource, you must use this query paramenter. If not, you will encounter an internal server error.
Back to Top

Response

Supported Media Types

200 Response

successful operation
Body ()
Root Schema : ProcessResources
Type: object
Match All
Show Source
Nested Schema : CommonModel
Type: object
Discriminator: links
Show Source
Nested Schema : ProcessResources-allOf[1]
Type: object
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : ProcessResource
Type: object
Match All
Show Source
Nested Schema : ProcessResource-allOf[1]
Type: object
Show Source
Nested Schema : schema
Type: object
The schema of the resource.

401 Response

Unauthorized

404 Response

A process resource with the specified resource name and deployment ID does not exist.

500 Response

Internal Server Error
Back to Top

Examples

The following example shows how to retrieve a dynamic process resource for the specified resource name and deployment ID by submitting a GET request on the REST resource.

Send Request

The following example shows the contents of the send request:

https://example.com/ic/api/process/v1/ic/api/process/v1/dp-resources/<name>?deploymentId=<deploymentId>

Where,

  • example.com is the host where Oracle Integration is running.

  • <name> is the name of the dynamic process resource. To retrieve the dynamic process resource name, see Get a List of Dynamic Process Resources.

  • <deploymentId> is the unique depoloyment ID for a resource. To retrieve the deployment ID of the resource, see Get a Dynamic Process Definition by ID.

    The following sample shows the example of the deployment ID in the response body of the Get a Dynamic Process Definition by ID REST resource:

    "id": "cm_DP78:1:385",
                "key": "cm_DP76ad8",
                "category": "oracleinternalpcs/DPInterfaceTestApp!1.1*soa_735a702c-73ac-4b83-a7ea-a8958bf2e90b",
                "name": "DPName",
                "version": 1,
                "revision": "1.1",
                "resource": "DP7a6ad8.cmmn",
                "deploymentId": "380",
                "description": "Some description for DP process",

Example of Response Header

Status Code: 200 OK
Date:  Thu, 15 Nov 2018 08:26:57 GMT
Content-Type: application/json

Example of Response Body

{
    "links": [
        {
            "href": "http://example.com:7001/ic/api/process/v1/dp-resources/DP7ajglr6ad8.cmmn?deploymentId=380",
            "rel": "self"
        },
        {
            "href": "http://example.com:7001/ic/api/process/v1/dp-resources?deploymentId=380",
            "rel": "parent"
        }
    ],
    "id": "381",
    "name": "DP7ajglr6ad8.cmmn",
    "deploymentId": "380",
    "schema": "<?xml version='1.0' encoding='UTF-8'?>\n<definitions xmlns=\"http://www.omg.org/spec/CMMN/20151109/MODEL\" xmlns:ora=\"http://xmlns.oracle.com/bpm/OracleExtensions\" exporter=\"PCS Composer - Runtime Asset Generator\" exporterVersion=\"1.0\" id=\"Definitions\" name=\"Definitions\" targetNamespace=\"http://bpmn.io/schema/cmmn\">\n   <case id=\"cm_DP7ajglr6ad8\" name=\"DPName\">\n      <documentation id=\"dc_cm_DP7ajglr6ad8\">Some description for DP process</documentation>\n      <extensionElements>\n         <ora:connectors/>\n      </extensionElements>\n      <casePlanModel id=\"DP7ajglr6ad8\" name=\"${&quot;DPName&quot;}\">\n         <documentation id=\"dc_DP7ajglr6ad8\">Some description for DP process</documentation>\n         <planItem definitionRef=\"at_dpsx39ajkxyrrpiop\" id=\"dpsx39ajkxyrrpiop\" name=\"Activity \">\n            <itemControl id=\"ic_dpsx39ajkxyrrpiop\">\n               <requiredRule id=\"rq_ic_dpsx39ajkxyrrpiop\">\n                  <condition id=\"cn_rq_ic_dpsx39ajkxyrrpiop\">${true}</condition>\n               </requiredRule>\n               <manualActivationRule id=\"ac_ic_dpsx39ajkxyrrpiop\">\n                  <condition id=\"cn_ac_ic_dpsx39ajkxyrrpiop\">${false}</condition>\n               </manualActivationRule>\n            </itemControl>\n         </planItem>\n         <task id=\"at_dpsx39ajkxyrrpiop\">\n            <extensionElements>\n               <ora:humanTask def=\"HTdpsx39ajkxyrrpiop\" id=\"ht_dpsx39ajkxyrrpiop\" routingType=\"SINGLE\">\n                  <ora:title>Activity </ora:title>\n                  <ora:owner type=\"ROLE\">Process Owner</ora:owner>\n                  <ora:assignees type=\"ROLE\">Process Owner</ora:assignees>\n               </ora:humanTask>\n            </extensionElements>\n            <input id=\"dpsx39ajkxyrrpiop_input\" name=\"WebForm\">\n               <extensionElements>\n                  <ora:type ref=\"generated/json-schemas/WebForm.schema.json\"/>\n                  <ora:copy>\n                     <ora:from>${input1}</ora:from>\n                     <ora:to>${WebForm}</ora:to>\n                  </ora:copy>\n               </extensionElements>\n            </input>\n         </task>\n      </casePlanModel>\n      <caseRoles>\n         <role id=\"owner\" name=\"Process Owner\">\n            <extensionElements>\n               <ora:permissions>\n                  <ora:permission>\n                     <ora:resources>\n                        <ora:resource resourceRef=\"DP7ajglr6ad8\" resourceType=\"CASE_INSTANCE\"/>\n                     </ora:resources>\n                     <ora:actions>ALL</ora:actions>\n                  </ora:permission>\n               </ora:permissions>\n               <ora:members/>\n            </extensionElements>\n         </role>\n         <role id=\"viewer\" name=\"Process Viewer\">\n            <extensionElements>\n               <ora:permissions>\n                  <ora:permission>\n                     <ora:resources>\n                        <ora:resource resourceRef=\"DP7ajglr6ad8\" resourceType=\"CASE_INSTANCE\"/>\n                     </ora:resources>\n                     <ora:actions>READ</ora:actions>\n                  </ora:permission>\n               </ora:permissions>\n               <ora:members/>\n            </extensionElements>\n         </role>\n      </caseRoles>\n      <input id=\"dPName_input\" name=\"input\">\n         <extensionElements>\n            <ora:type name=\"string\"/>\n         </extensionElements>\n      </input>\n      <input id=\"dPName_input1\" name=\"input1\">\n         <extensionElements>\n            <ora:type ref=\"generated/json-schemas/WebForm.schema.json\"/>\n         </extensionElements>\n      </input>\n      <input id=\"dPName_input2\" name=\"input2\">\n         <extensionElements>\n            <ora:type ref=\"generated/json-schemas/Person.schema.json\"/>\n         </extensionElements>\n      </input>\n   </case>\n</definitions>\n"
}
Back to Top