Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

As of Version

product version 2021 Autumn | component version 

Request MethodPOST
Response FormatJSON
Description

Starts a process specified in a JSON structure in the requeste body.

The following query parameters can optionally be added to the request URL.

Meaning of HTTP status codes:

HTTP Status CodeDescription
200, 201Request was successful and the process instance was created.
400Either the process definition was not found or an invalid variable has been passed. Status description contains additional information about the error.
401The calling user is not authorized.
Request HeaderContent-Type: application/json
Request Example

https://<host>/bpm-engine/api/processes

request body
{
  "businessKey": "myBusinessKey",
  "name": "myProcessInstanceName",
  "processDefinitionKey": "oneTaskProcess",
  "variables": [
    {
      "name": "myVariable",
      "scope": "myScope",
      "type": "myType",
      "value": "test",
      "valueUrl": "http://...."
    }
  ]
}
Response Example
{
  "hasMoreItems": true,
  "numItems": 50,
  "objects": [
    {
      "businessKey": "myBusinessKey",
      "completed": true,
      "id": 187,
      "name": "myProcessInstanceName",
      "processDefinitionDescription": "A process definition description",
      "processDefinitionId": "oneTaskProcess:1:00000000-0000-0000-0000-000000000000",
      "processDefinitionName": "A process definition name",
      "startTime": "2018-04-17T10:17:43.902+0000",
      "startUserId": "user0001",
      "suspended": true,
      "variables": [
        {
          "name": "myVariable",
          "scope": "myScope",
          "type": "myType",
          "value": "test",
          "valueUrl": "http://...."
        }
      ]
    }
  ]
}
  • No labels