Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Page Properties
hiddentrue
idDONE

Product Version
Report Note
Assignee

Resources & Remarks

Modification History

NameDateProduct VersionAction
Antje27 JUL 20212021 Autumncreated
Antje22 FEB 20222022 Springdelegation can change variables as well

add to description:

In 



As of Version

product version 2021 Autumn | component version 

Request MethodPOST
Response FormatJSON
Description


Excerpt

Performs an action defined in the request body on the task specified by taskId.


>> Task Actions

In addition to the complete action and in contrast to the corresponding underlying Flowable task actions, the following actions allow to apply changes to variables as well:

  • delegate
  • resolve
    Note: The specified values for the variables are updated even if the final resolving process fails

...

Performs an action defined in the request body on the task specified by taskId
  • .
>> Task Actions

Meaning of HTTP status codes:

As of Version

product version 2021 Autumn | component version 

Request MethodPOST
Response FormatJSON
Description
Excerpt
HTTP Status CodeDescription
200The request was successful and the task is returned.
400An invalid variable has been passed. Status description contains additional information about the error.
401The calling user is not authorized.
404The requested task was not found.


Request HeaderContent-Type: application/jsonRequest Example

https://<host>/bpm-engine/api/tasks/8

Code Block
languageyml
{
  "action": "claim",
  "assignee": "userWhoClaims",
  "variables": [
    {
      "name": "myVariable",
      "scope": "myScope",
      "type": "myType",
      "value": "test",
      "valueUrl": "http://...."
    }
  ]
}


Response Example


Code Block
languageyml
{
  "assignee": "userWhoClaims",
  "claimTime": "2018-04-17T10:17:43.902+0000",
  "createTime": "2013-04-17T10:17:43.902+0000",
  "description": "Task description",
  "formKey": "myKey",
  "id": 8,
  "name": "My task",
  "parentTaskId": "null",
  "processDefinitionId": 123,
  "processInstanceId": 123,
  "suspended": true,
  "variables": [
    {
      "name": "myVariable",
      "scope": "myScope",
      "type": "myType",
      "value": "test",
      "valueUrl": "http://...."
    }
  ]
}


...