curl --request POST \
--url http://{host}:{port}/{contextPath}/process-definition/key/{key}/tenant-id/{tenant-id}/start \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"variables": {
"aVariable": {
"value": "aStringValue",
"type": "String"
},
"anotherVariable": {
"value": true,
"type": "Boolean"
}
},
"businessKey": "myBusinessKey"
}
'{
"links": [
{
"method": "GET",
"href": "http://localhost:8080/rest-test/process-instance/anId",
"rel": "self"
}
],
"id": "anId",
"definitionId": "aProcessDefinitionId",
"businessKey": "myBusinessKey",
"caseInstanceId": null,
"tenantId": null,
"ended": false,
"suspended": false
}流程定义
通过Key和TenantId启动实例
Instantiates a given process definition, starts the latest version of the process definition for tenant. Process variables and business key may be supplied in the request body.
POST
/
process-definition
/
key
/
{key}
/
tenant-id
/
{tenant-id}
/
start
curl --request POST \
--url http://{host}:{port}/{contextPath}/process-definition/key/{key}/tenant-id/{tenant-id}/start \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"variables": {
"aVariable": {
"value": "aStringValue",
"type": "String"
},
"anotherVariable": {
"value": true,
"type": "Boolean"
}
},
"businessKey": "myBusinessKey"
}
'{
"links": [
{
"method": "GET",
"href": "http://localhost:8080/rest-test/process-instance/anId",
"rel": "self"
}
],
"id": "anId",
"definitionId": "aProcessDefinitionId",
"businessKey": "myBusinessKey",
"caseInstanceId": null,
"tenantId": null,
"ended": false,
"suspended": false
}Authorizations
Path Parameters
Body
application/json
Skip execution of
input/output variable mappings
for activities that are started or ended as part of this request.
Note: This option is currently only respected when start instructions are submitted
via the startInstructions property.
Response
Request successful.