Toggle menu

getProcessDefinitions

Returns the details of process definitions deployed on the server.

It can optionally return only process definitions matching a supplied process definition ID or process definition key. It can also optionally return details of only the most recently deployed process definition versions for each process definition key.

To improve performance, we recommend setting basicPropertiesOnly: true wherever possible.

Parameters 

NameTypeDescription
processDefinitionIdStringFull process definition ID of the process definition to retrieve
processDefinitionKeyStringProcess definition key of the process definition to retrieve
latestVersionBooleanWhether or not only the latest version should be returned
includeProcessModelsBooleanWhether or not the full process model XML should be included in the response (base 64 encoded)
basicPropertiesOnlyBooleanDefault: false. If true will set includeFormProperties and includeIdentityLinks as false
includeFormPropertiesBooleanDefault: true. Whether or not to include the form properties in he response
includeIdentityLinksBooleanDefault: true. Whether or not to include the identity links in he response
All parameters are optional, if none are supplied details of all deployed process definitions will be returned

Example Request

function(params, credentials) {
    let result = this.callWorkerMethod("workflow", "getProcessDefinitions", {
        "processDefinitionId": "fileuplaod:2:509"
    });
    return result;
}

Response

{
    "jsonrpc": "2.0",
    "id": 80,
    "result": [{
        "id": "fileuplaod:2:509",
        "formProperties": {},
        "category": "http://www.gossinteractive.com/processdef",
        "diagramResourceName": "fileuplaod-V-2.fileuplaod.png",
        "description": "file upload test",
        "isSuspended": false,
        "name": "fileuplaod",
        "identityLinks": [{
            "taskId": null,
            "groupId": null,
            "processInstanceId": null,
            "userId": "timg",
            "type": "candidate",
            "processDefinitionId": "fileuplaod:2:509"
        }],
        "deploymentId": "506",
        "resourceName": "fileuplaod-V-2.bpmn20.xml",
        "key": "fileuplaod",
        "version": 2
    }]
}

Last modified on November 13, 2024

Share this page

Facebook icon Twitter icon email icon

Print

print icon