- 1. 简介
- 2. 开始
- 3. 配置
- 4. Flowable API
- 5. 集成 Spring
- 6. 部署
- 7. BPMN 2.0 介绍
- 8. BPMN 2.0 结构
- 9. 表单
- 10. JPA
- 11. 历史
- 12. 身份管理
- 13. Eclipse Designer
- 14. Flowable UI 应用
- 15. REST API
- 16. 集成 CDI
- 17. 集成 LDAP
- 18. 高级
- 19. 工具
15.8. History
15.8.1. Get a historic process instance
GET history/historic-process-instances/{processInstanceId}
Response code | Description |
---|---|
200 | Indicates that the historic process instances could be found. |
404 | Indicates that the historic process instances could not be found. |
Success response body:
{
"data": [
{
"id" : "5",
"businessKey" : "myKey",
"processDefinitionId" : "oneTaskProcess%3A1%3A4",
"processDefinitionUrl" : "http://localhost:8182/repository/process-definitions/oneTaskProcess%3A1%3A4",
"startTime" : "2013-04-17T10:17:43.902+0000",
"endTime" : "2013-04-18T14:06:32.715+0000",
"durationInMillis" : 86400056,
"startUserId" : "kermit",
"startActivityId" : "startEvent",
"endActivityId" : "endEvent",
"deleteReason" : null,
"superProcessInstanceId" : "3",
"url" : "http://localhost:8182/history/historic-process-instances/5",
"variables": null,
"tenantId":null
}
],
"total": 1,
"start": 0,
"sort": "name",
"order": "asc",
"size": 1
}
15.8.2. List of historic process instances
GET history/historic-process-instances
Parameter | Required | Value | Description |
---|---|---|---|
processInstanceId | No | String | An id of the historic process instance. |
processDefinitionKey | No | String | The process definition key of the historic process instance. |
processDefinitionId | No | String | The process definition id of the historic process instance. |
businessKey | No | String | The business key of the historic process instance. |
involvedUser | No | String | An involved user of the historic process instance. |
finished | No | Boolean | Indication if the historic process instance is finished. |
superProcessInstanceId | No | String | An optional parent process id of the historic process instance. |
excludeSubprocesses | No | Boolean | Return only historic process instances which aren’t sub processes. |
finishedAfter | No | Date | Return only historic process instances that were finished after this date. |
finishedBefore | No | Date | Return only historic process instances that were finished before this date. |
startedAfter | No | Date | Return only historic process instances that were started after this date. |
startedBefore | No | Date | Return only historic process instances that were started before this date. |
startedBy | No | String | Return only historic process instances that were started by this user. |
includeProcessVariables | No | Boolean | An indication if the historic process instance variables should be returned as well. |
tenantId | No | String | Only return instances with the given tenantId. |
tenantIdLike | No | String | Only return instances with a tenantId like the given value. |
withoutTenantId | No | Boolean | If true , only returns instances without a tenantId set. If false , the withoutTenantId parameter is ignored. |
Response code | Description |
---|---|
200 | Indicates that historic process instances could be queried. |
400 | Indicates an parameter was passed in the wrong format. The status-message contains additional information. |
Success response body:
{
"data": [
{
"id" : "5",
"businessKey" : "myKey",
"processDefinitionId" : "oneTaskProcess%3A1%3A4",
"processDefinitionUrl" : "http://localhost:8182/repository/process-definitions/oneTaskProcess%3A1%3A4",
"startTime" : "2013-04-17T10:17:43.902+0000",
"endTime" : "2013-04-18T14:06:32.715+0000",
"durationInMillis" : 86400056,
"startUserId" : "kermit",
"startActivityId" : "startEvent",
"endActivityId" : "endEvent",
"deleteReason" : null,
"superProcessInstanceId" : "3",
"url" : "http://localhost:8182/history/historic-process-instances/5",
"variables": [
{
"name": "test",
"variableScope": "local",
"value": "myTest"
}
],
"tenantId":null
}
],
"total": 1,
"start": 0,
"sort": "name",
"order": "asc",
"size": 1
}
15.8.3. Query for historic process instances
POST query/historic-process-instances
Request body:
{
"processDefinitionId" : "oneTaskProcess%3A1%3A4",
"variables" : [
{
"name" : "myVariable",
"value" : 1234,
"operation" : "equals",
"type" : "long"
}
]
}
All supported JSON parameter fields allowed are exactly the same as the parameters found for getting a collection of historic process instances, but passed in as JSON-body arguments rather than URL-parameters to allow for more advanced querying and preventing errors with request-uri’s that are too long. On top of that, the query allows for filtering based on process variables. The variables
property is a JSON-array containing objects with the format as described here.
Response code | Description |
---|---|
200 | Indicates request was successful and the tasks are returned |
400 | Indicates an parameter was passed in the wrong format. The status-message contains additional information. |
Success response body:
{
"data": [
{
"id" : "5",
"businessKey" : "myKey",
"processDefinitionId" : "oneTaskProcess%3A1%3A4",
"processDefinitionUrl" : "http://localhost:8182/repository/process-definitions/oneTaskProcess%3A1%3A4",
"startTime" : "2013-04-17T10:17:43.902+0000",
"endTime" : "2013-04-18T14:06:32.715+0000",
"durationInMillis" : 86400056,
"startUserId" : "kermit",
"startActivityId" : "startEvent",
"endActivityId" : "endEvent",
"deleteReason" : null,
"superProcessInstanceId" : "3",
"url" : "http://localhost:8182/history/historic-process-instances/5",
"variables": [
{
"name": "test",
"variableScope": "local",
"value": "myTest"
}
],
"tenantId":null
}
],
"total": 1,
"start": 0,
"sort": "name",
"order": "asc",
"size": 1
}
15.8.4. Delete a historic process instance
DELETE history/historic-process-instances/{processInstanceId}
Response code | Description |
---|---|
200 | Indicates that the historic process instance was deleted. |
404 | Indicates that the historic process instance could not be found. |
15.8.5. Get the identity links of a historic process instance
GET history/historic-process-instance/{processInstanceId}/identitylinks
Response code | Description |
---|---|
200 | Indicates request was successful and the identity links are returned |
404 | Indicates the process instance could not be found. |
Success response body:
[
{
"type" : "participant",
"userId" : "kermit",
"groupId" : null,
"taskId" : null,
"taskUrl" : null,
"processInstanceId" : "5",
"processInstanceUrl" : "http://localhost:8182/history/historic-process-instances/5"
}
]
15.8.6. Get the binary data for a historic process instance variable
GET history/historic-process-instances/{processInstanceId}/variables/{variableName}/data
Response code | Description |
---|---|
200 | Indicates the process instance was found and the requested variable data is returned. |
404 | Indicates the requested process instance was not found or the process instance doesn’t have a variable with the given name or the variable doesn’t have a binary stream available. Status message provides additional information. |
Success response body:
The response body contains the binary value of the variable. When the variable is of type binary
, the content-type of the response is set to application/octet-stream
, regardless of the content of the variable or the request accept-type header. In case of serializable
, application/x-java-serialized-object
is used as content-type.
15.8.7. Create a new comment on a historic process instance
POST history/historic-process-instances/{processInstanceId}/comments
Parameter | Required | Value | Description |
---|---|---|---|
processInstanceId | Yes | String | The id of the process instance to create the comment for. |
Request body:
{
"message" : "This is a comment.",
"saveProcessInstanceId" : true
}
Parameter saveProcessInstanceId
is optional, if true
save process instance id of task with comment.
Success response body:
{
"id" : "123",
"taskUrl" : "http://localhost:8081/flowable-rest/service/runtime/tasks/101/comments/123",
"processInstanceUrl" : "http://localhost:8081/flowable-rest/service/history/historic-process-instances/100/comments/123",
"message" : "This is a comment on the task.",
"author" : "kermit",
"time" : "2014-07-13T13:13:52.232+08:00",
"taskId" : "101",
"processInstanceId" : "100"
}
Response code | Description |
---|---|
201 | Indicates the comment was created and the result is returned. |
400 | Indicates the comment is missing from the request. |
404 | Indicates the requested historic process instance was not found. |
15.8.8. Get all comments on a historic process instance
GET history/historic-process-instances/{processInstanceId}/comments
Parameter | Required | Value | Description |
---|---|---|---|
processInstanceId | Yes | String | The id of the process instance to get the comments for. |
Success response body:
[
{
"id" : "123",
"processInstanceUrl" : "http://localhost:8081/flowable-rest/service/history/historic-process-instances/100/comments/123",
"message" : "This is a comment on the task.",
"author" : "kermit",
"time" : "2014-07-13T13:13:52.232+08:00",
"processInstanceId" : "100"
},
{
"id" : "456",
"processInstanceUrl" : "http://localhost:8081/flowable-rest/service/history/historic-process-instances/100/comments/456",
"message" : "This is another comment.",
"author" : "gonzo",
"time" : "2014-07-14T15:16:52.232+08:00",
"processInstanceId" : "100"
}
]
Response code | Description |
---|---|
200 | Indicates the process instance was found and the comments are returned. |
404 | Indicates the requested task was not found. |
15.8.9. Get a comment on a historic process instance
GET history/historic-process-instances/{processInstanceId}/comments/{commentId}
Parameter | Required | Value | Description |
---|---|---|---|
processInstanceId | Yes | String | The id of the historic process instance to get the comment for. |
commentId | Yes | String | The id of the comment. |
Success response body:
{
"id" : "123",
"processInstanceUrl" : "http://localhost:8081/flowable-rest/service/history/historic-process-instances/100/comments/456",
"message" : "This is another comment.",
"author" : "gonzo",
"time" : "2014-07-14T15:16:52.232+08:00",
"processInstanceId" : "100"
}
Response code | Description |
---|---|
200 | Indicates the historic process instance and comment were found and the comment is returned. |
404 | Indicates the requested historic process instance was not found or the historic process instance doesn’t have a comment with the given ID. |
15.8.10. Delete a comment on a historic process instance
DELETE history/historic-process-instances/{processInstanceId}/comments/{commentId}
Parameter | Required | Value | Description |
---|---|---|---|
processInstanceId | Yes | String | The id of the historic process instance to delete the comment for. |
commentId | Yes | String | The id of the comment. |
Response code | Description |
---|---|
204 | Indicates the historic process instance and comment were found and the comment is deleted. Response body is left empty intentionally. |
404 | Indicates the requested task was not found or the historic process instance doesn’t have a comment with the given ID. |
15.8.11. Get a single historic task instance
GET history/historic-task-instances/{taskId}
Response code | Description |
---|---|
200 | Indicates that the historic task instances could be found. |
404 | Indicates that the historic task instances could not be found. |
Success response body:
{
"id" : "5",
"processDefinitionId" : "oneTaskProcess%3A1%3A4",
"processDefinitionUrl" : "http://localhost:8182/repository/process-definitions/oneTaskProcess%3A1%3A4",
"processInstanceId" : "3",
"processInstanceUrl" : "http://localhost:8182/history/historic-process-instances/3",
"executionId" : "4",
"name" : "My task name",
"description" : "My task description",
"deleteReason" : null,
"owner" : "kermit",
"assignee" : "fozzie",
"startTime" : "2013-04-17T10:17:43.902+0000",
"endTime" : "2013-04-18T14:06:32.715+0000",
"durationInMillis" : 86400056,
"workTimeInMillis" : 234890,
"claimTime" : "2013-04-18T11:01:54.715+0000",
"taskDefinitionKey" : "taskKey",
"formKey" : null,
"priority" : 50,
"dueDate" : "2013-04-20T12:11:13.134+0000",
"parentTaskId" : null,
"url" : "http://localhost:8182/history/historic-task-instances/5",
"variables": null,
"tenantId":null
}
15.8.12. Get historic task instances
GET history/historic-task-instances
Parameter | Required | Value | Description |
---|---|---|---|
taskId | No | String | An id of the historic task instance. |
processInstanceId | No | String | The process instance id of the historic task instance. |
processDefinitionKey | No | String | The process definition key of the historic task instance. |
processDefinitionKeyLike | No | String | The process definition key of the historic task instance, which matches the given value. |
processDefinitionId | No | String | The process definition id of the historic task instance. |
processDefinitionName | No | String | The process definition name of the historic task instance. |
processDefinitionNameLike | No | String | The process definition name of the historic task instance, which matches the given value. |
processBusinessKey | No | String | The process instance business key of the historic task instance. |
processBusinessKeyLike | No | String | The process instance business key of the historic task instance that matches the given value. |
executionId | No | String | The execution id of the historic task instance. |
taskDefinitionKey | No | String | The task definition key for tasks part of a process |
taskName | No | String | The task name of the historic task instance. |
taskNameLike | No | String | The task name with like operator for the historic task instance. |
taskDescription | No | String | The task description of the historic task instance. |
taskDescriptionLike | No | String | The task description with like operator for the historic task instance. |
taskDefinitionKey | No | String | The task identifier from the process definition for the historic task instance. |
taskCategory | No | String | Select tasks with the given category. Note that this is the task category, not the category of the process definition (namespace within the BPMN Xml). |
taskDeleteReason | No | String | The task delete reason of the historic task instance. |
taskDeleteReasonLike | No | String | The task delete reason with like operator for the historic task instance. |
taskAssignee | No | String | The assignee of the historic task instance. |
taskAssigneeLike | No | String | The assignee with like operator for the historic task instance. |
taskOwner | No | String | The owner of the historic task instance. |
taskOwnerLike | No | String | The owner with like operator for the historic task instance. |
taskInvolvedUser | No | String | An involved user of the historic task instance. |
taskPriority | No | String | The priority of the historic task instance. |
finished | No | Boolean | Indication if the historic task instance is finished. |
processFinished | No | Boolean | Indication if the process instance of the historic task instance is finished. |
parentTaskId | No | String | An optional parent task id of the historic task instance. |
dueDate | No | Date | Return only historic task instances that have a due date equal this date. |
dueDateAfter | No | Date | Return only historic task instances that have a due date after this date. |
dueDateBefore | No | Date | Return only historic task instances that have a due date before this date. |
withoutDueDate | No | Boolean | Return only historic task instances that have no due-date. When false is provided as value, this parameter is ignored. |
taskCompletedOn | No | Date | Return only historic task instances that have been completed on this date. |
taskCompletedAfter | No | Date | Return only historic task instances that have been completed after this date. |
taskCompletedBefore | No | Date | Return only historic task instances that have been completed before this date. |
taskCreatedOn | No | Date | Return only historic task instances that were created on this date. |
taskCreatedBefore | No | Date | Return only historic task instances that were created before this date. |
taskCreatedAfter | No | Date | Return only historic task instances that were created after this date. |
includeTaskLocalVariables | No | Boolean | An indication if the historic task instance local variables should be returned as well. |
includeProcessVariables | No | Boolean | An indication if the historic task instance global variables should be returned as well. |
tenantId | No | String | Only return historic task instances with the given tenantId. |
tenantIdLike | No | String | Only return historic task instances with a tenantId like the given value. |
withoutTenantId | No | Boolean | If true , only returns historic task instances without a tenantId set. If false , the withoutTenantId parameter is ignored. |
Response code | Description |
---|---|
200 | Indicates that historic process instances could be queried. |
400 | Indicates an parameter was passed in the wrong format. The status-message contains additional information. |
Success response body:
{
"data": [
{
"id" : "5",
"processDefinitionId" : "oneTaskProcess%3A1%3A4",
"processDefinitionUrl" : "http://localhost:8182/repository/process-definitions/oneTaskProcess%3A1%3A4",
"processInstanceId" : "3",
"processInstanceUrl" : "http://localhost:8182/history/historic-process-instances/3",
"executionId" : "4",
"name" : "My task name",
"description" : "My task description",
"deleteReason" : null,
"owner" : "kermit",
"assignee" : "fozzie",
"startTime" : "2013-04-17T10:17:43.902+0000",
"endTime" : "2013-04-18T14:06:32.715+0000",
"durationInMillis" : 86400056,
"workTimeInMillis" : 234890,
"claimTime" : "2013-04-18T11:01:54.715+0000",
"taskDefinitionKey" : "taskKey",
"formKey" : null,
"priority" : 50,
"dueDate" : "2013-04-20T12:11:13.134+0000",
"parentTaskId" : null,
"url" : "http://localhost:8182/history/historic-task-instances/5",
"taskVariables": [
{
"name": "test",
"variableScope": "local",
"value": "myTest"
}
],
"processVariables": [
{
"name": "processTest",
"variableScope": "global",
"value": "myProcessTest"
}
],
"tenantId":null
}
],
"total": 1,
"start": 0,
"sort": "name",
"order": "asc",
"size": 1
}
15.8.13. Query for historic task instances
POST query/historic-task-instances
Query for historic task instances - Request body:
{
"processDefinitionId" : "oneTaskProcess%3A1%3A4",
...
"variables" : [
{
"name" : "myVariable",
"value" : 1234,
"operation" : "equals",
"type" : "long"
}
]
}
All supported JSON parameter fields allowed are exactly the same as the parameters found for getting a collection of historic task instances, but passed in as JSON-body arguments rather than URL-parameters to allow for more advanced querying and preventing errors with request-uri’s that are too long. On top of that, the query allows for filtering based on process variables. The taskVariables
and processVariables
properties are JSON-arrays containing objects with the format as described here.
Response code | Description |
---|---|
200 | Indicates request was successful and the tasks are returned |
400 | Indicates an parameter was passed in the wrong format. The status-message contains additional information. |
Success response body:
{
"data": [
{
"id" : "5",
"processDefinitionId" : "oneTaskProcess%3A1%3A4",
"processDefinitionUrl" : "http://localhost:8182/repository/process-definitions/oneTaskProcess%3A1%3A4",
"processInstanceId" : "3",
"processInstanceUrl" : "http://localhost:8182/history/historic-process-instances/3",
"executionId" : "4",
"name" : "My task name",
"description" : "My task description",
"deleteReason" : null,
"owner" : "kermit",
"assignee" : "fozzie",
"startTime" : "2013-04-17T10:17:43.902+0000",
"endTime" : "2013-04-18T14:06:32.715+0000",
"durationInMillis" : 86400056,
"workTimeInMillis" : 234890,
"claimTime" : "2013-04-18T11:01:54.715+0000",
"taskDefinitionKey" : "taskKey",
"formKey" : null,
"priority" : 50,
"dueDate" : "2013-04-20T12:11:13.134+0000",
"parentTaskId" : null,
"url" : "http://localhost:8182/history/historic-task-instances/5",
"taskVariables": [
{
"name": "test",
"variableScope": "local",
"value": "myTest"
}
],
"processVariables": [
{
"name": "processTest",
"variableScope": "global",
"value": "myProcessTest"
}
],
"tenantId":null
}
],
"total": 1,
"start": 0,
"sort": "name",
"order": "asc",
"size": 1
}
15.8.14. Delete a historic task instance
DELETE history/historic-task-instances/{taskId}
Response code | Description |
---|---|
200 | Indicates that the historic task instance was deleted. |
404 | Indicates that the historic task instance could not be found. |
15.8.15. Get the identity links of a historic task instance
GET history/historic-task-instance/{taskId}/identitylinks
Response code | Description |
---|---|
200 | Indicates request was successful and the identity links are returned |
404 | Indicates the task instance could not be found. |
Success response body:
[
{
"type" : "assignee",
"userId" : "kermit",
"groupId" : null,
"taskId" : "6",
"taskUrl" : "http://localhost:8182/history/historic-task-instances/5",
"processInstanceId" : null,
"processInstanceUrl" : null
}
]
15.8.16. Get the binary data for a historic task instance variable
GET history/historic-task-instances/{taskId}/variables/{variableName}/data
Response code | Description |
---|---|
200 | Indicates the task instance was found and the requested variable data is returned. |
404 | Indicates the requested task instance was not found or the process instance doesn’t have a variable with the given name or the variable doesn’t have a binary stream available. Status message provides additional information. |
Success response body:
The response body contains the binary value of the variable. When the variable is of type binary
, the content-type of the response is set to application/octet-stream
, regardless of the content of the variable or the request accept-type header. In case of serializable
, application/x-java-serialized-object
is used as content-type.
15.8.17. Get historic activity instances
GET history/historic-activity-instances
Parameter | Required | Value | Description |
---|---|---|---|
activityId | No | String | An id of the activity instance. |
activityInstanceId | No | String | An id of the historic activity instance. |
activityName | No | String | The name of the historic activity instance. |
activityType | No | String | The element type of the historic activity instance. |
executionId | No | String | The execution id of the historic activity instance. |
finished | No | Boolean | Indication if the historic activity instance is finished. |
taskAssignee | No | String | The assignee of the historic activity instance. |
processInstanceId | No | String | The process instance id of the historic activity instance. |
processDefinitionId | No | String | The process definition id of the historic activity instance. |
tenantId | No | String | Only return instances with the given tenantId. |
tenantIdLike | No | String | Only return instances with a tenantId like the given value. |
withoutTenantId | No | Boolean | If true , only returns instances without a tenantId set. If false , the withoutTenantId parameter is ignored. |
Response code | Description |
---|---|
200 | Indicates that historic activity instances could be queried. |
400 | Indicates an parameter was passed in the wrong format. The status-message contains additional information. |
Success response body:
{
"data": [
{
"id" : "5",
"activityId" : "4",
"activityName" : "My user task",
"activityType" : "userTask",
"processDefinitionId" : "oneTaskProcess%3A1%3A4",
"processDefinitionUrl" : "http://localhost:8182/repository/process-definitions/oneTaskProcess%3A1%3A4",
"processInstanceId" : "3",
"processInstanceUrl" : "http://localhost:8182/history/historic-process-instances/3",
"executionId" : "4",
"taskId" : "4",
"calledProcessInstanceId" : null,
"assignee" : "fozzie",
"startTime" : "2013-04-17T10:17:43.902+0000",
"endTime" : "2013-04-18T14:06:32.715+0000",
"durationInMillis" : 86400056,
"tenantId":null
}
],
"total": 1,
"start": 0,
"sort": "name",
"order": "asc",
"size": 1
}
15.8.18. Query for historic activity instances
POST query/historic-activity-instances
Request body:
{
"processDefinitionId" : "oneTaskProcess%3A1%3A4"
}
All supported JSON parameter fields allowed are exactly the same as the parameters found for getting a collection of historic task instances, but passed in as JSON-body arguments rather than URL-parameters to allow for more advanced querying and preventing errors with request-uri’s that are too long.
Response code | Description |
---|---|
200 | Indicates request was successful and the activities are returned |
400 | Indicates an parameter was passed in the wrong format. The status-message contains additional information. |
Success response body:
{
"data": [
{
"id" : "5",
"activityId" : "4",
"activityName" : "My user task",
"activityType" : "userTask",
"processDefinitionId" : "oneTaskProcess%3A1%3A4",
"processDefinitionUrl" : "http://localhost:8182/repository/process-definitions/oneTaskProcess%3A1%3A4",
"processInstanceId" : "3",
"processInstanceUrl" : "http://localhost:8182/history/historic-process-instances/3",
"executionId" : "4",
"taskId" : "4",
"calledProcessInstanceId" : null,
"assignee" : "fozzie",
"startTime" : "2013-04-17T10:17:43.902+0000",
"endTime" : "2013-04-18T14:06:32.715+0000",
"durationInMillis" : 86400056,
"tenantId":null
}
],
"total": 1,
"start": 0,
"sort": "name",
"order": "asc",
"size": 1
}
15.8.19. List of historic variable instances
GET history/historic-variable-instances
Parameter | Required | Value | Description |
---|---|---|---|
processInstanceId | No | String | The process instance id of the historic variable instance. |
taskId | No | String | The task id of the historic variable instance. |
excludeTaskVariables | No | Boolean | Indication to exclude the task variables from the result. |
variableName | No | String | The variable name of the historic variable instance. |
variableNameLike | No | String | The variable name using the like operator for the historic variable instance. |
Response code | Description |
---|---|
200 | Indicates that historic variable instances could be queried. |
400 | Indicates an parameter was passed in the wrong format. The status-message contains additional information. |
Success response body:
{
"data": [
{
"id" : "14",
"processInstanceId" : "5",
"processInstanceUrl" : "http://localhost:8182/history/historic-process-instances/5",
"taskId" : "6",
"variable" : {
"name" : "myVariable",
"variableScope", "global",
"value" : "test"
}
}
],
"total": 1,
"start": 0,
"sort": "name",
"order": "asc",
"size": 1
}
15.8.20. Query for historic variable instances
POST query/historic-variable-instances
Request body:
{
"processDefinitionId" : "oneTaskProcess%3A1%3A4",
...
"variables" : [
{
"name" : "myVariable",
"value" : 1234,
"operation" : "equals",
"type" : "long"
}
]
}
All supported JSON parameter fields allowed are exactly the same as the parameters found for getting a collection of historic process instances, but passed in as JSON-body arguments rather than URL-parameters to allow for more advanced querying and preventing errors with request-uri’s that are too long. On top of that, the query allows for filtering based on process variables. The variables
property is a JSON-array containing objects with the format as described here.
Response code | Description |
---|---|
200 | Indicates request was successful and the tasks are returned |
400 | Indicates an parameter was passed in the wrong format. The status-message contains additional information. |
Success response body:
{
"data": [
{
"id" : "14",
"processInstanceId" : "5",
"processInstanceUrl" : "http://localhost:8182/history/historic-process-instances/5",
"taskId" : "6",
"variable" : {
"name" : "myVariable",
"variableScope", "global",
"value" : "test"
}
}
],
"total": 1,
"start": 0,
"sort": "name",
"order": "asc",
"size": 1
}
====Get the binary data for a historic task instance variable
GET history/historic-variable-instances/{varInstanceId}/data
Response code | Description |
---|---|
200 | Indicates the variable instance was found and the requested variable data is returned. |
404 | Indicates the requested variable instance was not found or the variable instance doesn’t have a variable with the given name or the variable doesn’t have a binary stream available. Status message provides additional information. |
Success response body:
The response body contains the binary value of the variable. When the variable is of type binary
, the content-type of the response is set to application/octet-stream
, regardless of the content of the variable or the request accept-type header. In case of serializable
, application/x-java-serialized-object
is used as content-type.
15.8.21. Get historic detail
GET history/historic-detail
Parameter | Required | Value | Description |
---|---|---|---|
id | No | String | The id of the historic detail. |
processInstanceId | No | String | The process instance id of the historic detail. |
executionId | No | String | The execution id of the historic detail. |
activityInstanceId | No | String | The activity instance id of the historic detail. |
taskId | No | String | The task id of the historic detail. |
selectOnlyFormProperties | No | Boolean | Indication to only return form properties in the result. |
selectOnlyVariableUpdates | No | Boolean | Indication to only return variable updates in the result. |
Response code | Description |
---|---|
200 | Indicates that historic detail could be queried. |
400 | Indicates an parameter was passed in the wrong format. The status-message contains additional information. |
Success response body:
{
"data": [
{
"id" : "26",
"processInstanceId" : "5",
"processInstanceUrl" : "http://localhost:8182/history/historic-process-instances/5",
"executionId" : "6",
"activityInstanceId", "10",
"taskId" : "6",
"taskUrl" : "http://localhost:8182/history/historic-task-instances/6",
"time" : "2013-04-17T10:17:43.902+0000",
"detailType" : "variableUpdate",
"revision" : 2,
"variable" : {
"name" : "myVariable",
"variableScope", "global",
"value" : "test"
},
"propertyId": null,
"propertyValue": null
}
],
"total": 1,
"start": 0,
"sort": "name",
"order": "asc",
"size": 1
}
15.8.22. Query for historic details
POST query/historic-detail
Request body:
{ "processInstanceId" : "5", }
All supported JSON parameter fields allowed are exactly the same as the parameters found for getting a collection of historic process instances, but passed in as JSON-body arguments rather than URL-parameters to allow for more advanced querying and preventing errors with request-uri’s that are too long.
Response code | Description |
---|---|
200 | Indicates request was successful and the historic details are returned |
400 | Indicates an parameter was passed in the wrong format. The status-message contains additional information. |
Success response body:
{
"data": [
{
"id" : "26",
"processInstanceId" : "5",
"processInstanceUrl" : "http://localhost:8182/history/historic-process-instances/5",
"executionId" : "6",
"activityInstanceId", "10",
"taskId" : "6",
"taskUrl" : "http://localhost:8182/history/historic-task-instances/6",
"time" : "2013-04-17T10:17:43.902+0000",
"detailType" : "variableUpdate",
"revision" : 2,
"variable" : {
"name" : "myVariable",
"variableScope", "global",
"value" : "test"
},
"propertyId" : null,
"propertyValue" : null
}
],
"total": 1,
"start": 0,
"sort": "name",
"order": "asc",
"size": 1
}
15.8.23. Get the binary data for a historic detail variable
GET history/historic-detail/{detailId}/data
Response code | Description |
---|---|
200 | Indicates the historic detail instance was found and the requested variable data is returned. |
404 | Indicates the requested historic detail instance was not found or the historic detail instance doesn’t have a variable with the given name or the variable doesn’t have a binary stream available. Status message provides additional information. |
Success response body:
The response body contains the binary value of the variable. When the variable is of type binary
, the content-type of the response is set to application/octet-stream
, regardless of the content of the variable or the request accept-type header. In case of serializable
, application/x-java-serialized-object
is used as content-type.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论