curl --request GET \
--url http://{host}:{port}/{contextPath}/history/detail \
--header 'Authorization: Basic <encoded-value>'import requests
url = "http://{host}:{port}/{contextPath}/history/detail"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('http://{host}:{port}/{contextPath}/history/detail', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "62437",
CURLOPT_URL => "http://{host}:{port}/{contextPath}/history/detail",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://{host}:{port}/{contextPath}/history/detail"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://{host}:{port}/{contextPath}/history/detail")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("http://{host}:{port}/{contextPath}/history/detail")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body[
{
"type": "variableUpdate",
"id": "3cd79390-001a-11e7-8c6b-34f39ab71d4e",
"processDefinitionKey": "invoice",
"processDefinitionId": "invoice:1:3c59899b-001a-11e7-8c6b-34f39ab71d4e",
"processInstanceId": "3cd597b7-001a-11e7-8c6b-34f39ab71d4e",
"activityInstanceId": "StartEvent_1:3cd7456e-001a-11e7-8c6b-34f39ab71d4e",
"executionId": "3cd597b7-001a-11e7-8c6b-34f39ab71d4e",
"caseDefinitionKey": null,
"caseDefinitionId": null,
"caseInstanceId": null,
"caseExecutionId": null,
"taskId": null,
"tenantId": null,
"userOperationId": "3cd76c7f-001a-11e7-8c6b-34f39ab71d4e",
"time": "2017-03-03T15:03:54.000+0200",
"variableName": "amount",
"variableInstanceId": "3cd65b08-001a-11e7-8c6b-34f39ab71d4e",
"variableType": "Double",
"value": 30,
"valueInfo": {},
"revision": 0,
"errorMessage": null,
"removalTime": "2018-02-10T14:33:19.000+0200",
"rootProcessInstanceId": "aRootProcessInstanceId",
"initial": true
},
{
"type": "variableUpdate",
"id": "3cd79392-001a-11e7-8c6b-34f39ab71d4e",
"processDefinitionKey": "invoice",
"processDefinitionId": "invoice:1:3c59899b-001a-11e7-8c6b-34f39ab71d4e",
"processInstanceId": "3cd597b7-001a-11e7-8c6b-34f39ab71d4e",
"activityInstanceId": "StartEvent_1:3cd7456e-001a-11e7-8c6b-34f39ab71d4e",
"executionId": "3cd597b7-001a-11e7-8c6b-34f39ab71d4e",
"caseDefinitionKey": null,
"caseDefinitionId": null,
"caseInstanceId": null,
"caseExecutionId": null,
"taskId": null,
"tenantId": null,
"userOperationId": "3cd76c7f-001a-11e7-8c6b-34f39ab71d4e",
"time": "2017-03-03T15:03:54.000+0200",
"variableName": "invoiceDocument",
"variableInstanceId": "3cd65b0a-001a-11e7-8c6b-34f39ab71d4e",
"variableType": "File",
"value": null,
"valueInfo": {
"mimeType": "application/pdf",
"filename": "invoice.pdf"
},
"revision": 0,
"errorMessage": null,
"removalTime": "2018-02-10T14:33:19.000+0200",
"rootProcessInstanceId": "aRootProcessInstanceId",
"initial": true
}
]获取列表
Queries for historic details that fulfill the given parameters. The size of the result set can be retrieved by using the Get Historic Detail Count method.
curl --request GET \
--url http://{host}:{port}/{contextPath}/history/detail \
--header 'Authorization: Basic <encoded-value>'import requests
url = "http://{host}:{port}/{contextPath}/history/detail"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('http://{host}:{port}/{contextPath}/history/detail', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "62437",
CURLOPT_URL => "http://{host}:{port}/{contextPath}/history/detail",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://{host}:{port}/{contextPath}/history/detail"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://{host}:{port}/{contextPath}/history/detail")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("http://{host}:{port}/{contextPath}/history/detail")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body[
{
"type": "variableUpdate",
"id": "3cd79390-001a-11e7-8c6b-34f39ab71d4e",
"processDefinitionKey": "invoice",
"processDefinitionId": "invoice:1:3c59899b-001a-11e7-8c6b-34f39ab71d4e",
"processInstanceId": "3cd597b7-001a-11e7-8c6b-34f39ab71d4e",
"activityInstanceId": "StartEvent_1:3cd7456e-001a-11e7-8c6b-34f39ab71d4e",
"executionId": "3cd597b7-001a-11e7-8c6b-34f39ab71d4e",
"caseDefinitionKey": null,
"caseDefinitionId": null,
"caseInstanceId": null,
"caseExecutionId": null,
"taskId": null,
"tenantId": null,
"userOperationId": "3cd76c7f-001a-11e7-8c6b-34f39ab71d4e",
"time": "2017-03-03T15:03:54.000+0200",
"variableName": "amount",
"variableInstanceId": "3cd65b08-001a-11e7-8c6b-34f39ab71d4e",
"variableType": "Double",
"value": 30,
"valueInfo": {},
"revision": 0,
"errorMessage": null,
"removalTime": "2018-02-10T14:33:19.000+0200",
"rootProcessInstanceId": "aRootProcessInstanceId",
"initial": true
},
{
"type": "variableUpdate",
"id": "3cd79392-001a-11e7-8c6b-34f39ab71d4e",
"processDefinitionKey": "invoice",
"processDefinitionId": "invoice:1:3c59899b-001a-11e7-8c6b-34f39ab71d4e",
"processInstanceId": "3cd597b7-001a-11e7-8c6b-34f39ab71d4e",
"activityInstanceId": "StartEvent_1:3cd7456e-001a-11e7-8c6b-34f39ab71d4e",
"executionId": "3cd597b7-001a-11e7-8c6b-34f39ab71d4e",
"caseDefinitionKey": null,
"caseDefinitionId": null,
"caseInstanceId": null,
"caseExecutionId": null,
"taskId": null,
"tenantId": null,
"userOperationId": "3cd76c7f-001a-11e7-8c6b-34f39ab71d4e",
"time": "2017-03-03T15:03:54.000+0200",
"variableName": "invoiceDocument",
"variableInstanceId": "3cd65b0a-001a-11e7-8c6b-34f39ab71d4e",
"variableType": "File",
"value": null,
"valueInfo": {
"mimeType": "application/pdf",
"filename": "invoice.pdf"
},
"revision": 0,
"errorMessage": null,
"removalTime": "2018-02-10T14:33:19.000+0200",
"rootProcessInstanceId": "aRootProcessInstanceId",
"initial": true
}
]Authorizations
Query Parameters
Only include historic details where the variable updates belong to one of the passed comma-separated
list of variable types. A list of all supported variable types can be found
here.
Note: All non-primitive variables are associated with the type serializable.
Restrict to historic details that occured before the given date (including the date).
Default format
yyyy-MM-dd'T'HH:mm:ss.SSSZ, e.g., 2013-01-23T14:42:45.000+0200.
Restrict to historic details that occured after the given date (including the date).
Default format
yyyy-MM-dd'T'HH:mm:ss.SSSZ, e.g., 2013-01-23T14:42:45.000+0200.
Determines whether serializable variable values (typically variables that
store custom Java objects) should be deserialized on server side (default
true).
If set to true, a serializable variable will be deserialized on server side
and transformed to JSON using
Jackson's POJO/bean property
introspection feature. Note that this requires the Java classes of the
variable value to be on the REST API's classpath.
If set to false, a serializable variable will be returned in its serialized
format. For example, a variable that is serialized as XML will be returned as
a JSON string containing XML.
Note: While true is the default value for reasons of backward
compatibility, we recommend setting this parameter to false when developing
web applications that are independent of the Java process applications
deployed to the engine.
Response
Request successful.
The id of user operation which links historic detail with user operation log entries.
The time when this historic detail occurred. Default format
yyyy-MM-dd'T'HH:mm:ss.SSSZ.
The time after which the historic detail should be removed by the History Cleanup job.
Default format
yyyy-MM-dd'T'HH:mm:ss.SSSZ.
A JSON object containing additional, value-type-dependent properties.
For variables of type Object, the following properties are returned:
objectTypeName: A string representation of the object's type name.serializationDataFormat: The serialization format used to store the variable.
Note: This property is only set for a HistoricVariableUpdate historic details.
In these cases, the value of the type property is variableUpdate.