Get Static Called Process Definitions
curl --request GET \
--url http://{host}:{port}/{contextPath}/process-definition/{id}/static-called-process-definitions \
--header 'Authorization: Basic <encoded-value>'import requests
url = "http://{host}:{port}/{contextPath}/process-definition/{id}/static-called-process-definitions"
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}/process-definition/{id}/static-called-process-definitions', 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}/process-definition/{id}/static-called-process-definitions",
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}/process-definition/{id}/static-called-process-definitions"
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}/process-definition/{id}/static-called-process-definitions")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("http://{host}:{port}/{contextPath}/process-definition/{id}/static-called-process-definitions")
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[
{
"id": "ACalledProcess:1:1bbd4e83-f8f1-11eb-9344",
"key": "ACalledProcess",
"category": "http://www.omg.org/spec/BPMN/20100524/MODEL",
"description": null,
"name": "ACalledProcess",
"version": 1,
"resource": "called-process.bpmn",
"deploymentId": "1baa3baf-f8f1-11eb-9344-0e0bbdd53e42",
"diagram": null,
"suspended": false,
"tenantId": null,
"versionTag": null,
"historyTimeToLive": null,
"calledFromActivityIds": [
"aCallActivityId"
],
"callingProcessDefinitionId": "aProcessDefinitionId",
"startableInTasklist": true
},
{
"id": "AnotherCalledProcess:2:1bc2f3d5-f8f1-11eb-9344",
"key": "AnotherCalledProcess",
"category": "http://www.omg.org/spec/BPMN/20100524/MODEL",
"description": null,
"name": "AnotherCalledProcess",
"version": 2,
"resource": "another-called-process.bpmn",
"deploymentId": "1baa3baf-f8f1-11eb-9344-0e0bbdd53e42",
"diagram": null,
"suspended": false,
"tenantId": null,
"versionTag": null,
"historyTimeToLive": null,
"calledFromActivityIds": [
"aSecondCallActivityId",
"aThirdCallActivityId"
],
"callingProcessDefinitionId": "aProcessDefinitionId",
"startableInTasklist": true
}
]流程定义
获取静态调用的流程定义
For the given process, returns a list of called process definitions corresponding
to
the CalledProcessDefinition interface in the engine. The list
contains all process definitions
that are referenced statically by call activities in the given
process. This endpoint does not
resolve process definitions that are referenced with expressions. Each
called process definition
contains a list of call activity ids, which specifies the call
activities that are calling that
process. This endpoint does not resolve references to case
definitions.
GET
/
process-definition
/
{id}
/
static-called-process-definitions
Get Static Called Process Definitions
curl --request GET \
--url http://{host}:{port}/{contextPath}/process-definition/{id}/static-called-process-definitions \
--header 'Authorization: Basic <encoded-value>'import requests
url = "http://{host}:{port}/{contextPath}/process-definition/{id}/static-called-process-definitions"
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}/process-definition/{id}/static-called-process-definitions', 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}/process-definition/{id}/static-called-process-definitions",
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}/process-definition/{id}/static-called-process-definitions"
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}/process-definition/{id}/static-called-process-definitions")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("http://{host}:{port}/{contextPath}/process-definition/{id}/static-called-process-definitions")
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[
{
"id": "ACalledProcess:1:1bbd4e83-f8f1-11eb-9344",
"key": "ACalledProcess",
"category": "http://www.omg.org/spec/BPMN/20100524/MODEL",
"description": null,
"name": "ACalledProcess",
"version": 1,
"resource": "called-process.bpmn",
"deploymentId": "1baa3baf-f8f1-11eb-9344-0e0bbdd53e42",
"diagram": null,
"suspended": false,
"tenantId": null,
"versionTag": null,
"historyTimeToLive": null,
"calledFromActivityIds": [
"aCallActivityId"
],
"callingProcessDefinitionId": "aProcessDefinitionId",
"startableInTasklist": true
},
{
"id": "AnotherCalledProcess:2:1bc2f3d5-f8f1-11eb-9344",
"key": "AnotherCalledProcess",
"category": "http://www.omg.org/spec/BPMN/20100524/MODEL",
"description": null,
"name": "AnotherCalledProcess",
"version": 2,
"resource": "another-called-process.bpmn",
"deploymentId": "1baa3baf-f8f1-11eb-9344-0e0bbdd53e42",
"diagram": null,
"suspended": false,
"tenantId": null,
"versionTag": null,
"historyTimeToLive": null,
"calledFromActivityIds": [
"aSecondCallActivityId",
"aThirdCallActivityId"
],
"callingProcessDefinitionId": "aProcessDefinitionId",
"startableInTasklist": true
}
]Authorizations
Response
Request successful.
History time to live value of the process definition. Is used within History cleanup.
Required range:
x >= 0