GET /server/admin/cases/instances
GET /server/admin/cases/instances
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Query |
page |
optional pagination - at which page to start, defaults to 0 (meaning first) |
integer (int32) |
|
Query |
pageSize |
optional pagination - size of the result, defaults to 10 |
integer (int32) |
|
Query |
sort |
optional sort column, no default |
string |
|
Query |
sortOrder |
optional sort direction (asc, desc) - defaults to asc |
boolean |
|
Query |
status |
optional case instance status (open, closed, canceled) - defaults ot open (1) only |
< enum (open, closed, cancelled) > array(multi) |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/admin/cases/instances
{
"instances": [
{
"case-id": "IT-0000000006",
"case-description": "Order for IT hardware",
"case-owner": "baAdmin",
"case-status": 1,
"case-definition-id": "itorders.orderhardware",
"container-id": "itorders_1.0.0-SNAPSHOT",
"case-started-at": 1540474204152,
"case-completed-at": null,
"case-completion-msg": "",
"case-sla-compliance": 0,
"case-sla-due-date": null,
"case-file": null,
"case-milestones": null,
"case-stages": null,
"case-roles": null
},
{
"case-id": "IT-0000000011",
"case-description": "Order for IT hardware",
"case-owner": "baAdmin",
"case-status": 1,
"case-definition-id": "itorders.orderhardware",
"container-id": "itorders_1.0.0-SNAPSHOT6",
"case-started-at": 1540496734746,
"case-completed-at": null,
"case-completion-msg": "",
"case-sla-compliance": 0,
"case-sla-due-date": null,
"case-file": null,
"case-milestones": null,
"case-stages": null,
"case-roles": null
}
]
}
PUT /server/admin/containers/{containerId}/cases/instances/{caseId}
Type | Name | Description | Schema |
---|---|---|---|
Path |
caseId |
identifier of case instance to be migrated |
string |
Path |
containerId |
container id that case instance belongs to |
string |
Query |
targetContainerId |
container id that new case definition should be migrated to to |
string |
Body |
body |
process and node mapping - unique ids of old definition to new definition given as Map of Maps - ProcessMapping should provide map of process definitions (mandatory), NodeMapping should provide map of node mappings (optional) |
string |
HTTP Code | Description | Schema |
---|---|---|
201 |
Successfull response |
No Content |
404 |
Case instance or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
application/json
application/xml
/server/admin/containers/evaluation_1.0.0-SNAPSHOT/cases/instances/CASE-000000001?targetContainerId=string
{
"NodeMapping" : { },
"ProcessMapping" : {
"insurance-claims.CarInsuranceClaimCase" : "insurance-claims.CarInsuranceClaimCase2"
}
}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<map-type>
<entries>
<entry>
<key>ProcessMapping</key>
<value xsi:type="jaxbMap" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<entries>
<entry>
<key>insurance-claims.CarInsuranceClaimCase</key>
<value xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">insurance-claims.CarInsuranceClaimCase2</value>
</entry>
</entries>
</value>
</entry>
<entry>
<key>NodeMapping</key>
<value xsi:type="jaxbMap" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<entries/>
</value>
</entry>
</entries>
</map-type>
{
"case-id": "IT-0000000006",
"case-migration-successful": true,
"case-migration-start": {
"java.util.Date": 1540526940760
},
"case-migration-end": {
"java.util.Date": 1540526940867
},
"case-migration-reports": [
{
"migration-successful": true,
"migration-start": {
"java.util.Date": 1540526940760
},
"migration-end": {
"java.util.Date": 1540526940863
},
"migration-logs": [
"INFO Fri Oct 26 00:09:00 EDT 2018 Variable instances updated = 2 for process instance id 27",
"INFO Fri Oct 26 00:09:00 EDT 2018 Node instances updated = 4 for process instance id 27",
"INFO Fri Oct 26 00:09:00 EDT 2018 Process instances updated = 1 for process instance id 27",
"INFO Fri Oct 26 00:09:00 EDT 2018 Task variables updated = 6 for process instance id 27",
"INFO Fri Oct 26 00:09:00 EDT 2018 Task audit updated = 1 for process instance id 27",
"INFO Fri Oct 26 00:09:00 EDT 2018 Tasks updated = 1 for process instance id 27",
"INFO Fri Oct 26 00:09:00 EDT 2018 Context info updated = 1 for process instance id 27",
"INFO Fri Oct 26 00:09:00 EDT 2018 Mapping: Node instance logs to be updated = [0]",
"INFO Fri Oct 26 00:09:00 EDT 2018 Mapping: Node instance logs updated = 1 for node instance id 0",
"INFO Fri Oct 26 00:09:00 EDT 2018 Mapping: Task audit updated = 1 for task id 33",
"INFO Fri Oct 26 00:09:00 EDT 2018 Mapping: Task updated = 1 for task id 33",
"INFO Fri Oct 26 00:09:00 EDT 2018 Mapping: Node instance logs to be updated = [1]",
"INFO Fri Oct 26 00:09:00 EDT 2018 Mapping: Node instance logs updated = 1 for node instance id 1",
"INFO Fri Oct 26 00:09:00 EDT 2018 Mapping: Node instance logs to be updated = [2]",
"INFO Fri Oct 26 00:09:00 EDT 2018 Mapping: Node instance logs updated = 1 for node instance id 2",
"INFO Fri Oct 26 00:09:00 EDT 2018 Mapping: Node instance logs to be updated = [3]",
"INFO Fri Oct 26 00:09:00 EDT 2018 Mapping: Node instance logs updated = 1 for node instance id 3",
"INFO Fri Oct 26 00:09:00 EDT 2018 Migration of process instance (27) completed successfully to process itorders.orderhardware2"
],
"migration-process-instance": 27
}
]
}
GET /server/containers/{containerId}/cases/definitions
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
containerId |
container id that should be used to filter case definitions |
string |
|
Query |
page |
optional pagination - at which page to start, defaults to 0 (meaning first) |
integer (int32) |
|
Query |
pageSize |
optional pagination - size of the result, defaults to 10 |
integer (int32) |
|
Query |
sort |
optional sort column, no default |
string |
|
Query |
sortOrder |
optional sort direction (asc, desc) - defaults to asc |
boolean |
|
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/cases/definitions
{
"definitions": [
{
"name": "Order for IT hardware",
"id": "itorders.orderhardware",
"version": "1.0",
"case-id-prefix": "IT",
"container-id": "itorders_1.0.0-SNAPSHOT2",
"adhoc-fragments": [
{
"name": "Prepare hardware spec",
"type": "HumanTaskNode"
},
{
"name": "Milestone 1: Order placed",
"type": "MilestoneNode"
},
{
"name": "Milestone 2: Order shipped",
"type": "MilestoneNode"
},
{
"name": "Milestone 3: Delivered to customer",
"type": "MilestoneNode"
},
{
"name": "Hardware spec ready",
"type": "MilestoneNode"
},
{
"name": "Manager decision",
"type": "MilestoneNode"
}
],
"roles": {
"owner": 1,
"manager": 1,
"supplier": 2
},
"milestones": [
{
"milestone-name": "Milestone 1: Order placed",
"milestone-id": "_DCD97847-6E3C-4C5E-9EE3-221C04BE42ED",
"milestone-mandatory": false
},
{
"milestone-name": "Milestone 2: Order shipped",
"milestone-id": "_343B90CD-AA19-4894-B63C-3CE1906E6FD1",
"milestone-mandatory": false
},
{
"milestone-name": "Milestone 3: Delivered to customer",
"milestone-id": "_52AFA23F-C087-4519-B8F2-BABCC31D68A6",
"milestone-mandatory": false
},
{
"milestone-name": "Hardware spec ready",
"milestone-id": "_483CF785-96DD-40C1-9148-4CFAFAE5778A",
"milestone-mandatory": false
},
{
"milestone-name": "Manager decision",
"milestone-id": "_79953D58-25DB-4FD6-94A0-DFC6EA2D0339",
"milestone-mandatory": false
}
],
"stages": []
},
{
"name": "Order for IT hardware",
"id": "itorders.orderhardware",
"version": "1.0",
"case-id-prefix": "IT",
"container-id": "itorders_1.0.0-SNAPSHOT3",
"adhoc-fragments": [
{
"name": "Prepare hardware spec",
"type": "HumanTaskNode"
},
{
"name": "Milestone 1: Order placed",
"type": "MilestoneNode"
},
{
"name": "Milestone 2: Order shipped",
"type": "MilestoneNode"
},
{
"name": "Milestone 3: Delivered to customer",
"type": "MilestoneNode"
},
{
"name": "Hardware spec ready",
"type": "MilestoneNode"
},
{
"name": "Manager decision",
"type": "MilestoneNode"
}
],
"roles": {
"owner": 1,
"manager": 1,
"supplier": 2
},
"milestones": [
{
"milestone-name": "Milestone 1: Order placed",
"milestone-id": "_DCD97847-6E3C-4C5E-9EE3-221C04BE42ED",
"milestone-mandatory": false
},
{
"milestone-name": "Milestone 2: Order shipped",
"milestone-id": "_343B90CD-AA19-4894-B63C-3CE1906E6FD1",
"milestone-mandatory": false
},
{
"milestone-name": "Milestone 3: Delivered to customer",
"milestone-id": "_52AFA23F-C087-4519-B8F2-BABCC31D68A6",
"milestone-mandatory": false
},
{
"milestone-name": "Hardware spec ready",
"milestone-id": "_483CF785-96DD-40C1-9148-4CFAFAE5778A",
"milestone-mandatory": false
},
{
"milestone-name": "Manager decision",
"milestone-id": "_79953D58-25DB-4FD6-94A0-DFC6EA2D0339",
"milestone-mandatory": false
}
],
"stages": []
}
]
}
GET /server/containers/{containerId}/cases/definitions/{caseDefId}
Type | Name | Description | Schema |
---|---|---|---|
Path |
caseDefId |
case definition id that should be loaded |
string |
Path |
containerId |
container id that should be used to filter case definitions |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/cases/definitions/CASE-00000000001
{
"name": "Order for IT hardware",
"id": "itorders.orderhardware",
"version": "1.0",
"case-id-prefix": "IT",
"container-id": "itorders_1.0.0-SNAPSHOT",
"adhoc-fragments": [
{
"name": "Prepare hardware spec",
"type": "HumanTaskNode"
},
{
"name": "Milestone 1: Order placed",
"type": "MilestoneNode"
},
{
"name": "Milestone 2: Order shipped",
"type": "MilestoneNode"
},
{
"name": "Milestone 3: Delivered to customer",
"type": "MilestoneNode"
},
{
"name": "Hardware spec ready",
"type": "MilestoneNode"
},
{
"name": "Manager decision",
"type": "MilestoneNode"
}
],
"roles": {
"owner": 1,
"manager": 1,
"supplier": 2
},
"milestones": [
{
"milestone-name": "Milestone 1: Order placed",
"milestone-id": "_DCD97847-6E3C-4C5E-9EE3-221C04BE42ED",
"milestone-mandatory": false
},
{
"milestone-name": "Milestone 2: Order shipped",
"milestone-id": "_343B90CD-AA19-4894-B63C-3CE1906E6FD1",
"milestone-mandatory": false
},
{
"milestone-name": "Milestone 3: Delivered to customer",
"milestone-id": "_52AFA23F-C087-4519-B8F2-BABCC31D68A6",
"milestone-mandatory": false
},
{
"milestone-name": "Hardware spec ready",
"milestone-id": "_483CF785-96DD-40C1-9148-4CFAFAE5778A",
"milestone-mandatory": false
},
{
"milestone-name": "Manager decision",
"milestone-id": "_79953D58-25DB-4FD6-94A0-DFC6EA2D0339",
"milestone-mandatory": false
}
],
"stages": []
}
GET /server/containers/{containerId}/cases/instances
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
containerId |
container id that should be used to filter case instances |
string |
|
Query |
page |
optional pagination - at which page to start, defaults to 0 (meaning first) |
integer (int32) |
|
Query |
pageSize |
optional pagination - size of the result, defaults to 10 |
integer (int32) |
|
Query |
sort |
optional sort column, no default |
string |
|
Query |
sortOrder |
optional sort direction (asc, desc) - defaults to asc |
boolean |
|
Query |
status |
optional case instance status (open, closed, canceled) - defaults ot open (1) only |
< enum (open, closed, cancelled) > array(multi) |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/cases/instances
{
"instances": [
{
"case-id": "IT-0000000006",
"case-description": "Order for IT hardware",
"case-owner": "baAdmin",
"case-status": 1,
"case-definition-id": "itorders.orderhardware",
"container-id": "itorders_1.0.0-SNAPSHOT",
"case-started-at": 1540474204152,
"case-completed-at": null,
"case-completion-msg": "",
"case-sla-compliance": 0,
"case-sla-due-date": null,
"case-file": null,
"case-milestones": null,
"case-stages": null,
"case-roles": null
},
{
"case-id": "IT-0000000011",
"case-description": "Order for IT hardware",
"case-owner": "baAdmin",
"case-status": 1,
"case-definition-id": "itorders.orderhardware",
"container-id": "itorders_1.0.0-SNAPSHOT6",
"case-started-at": 1540496734746,
"case-completed-at": null,
"case-completion-msg": "",
"case-sla-compliance": 0,
"case-sla-due-date": null,
"case-file": null,
"case-milestones": null,
"case-stages": null,
"case-roles": null
}
]
}
POST /server/containers/{containerId}/cases/instances/{caseId}
Type | Name | Description | Schema |
---|---|---|---|
Path |
caseId |
identifier of the case instance |
string |
Path |
containerId |
container id that case instance belongs to |
string |
Body |
body |
optional comment when closing a case instance as String |
string |
HTTP Code | Description | Schema |
---|---|---|
404 |
Case instance not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/cases/instances/CASE-00000000001
GET /server/containers/{containerId}/cases/instances/{caseId}
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
caseId |
identifier of the case instance |
string |
|
Path |
containerId |
container id that case instance belongs to |
string |
|
Query |
withData |
optional flag to load data when loading case instance |
boolean |
|
Query |
withMilestones |
optional flag to load milestones when loading case instance |
boolean |
|
Query |
withRoles |
optional flag to load roles when loading case instance |
boolean |
|
Query |
withStages |
optional flag to load stages when loading case instance |
boolean |
|
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
404 |
Case instance not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/cases/instances/CASE-00000000001
{
"case-id": "IT-0000000006",
"case-description": "Order for IT hardware",
"case-owner": "baAdmin",
"case-status": 1,
"case-definition-id": "itorders.orderhardware",
"container-id": "itorders_1.0.0-SNAPSHOT",
"case-started-at": 1540474204152,
"case-completed-at": null,
"case-completion-msg": "",
"case-sla-compliance": 0,
"case-sla-due-date": null,
"case-file": {
"case-data": {},
"case-user-assignments": {},
"case-group-assignments": {},
"case-data-restrictions": {}
},
"case-milestones": null,
"case-stages": null,
"case-roles": [
{
"name": "owner",
"users": [
"baAdmin"
],
"groups": []
},
{
"name": "manager",
"users": [
"baAdmin"
],
"groups": []
},
{
"name": "supplier",
"users": [],
"groups": [
"IT"
]
}
]
}
DELETE /server/containers/{containerId}/cases/instances/{caseId}
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
caseId |
identifier of the case instance |
string |
|
Path |
containerId |
container id that case instance belongs to |
string |
|
Query |
destroy |
allows to destroy (permanently) case instance as part of the cancel operation, defaults to false |
boolean |
|
HTTP Code | Description | Schema |
---|---|---|
404 |
Case instance not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/cases/instances/CASE-00000000001
GET /server/containers/{containerId}/cases/instances/{caseId}/adhocfragments
Type | Name | Description | Schema |
---|---|---|---|
Path |
caseId |
identifier of the case instance |
string |
Path |
containerId |
container id that case instance belongs to |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
404 |
Case instance not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/cases/instances/CASE-00000000001/adhocfragments
{
"fragments": [
{
"name": "Prepare hardware spec",
"type": "HumanTaskNode"
},
{
"name": "Milestone 1: Order placed",
"type": "MilestoneNode"
},
{
"name": "Milestone 2: Order shipped",
"type": "MilestoneNode"
},
{
"name": "Milestone 3: Delivered to customer",
"type": "MilestoneNode"
},
{
"name": "Hardware spec ready",
"type": "MilestoneNode"
},
{
"name": "Manager decision",
"type": "MilestoneNode"
}
]
}
POST /server/containers/{containerId}/cases/instances/{caseId}/caseFile
Type | Name | Description | Schema |
---|---|---|---|
Path |
caseId |
identifier of the case instance |
string |
Path |
containerId |
container id that case instance belongs to |
string |
Query |
restrictedTo |
optional role name(s) that given data should be restricted to |
< string > array(multi) |
Body |
body |
map of data to be placed in case file as Map |
string |
HTTP Code | Description | Schema |
---|---|---|
404 |
Case instance not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/cases/instances/CASE-00000000001/caseFile
{
"age": 25,
"person": {
"Person": {
"name": "john"
}
}
}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<map-type>
<entries>
<entry>
<key>age</key>
<value xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">25</value>
</entry>
<entry>
<key>person</key>
<value xsi:type="person" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<name>john</name>
</value>
</entry>
</entries>
</map-type>
GET /server/containers/{containerId}/cases/instances/{caseId}/caseFile
Type | Name | Description | Schema |
---|---|---|---|
Path |
caseId |
identifier of the case instance |
string |
Path |
containerId |
container id that case instance belongs to |
string |
Query |
name |
optional name(s) of the data items to retrieve |
< string > array(multi) |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
404 |
Case instance not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/cases/instances/CASE-00000000001/caseFile
{
"age": 25,
"person": {
"Person": {
"name": "john"
}
}
}
DELETE /server/containers/{containerId}/cases/instances/{caseId}/caseFile
Type | Name | Description | Schema |
---|---|---|---|
Path |
caseId |
identifier of the case instance |
string |
Path |
containerId |
container id that case instance belongs to |
string |
Query |
dataId |
one or more names of the data items to be removed from case file |
< string > array(multi) |
HTTP Code | Description | Schema |
---|---|---|
404 |
Case instance not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/cases/instances/CASE-00000000001/caseFile?dataId=string
POST /server/containers/{containerId}/cases/instances/{caseId}/caseFile/{dataId}
Type | Name | Description | Schema |
---|---|---|---|
Path |
caseId |
identifier of the case instance |
string |
Path |
containerId |
container id that case instance belongs to |
string |
Path |
dataId |
name of the data item to be added to case file |
string |
Query |
restrictedTo |
optional role name(s) that given data should be restricted to |
< string > array(multi) |
Body |
body |
data to be placed in case file, any type can be provided |
string |
HTTP Code | Description | Schema |
---|---|---|
404 |
Case instance not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/cases/instances/CASE-00000000001/caseFile/string
{
"Person": {
"name": "john"
}
}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<person>
<name>john</name>
</person>
GET /server/containers/{containerId}/cases/instances/{caseId}/caseFile/{dataId}
Type | Name | Description | Schema |
---|---|---|---|
Path |
caseId |
identifier of the case instance |
string |
Path |
containerId |
container id that case instance belongs to |
string |
Path |
dataId |
name of the data item within case file to retrieve |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
404 |
Case instance not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/cases/instances/CASE-00000000001/caseFile/string
{
"Person": {
"name": "john"
}
}
POST /server/containers/{containerId}/cases/instances/{caseId}/comments
Type | Name | Description | Schema |
---|---|---|---|
Path |
caseId |
identifier of the case instance |
string |
Path |
containerId |
container id that case instance belongs to |
string |
Query |
author |
optional user id to be used instead of authenticated user - only when bypass authenticated user is enabled |
string |
Query |
restrictedTo |
optional role name(s) that given comment should be restricted to |
< string > array(multi) |
Body |
body |
actual content of the comment to be added as String |
string |
HTTP Code | Description | Schema |
---|---|---|
404 |
Case instance not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/cases/instances/CASE-00000000001/comments
GET /server/containers/{containerId}/cases/instances/{caseId}/comments
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
caseId |
identifier of the case instance |
string |
|
Path |
containerId |
container id that case instance belongs to |
string |
|
Query |
page |
optional pagination - at which page to start, defaults to 0 (meaning first) |
integer (int32) |
|
Query |
pageSize |
optional pagination - size of the result, defaults to 10 |
integer (int32) |
|
Query |
sort |
optional sort column, no default |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
404 |
Case instance not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/cases/instances/CASE-00000000001/comments
{
"comments": [
{
"id": "f15419b6-1967-479b-8509-066f579c59e1",
"author": "baAdmin",
"text": "Updated case with new ad hoc fragment.",
"added-at": {
"java.util.Date": 1540494739762
},
"restricted-to": [
"owner"
]
}
{
"id": "2b072823-7448-4819-9560-01165bc7e805",
"author": "baAdmin",
"text": "Removed hardware preparation requirement.",
"added-at": {
"java.util.Date": 1540494802456
},
"restricted-to": [
"supplier"
]
}
]
}
PUT /server/containers/{containerId}/cases/instances/{caseId}/comments/{caseCommentId}
Type | Name | Description | Schema |
---|---|---|---|
Path |
caseCommentId |
identifier of the comment to be updated |
string |
Path |
caseId |
identifier of the case instance |
string |
Path |
containerId |
container id that case instance belongs to |
string |
Query |
author |
optional user id to be used instead of authenticated user - only when bypass authenticated user is enabled |
string |
Query |
restrictedTo |
optional role name(s) that given comment should be restricted to |
< string > array(multi) |
Body |
body |
actual content of the comment to be updated to as String |
string |
HTTP Code | Description | Schema |
---|---|---|
404 |
Case instance not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/cases/instances/CASE-00000000001/comments/xxx-yyy-zzz
DELETE /server/containers/{containerId}/cases/instances/{caseId}/comments/{caseCommentId}
Type | Name | Description | Schema |
---|---|---|---|
Path |
caseCommentId |
identifier of the comment to be removed |
string |
Path |
caseId |
identifier of the case instance |
string |
Path |
containerId |
container id that case instance belongs to |
string |
HTTP Code | Description | Schema |
---|---|---|
404 |
Case instance not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/cases/instances/CASE-00000000001/comments/xxx-yyy-zzz
GET /server/containers/{containerId}/cases/instances/{caseId}/milestones
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
caseId |
identifier of the case instance |
string |
|
Path |
containerId |
container id that case instance belongs to |
string |
|
Query |
achievedOnly |
optional flag that allows to control which milestones to load - achieved only or actives ones too, defaults to true |
boolean |
|
Query |
page |
optional pagination - at which page to start, defaults to 0 (meaning first) |
integer (int32) |
|
Query |
pageSize |
optional pagination - size of the result, defaults to 10 |
integer (int32) |
|
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
404 |
Case instance not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/cases/instances/CASE-00000000001/milestones
{
"milestones": [
{
"milestone-name": "Milestone 1: Order placed",
"milestone-id": "1",
"milestone-achieved": false,
"milestone-achieved-at": null,
"milestone-status": "Available"
},
{
"milestone-name": "Hardware spec ready",
"milestone-id": "2",
"milestone-achieved": false,
"milestone-achieved-at": null,
"milestone-status": "Available"
},
{
"milestone-name": "Manager decision",
"milestone-id": "3",
"milestone-achieved": false,
"milestone-achieved-at": null,
"milestone-status": "Available"
},
{
"milestone-name": "Milestone 2: Order shipped",
"milestone-id": "_343B90CD-AA19-4894-B63C-3CE1906E6FD1",
"milestone-achieved": false,
"milestone-achieved-at": null,
"milestone-status": "Available"
},
{
"milestone-name": "Milestone 3: Delivered to customer",
"milestone-id": "_52AFA23F-C087-4519-B8F2-BABCC31D68A6",
"milestone-achieved": false,
"milestone-achieved-at": null,
"milestone-status": "Available"
}
]
}
GET /server/containers/{containerId}/cases/instances/{caseId}/nodes/instances
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
caseId |
identifier of the case instance |
string |
|
Path |
containerId |
container id that case instance belongs to |
string |
|
Query |
completed |
optional flag that allows to control which node instances to load - active or completed, defaults to false loading only active ones |
boolean |
|
Query |
page |
optional pagination - at which page to start, defaults to 0 (meaning first) |
integer (int32) |
|
Query |
pageSize |
optional pagination - size of the result, defaults to 10 |
integer (int32) |
|
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
404 |
Case instance not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/cases/instances/CASE-00000000001/nodes/instances
{
"node-instance": [
{
"node-instance-id": 0,
"node-name": "Prepare hardware spec",
"process-instance-id": 26,
"work-item-id": 35,
"container-id": "itorders_1.0.0-SNAPSHOT",
"start-date": {
"java.util.Date": 1540474204152
},
"node-id": "_BFA6002D-0917-42CE-81AD-2A15EC814684",
"node-type": "HumanTaskNode",
"node-connection": null,
"node-completed": false,
"reference-id": null,
"sla-compliance": 0,
"sla-due-date": null
},
{
"node-instance-id": 1,
"node-name": "Milestone 1: Order placed",
"process-instance-id": 26,
"work-item-id": null,
"container-id": "itorders_1.0.0-SNAPSHOT",
"start-date": {
"java.util.Date": 1540474204156
},
"node-id": "_DCD97847-6E3C-4C5E-9EE3-221C04BE42ED",
"node-type": "MilestoneNode",
"node-connection": null,
"node-completed": false,
"reference-id": null,
"sla-compliance": 0,
"sla-due-date": null
},
{
"node-instance-id": 1,
"node-name": "Place order",
"process-instance-id": 34,
"work-item-id": 46,
"container-id": "itorders_1.0.0-SNAPSHOT",
"start-date": {
"java.util.Date": 1540504523493
},
"node-id": "_FCADC388-8A68-40E1-94A7-4F8A7D2B21C2",
"node-type": "HumanTaskNode",
"node-connection": "_384EFF84-BB14-4917-89C3-32DF4ACA1878",
"node-completed": false,
"reference-id": null,
"sla-compliance": 0,
"sla-due-date": null
}
]
}
GET /server/containers/{containerId}/cases/instances/{caseId}/processes/instances
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
caseId |
identifier of the case instance |
string |
|
Path |
containerId |
container id that case instance belongs to |
string |
|
Query |
page |
optional pagination - at which page to start, defaults to 0 (meaning first) |
integer (int32) |
|
Query |
pageSize |
optional pagination - size of the result, defaults to 10 |
integer (int32) |
|
Query |
sort |
optional sort column, no default |
string |
|
Query |
sortOrder |
optional sort direction (asc, desc) - defaults to asc |
boolean |
|
Query |
status |
optional process instance status (active, completed, aborted) - defaults ot active (1) only |
< enum (1, 2, 3) > array(multi) |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
404 |
Case instance not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/cases/instances/CASE-00000000001/processes/instances
{
"process-instance": [
{
"process-instance-id": 26,
"process-id": "itorders.orderhardware",
"process-name": "Order for IT hardware",
"process-version": "1.0",
"process-instance-state": 1,
"container-id": "itorders_1.0.0-SNAPSHOT",
"initiator": "baAdmin",
"start-date": {
"java.util.Date": 1540474204152
},
"process-instance-desc": "Order for IT hardware",
"correlation-key": "IT-0000000006",
"parent-instance-id": -1,
"sla-compliance": 0,
"sla-due-date": null,
"active-user-tasks": null,
"process-instance-variables": null
},
{
"process-instance-id": 34,
"process-id": "itorders-data.place-order",
"process-name": "place-order",
"process-version": "1.0",
"process-instance-state": 1,
"container-id": "itorders_1.0.0-SNAPSHOT",
"initiator": "baAdmin",
"start-date": {
"java.util.Date": 1540504523492
},
"process-instance-desc": "Order IT-0000000006",
"correlation-key": "IT-0000000006:itorders-data.place-order:1540504523491",
"parent-instance-id": 26,
"sla-compliance": 0,
"sla-due-date": null,
"active-user-tasks": null,
"process-instance-variables": null
}
]
}
POST /server/containers/{containerId}/cases/instances/{caseId}/processes/{processId}
Type | Name | Description | Schema |
---|---|---|---|
Path |
caseId |
identifier of the case instance |
string |
Path |
containerId |
container id that case instance belongs to |
string |
Path |
processId |
process id of the subprocess to be added |
string |
Body |
body |
data for dynamic subprocess |
string |
HTTP Code | Description | Schema |
---|---|---|
404 |
Case instance not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/cases/instances/CASE-00000000001/processes/placeOrder
{
"age": 25,
"person": {
"Person": {
"name": "john"
}
}
}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<map-type>
<entries>
<entry>
<key>age</key>
<value xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">25</value>
</entry>
<entry>
<key>person</key>
<value xsi:type="person" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<name>john</name>
</value>
</entry>
</entries>
</map-type>
GET /server/containers/{containerId}/cases/instances/{caseId}/roles
Type | Name | Description | Schema |
---|---|---|---|
Path |
caseId |
identifier of the case instance |
string |
Path |
containerId |
container id that case instance belongs to |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
404 |
Case instance not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/cases/instances/CASE-00000000001/roles
{
"role-assignments": [
{
"name": "owner",
"users": [
"baAdmin"
],
"groups": []
},
{
"name": "manager",
"users": [
"baAdmin"
],
"groups": []
},
{
"name": "supplier",
"users": [],
"groups": [
"IT"
]
}
]
}
PUT /server/containers/{containerId}/cases/instances/{caseId}/roles/{caseRoleName}
Type | Name | Description | Schema |
---|---|---|---|
Path |
caseId |
identifier of the case instance |
string |
Path |
caseRoleName |
name of the case role the assignment should be set |
string |
Path |
containerId |
container id that case instance belongs to |
string |
Query |
group |
group to be aded to case role for given case instance |
string |
Query |
user |
user to be aded to case role for given case instance |
string |
HTTP Code | Description | Schema |
---|---|---|
404 |
Case instance not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/cases/instances/CASE-00000000001/roles/owner?group=string&user=string
DELETE /server/containers/{containerId}/cases/instances/{caseId}/roles/{caseRoleName}
Type | Name | Description | Schema |
---|---|---|---|
Path |
caseId |
identifier of the case instance |
string |
Path |
caseRoleName |
name of the case role the assignment should be removed |
string |
Path |
containerId |
container id that case instance belongs to |
string |
Query |
group |
group to be removed from case role for given case instance |
string |
Query |
user |
user to be removed from case role for given case instance |
string |
HTTP Code | Description | Schema |
---|---|---|
404 |
Case instance not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/cases/instances/CASE-00000000001/roles/owner?group=string&user=string
GET /server/containers/{containerId}/cases/instances/{caseId}/stages
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
caseId |
identifier of the case instance |
string |
|
Path |
containerId |
container id that case instance belongs to |
string |
|
Query |
activeOnly |
optional flag that allows to control which stages to load - active only or completed ones too, defaults to true |
boolean |
|
Query |
page |
optional pagination - at which page to start, defaults to 0 (meaning first) |
integer (int32) |
|
Query |
pageSize |
optional pagination - size of the result, defaults to 10 |
integer (int32) |
|
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
404 |
Case instance not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/cases/instances/CASE-00000000001/stages
{
"stages": [
{
"stage-name": "string",
"stage-id": "string",
"stage-status": "string",
"adhoc-fragments": [
{
"name": "string",
"type": "string"
}
],
"active-nodes": [
{
"node-instance-id": 0,
"node-name": "string",
"process-instance-id": 0,
"work-item-id": 0,
"container-id": "string",
"start-date": "2018-10-25T18:34:44.456Z",
"node-id": "string",
"node-type": "string",
"node-connection": "string",
"node-completed": true,
"reference-id": 0,
"sla-compliance": 0,
"sla-due-date": "2018-10-25T18:34:44.456Z"
}
]
}
]
}
POST /server/containers/{containerId}/cases/instances/{caseId}/stages/{caseStageId}/processes/{processId}
Type | Name | Description | Schema |
---|---|---|---|
Path |
caseId |
identifier of the case instance |
string |
Path |
caseStageId |
identifier of the stage within case instance where dynamic subprocess should be added |
string |
Path |
containerId |
container id that case instance belongs to |
string |
Path |
processId |
process id of the subprocess to be added |
string |
Body |
body |
data for dynamic subprocess |
string |
HTTP Code | Description | Schema |
---|---|---|
404 |
Case instance not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/cases/instances/CASE-00000000001/stages/stageOne/processes/string
{
"age": 25,
"person": {
"Person": {
"name": "john"
}
}
}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<map-type>
<entries>
<entry>
<key>age</key>
<value xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">25</value>
</entry>
<entry>
<key>person</key>
<value xsi:type="person" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<name>john</name>
</value>
</entry>
</entries>
</map-type>
POST /server/containers/{containerId}/cases/instances/{caseId}/stages/{caseStageId}/tasks
Type | Name | Description | Schema |
---|---|---|---|
Path |
caseId |
identifier of the case instance |
string |
Path |
caseStageId |
identifier of the stage within case instance where dynamic task should be added |
string |
Path |
containerId |
container id that case instance belongs to |
string |
Body |
body |
data for dynamic task (it represents task specification that drives the selection of the type of task) |
string |
HTTP Code | Description | Schema |
---|---|---|
404 |
Case instance not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/cases/instances/CASE-00000000001/stages/stageOne/tasks
{
"age": 25,
"person": {
"Person": {
"name": "john"
}
}
}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<map-type>
<entries>
<entry>
<key>age</key>
<value xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">25</value>
</entry>
<entry>
<key>person</key>
<value xsi:type="person" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<name>john</name>
</value>
</entry>
</entries>
</map-type>
PUT /server/containers/{containerId}/cases/instances/{caseId}/stages/{caseStageId}/tasks/{nodeName}
Type | Name | Description | Schema |
---|---|---|---|
Path |
caseId |
identifier of the case instance |
string |
Path |
caseStageId |
identifier of the stage within case instance where adhoc fragment should be triggered |
string |
Path |
containerId |
container id that case instance belongs to |
string |
Path |
nodeName |
name of the adhoc fragment to be triggered |
string |
Body |
body |
optional data to be given when triggering adhoc fragment |
string |
HTTP Code | Description | Schema |
---|---|---|
404 |
Case instance not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/cases/instances/CASE-00000000001/stages/stageOne/tasks/string
{
"age": 25,
"person": {
"Person": {
"name": "john"
}
}
}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<map-type>
<entries>
<entry>
<key>age</key>
<value xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">25</value>
</entry>
<entry>
<key>person</key>
<value xsi:type="person" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<name>john</name>
</value>
</entry>
</entries>
</map-type>
POST /server/containers/{containerId}/cases/instances/{caseId}/tasks
Type | Name | Description | Schema |
---|---|---|---|
Path |
caseId |
identifier of the case instance |
string |
Path |
containerId |
container id that case instance belongs to |
string |
Body |
body |
data for dynamic task (it represents task specification that drives the selection of the type of task) |
string |
HTTP Code | Description | Schema |
---|---|---|
404 |
Case instance not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/cases/instances/CASE-00000000001/tasks
{
"age": 25,
"person": {
"Person": {
"name": "john"
}
}
}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<map-type>
<entries>
<entry>
<key>age</key>
<value xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">25</value>
</entry>
<entry>
<key>person</key>
<value xsi:type="person" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<name>john</name>
</value>
</entry>
</entries>
</map-type>
PUT /server/containers/{containerId}/cases/instances/{caseId}/tasks/{nodeName}
Type | Name | Description | Schema |
---|---|---|---|
Path |
caseId |
identifier of the case instance |
string |
Path |
containerId |
container id that case instance belongs to |
string |
Path |
nodeName |
name of the adhoc fragment to be triggered |
string |
Body |
body |
optional data to be given when triggering adhoc fragment |
string |
HTTP Code | Description | Schema |
---|---|---|
404 |
Case instance not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/cases/instances/CASE-00000000001/tasks/sampleTask
{
"age": 25,
"person": {
"Person": {
"name": "john"
}
}
}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<map-type>
<entries>
<entry>
<key>age</key>
<value xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">25</value>
</entry>
<entry>
<key>person</key>
<value xsi:type="person" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<name>john</name>
</value>
</entry>
</entries>
</map-type>
POST /server/containers/{containerId}/cases/{caseDefId}/instances
Type | Name | Description | Schema |
---|---|---|---|
Path |
caseDefId |
case definition id that new instance should be created from |
string |
Path |
containerId |
container id where the case definition resides |
string |
Body |
body |
optional CaseFile with variables and/or case role assignments |
string |
HTTP Code | Description | Schema |
---|---|---|
201 |
Successfull response |
No Content |
404 |
Case definition or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/cases/CASE-0000000001/instances
{
"case-data" : {
"car" : "ford"
},
"case-user-assignments" : {
"insured" : "yoda",
"insuranceRepresentative" : "john"
},
"case-group-assignments" : { },
"case-data-restrictions" : { }
}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<case-file>
<data>
<entry>
<key>car</key>
<value xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">ford</value>
</entry>
</data>
<userAssignments>
<entry>
<key>insured</key>
<value>yoda</value>
</entry>
<entry>
<key>insuranceRepresentative</key>
<value>john</value>
</entry>
</userAssignments>
<groupAssignments/>
<accessRestrictions/>
</case-file>
CASE-0000000012
GET /server/containers/{containerId}/cases/{caseDefId}/instances
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
caseDefId |
case definition id that should be used to filter case instances |
string |
|
Path |
containerId |
container id that should be used to filter case instances |
string |
|
Query |
page |
optional pagination - at which page to start, defaults to 0 (meaning first) |
integer (int32) |
|
Query |
pageSize |
optional pagination - size of the result, defaults to 10 |
integer (int32) |
|
Query |
sort |
optional sort column, no default |
string |
|
Query |
sortOrder |
optional sort direction (asc, desc) - defaults to asc |
boolean |
|
Query |
status |
optional case instance status (open, closed, canceled) - defaults ot open (1) only |
< enum (open, closed, cancelled) > array(multi) |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/cases/CASE-00000000001/instances
{
"instances": [
{
"case-id": "IT-0000000006",
"case-description": "Order for IT hardware",
"case-owner": "baAdmin",
"case-status": 1,
"case-definition-id": "itorders.orderhardware",
"container-id": "itorders_1.0.0-SNAPSHOT",
"case-started-at": 1540474204152,
"case-completed-at": null,
"case-completion-msg": "",
"case-sla-compliance": 0,
"case-sla-due-date": null,
"case-file": null,
"case-milestones": null,
"case-stages": null,
"case-roles": null
},
{
"case-id": "IT-0000000011",
"case-description": "Order for IT hardware",
"case-owner": "baAdmin",
"case-status": 1,
"case-definition-id": "itorders.orderhardware",
"container-id": "itorders_1.0.0-SNAPSHOT6",
"case-started-at": 1540496734746,
"case-completed-at": null,
"case-completion-msg": "",
"case-sla-compliance": 0,
"case-sla-due-date": null,
"case-file": null,
"case-milestones": null,
"case-stages": null,
"case-roles": null
}
]
}
PUT /server/containers/{containerId}/cases/{caseDefId}/instances/{caseId}
Type | Name | Description | Schema |
---|---|---|---|
Path |
caseDefId |
case definition id that new instance should be created from |
string |
Path |
caseId |
identifier of the case instance |
string |
Path |
containerId |
container id where the case definition resides |
string |
Body |
body |
optional CaseFile with variables and/or case role assignments |
string |
HTTP Code | Description | Schema |
---|---|---|
404 |
Case instance not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/cases/evaluation/instances/string
{
"case-data" : {
"car" : "ford"
},
"case-user-assignments" : {
"insured" : "yoda",
"insuranceRepresentative" : "john"
},
"case-group-assignments" : { },
"case-data-restrictions" : { }
}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<case-file>
<data>
<entry>
<key>car</key>
<value xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">ford</value>
</entry>
</data>
<userAssignments>
<entry>
<key>insured</key>
<value>yoda</value>
</entry>
<entry>
<key>insuranceRepresentative</key>
<value>john</value>
</entry>
</userAssignments>
<groupAssignments/>
<accessRestrictions/>
</case-file>
GET /server/queries/cases
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Query |
filter |
case definition id or name that case definitions will be filtered by |
string |
|
Query |
page |
optional pagination - at which page to start, defaults to 0 (meaning first) |
integer (int32) |
|
Query |
pageSize |
optional pagination - size of the result, defaults to 10 |
integer (int32) |
|
Query |
sort |
optional sort column, no default |
string |
|
Query |
sortOrder |
optional sort direction (asc, desc) - defaults to asc |
boolean |
|
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/queries/cases?filter=string
{
"definitions": [
{
"name": "Order for IT hardware",
"id": "itorders.orderhardware",
"version": "1.0",
"case-id-prefix": "IT",
"container-id": "itorders_1.0.0-SNAPSHOT2",
"adhoc-fragments": [
{
"name": "Prepare hardware spec",
"type": "HumanTaskNode"
},
{
"name": "Milestone 1: Order placed",
"type": "MilestoneNode"
},
{
"name": "Milestone 2: Order shipped",
"type": "MilestoneNode"
},
{
"name": "Milestone 3: Delivered to customer",
"type": "MilestoneNode"
},
{
"name": "Hardware spec ready",
"type": "MilestoneNode"
},
{
"name": "Manager decision",
"type": "MilestoneNode"
}
],
"roles": {
"owner": 1,
"manager": 1,
"supplier": 2
},
"milestones": [
{
"milestone-name": "Milestone 1: Order placed",
"milestone-id": "_DCD97847-6E3C-4C5E-9EE3-221C04BE42ED",
"milestone-mandatory": false
},
{
"milestone-name": "Milestone 2: Order shipped",
"milestone-id": "_343B90CD-AA19-4894-B63C-3CE1906E6FD1",
"milestone-mandatory": false
},
{
"milestone-name": "Milestone 3: Delivered to customer",
"milestone-id": "_52AFA23F-C087-4519-B8F2-BABCC31D68A6",
"milestone-mandatory": false
},
{
"milestone-name": "Hardware spec ready",
"milestone-id": "_483CF785-96DD-40C1-9148-4CFAFAE5778A",
"milestone-mandatory": false
},
{
"milestone-name": "Manager decision",
"milestone-id": "_79953D58-25DB-4FD6-94A0-DFC6EA2D0339",
"milestone-mandatory": false
}
],
"stages": []
},
{
"name": "Order for IT hardware",
"id": "itorders.orderhardware",
"version": "1.0",
"case-id-prefix": "IT",
"container-id": "itorders_1.0.0-SNAPSHOT3",
"adhoc-fragments": [
{
"name": "Prepare hardware spec",
"type": "HumanTaskNode"
},
{
"name": "Milestone 1: Order placed",
"type": "MilestoneNode"
},
{
"name": "Milestone 2: Order shipped",
"type": "MilestoneNode"
},
{
"name": "Milestone 3: Delivered to customer",
"type": "MilestoneNode"
},
{
"name": "Hardware spec ready",
"type": "MilestoneNode"
},
{
"name": "Manager decision",
"type": "MilestoneNode"
}
],
"roles": {
"owner": 1,
"manager": 1,
"supplier": 2
},
"milestones": [
{
"milestone-name": "Milestone 1: Order placed",
"milestone-id": "_DCD97847-6E3C-4C5E-9EE3-221C04BE42ED",
"milestone-mandatory": false
},
{
"milestone-name": "Milestone 2: Order shipped",
"milestone-id": "_343B90CD-AA19-4894-B63C-3CE1906E6FD1",
"milestone-mandatory": false
},
{
"milestone-name": "Milestone 3: Delivered to customer",
"milestone-id": "_52AFA23F-C087-4519-B8F2-BABCC31D68A6",
"milestone-mandatory": false
},
{
"milestone-name": "Hardware spec ready",
"milestone-id": "_483CF785-96DD-40C1-9148-4CFAFAE5778A",
"milestone-mandatory": false
},
{
"milestone-name": "Manager decision",
"milestone-id": "_79953D58-25DB-4FD6-94A0-DFC6EA2D0339",
"milestone-mandatory": false
}
],
"stages": []
}
]
}
GET /server/queries/cases/instances
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Query |
dataItemName |
data item name that case instances will be filtered by |
string |
|
Query |
dataItemValue |
data item value that case instances will be filtered by |
string |
|
Query |
owner |
case instance owner that case instances will be filtered by |
string |
|
Query |
page |
optional pagination - at which page to start, defaults to 0 (meaning first) |
integer (int32) |
|
Query |
pageSize |
optional pagination - size of the result, defaults to 10 |
integer (int32) |
|
Query |
sort |
optional sort column, no default |
string |
|
Query |
sortOrder |
optional sort direction (asc, desc) - defaults to asc |
boolean |
|
Query |
status |
optional case instance status (open, closed, canceled) - defaults ot open (1) only |
< enum (open, closed, cancelled) > array(multi) |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/queries/cases/instances
{
"instances": [
{
"case-id": "IT-0000000006",
"case-description": "Order for IT hardware",
"case-owner": "baAdmin",
"case-status": 1,
"case-definition-id": "itorders.orderhardware",
"container-id": "itorders_1.0.0-SNAPSHOT",
"case-started-at": 1540474204152,
"case-completed-at": null,
"case-completion-msg": "",
"case-sla-compliance": 0,
"case-sla-due-date": null,
"case-file": null,
"case-milestones": null,
"case-stages": null,
"case-roles": null
},
{
"case-id": "IT-0000000011",
"case-description": "Order for IT hardware",
"case-owner": "baAdmin",
"case-status": 1,
"case-definition-id": "itorders.orderhardware",
"container-id": "itorders_1.0.0-SNAPSHOT6",
"case-started-at": 1540496734746,
"case-completed-at": null,
"case-completion-msg": "",
"case-sla-compliance": 0,
"case-sla-due-date": null,
"case-file": null,
"case-milestones": null,
"case-stages": null,
"case-roles": null
}
]
}
GET /server/queries/cases/instances/{caseId}/caseFile
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
caseId |
case instance identifier that data items should belong to |
string |
|
Query |
name |
optionally filter by data item names |
< string > array(multi) |
|
Query |
page |
optional pagination - at which page to start, defaults to 0 (meaning first) |
integer (int32) |
|
Query |
pageSize |
optional pagination - size of the result, defaults to 10 |
integer (int32) |
|
Query |
type |
optionally filter by data item types |
< string > array(multi) |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/queries/cases/instances/CASE-0000000001/caseFile
{
"instances": [
{
"case-id": "IT-0000000006",
"name": "hwSpecNew",
"value": "New content for hardware specification.",
"type": "java.lang.String",
"last-modified-by": "baAdmin",
"last-modified": 1540502077279
},
{
"case-id": "IT-0000000006",
"name": "milestone-mandatory",
"value": "false",
"type": "java.lang.Boolean",
"last-modified-by": "baAdmin",
"last-modified": 1540499389943
}
]
}
GET /server/queries/cases/instances/{caseId}/tasks/instances/admins
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
caseId |
case instance identifier that tasks should belong to |
string |
|
Query |
page |
optional pagination - at which page to start, defaults to 0 (meaning first) |
integer (int32) |
|
Query |
pageSize |
optional pagination - size of the result, defaults to 10 |
integer (int32) |
|
Query |
sort |
optional sort column, no default |
string |
|
Query |
sortOrder |
optional sort direction (asc, desc) - defaults to asc |
boolean |
|
Query |
status |
optional task status (Created, Ready, Reserved, InProgress, Suspended, Completed, Failed, Error, Exited, Obsolete) |
< enum (Created, Ready, Reserved, InProgress, Suspended, Completed, Failed, Error, Exited, Obsolete) > array(multi) |
|
Query |
user |
optional user id to be used instead of authenticated user - only when bypass authenticated user is enabled |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/queries/cases/instances/CASE-00000000001/tasks/instances/admins
{
"task-summary": [
{
"task-id": "2",
"task-name": "Self Evaluation",
"task-subject": "",
"task-description": "Please perform a self-evalutation.",
"task-status": "Ready",
"task-priority": "0",
"task-is-skippable": "false",
"task-created-by": "John",
"task-created-on": "2016-04-05T15:09:14.206+02:00",
"task-activation-time": "2016-04-05T15:09:14.206+02:00",
"task-proc-inst-id": "2",
"task-proc-def-id": "evaluation",
"task-container-id": "myContainer",
"task-parent-id": "-1"
},
{
"task-id": "1",
"task-name": "Self Evaluation",
"task-subject": "",
"task-description": "Please perform a self-evalutation.",
"task-status": "InProgress",
"task-priority": "0",
"task-is-skippable": "false",
"task-actual-owner": "kiesu",
"task-created-by": "John",
"task-created-on": "2016-04-05T15:05:06.508+02:00",
"task-activation-time": "2016-04-05T15:05:06.508+02:00",
"task-proc-inst-id": "1",
"task-proc-def-id": "evaluation",
"task-container-id": "myContainer",
"task-parent-id": "-1"
}
]
}
GET /server/queries/cases/instances/{caseId}/tasks/instances/pot-owners
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
caseId |
case instance identifier that tasks should belong to |
string |
|
Query |
page |
optional pagination - at which page to start, defaults to 0 (meaning first) |
integer (int32) |
|
Query |
pageSize |
optional pagination - size of the result, defaults to 10 |
integer (int32) |
|
Query |
sort |
optional sort column, no default |
string |
|
Query |
sortOrder |
optional sort direction (asc, desc) - defaults to asc |
boolean |
|
Query |
status |
optional task status (Created, Ready, Reserved, InProgress, Suspended, Completed, Failed, Error, Exited, Obsolete) |
< enum (Created, Ready, Reserved, InProgress, Suspended, Completed, Failed, Error, Exited, Obsolete) > array(multi) |
|
Query |
user |
optional user id to be used instead of authenticated user - only when bypass authenticated user is enabled |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/queries/cases/instances/CASE-00000000011/tasks/instances/pot-owners
{
"task-summary": [
{
"task-id": "2",
"task-name": "Self Evaluation",
"task-subject": "",
"task-description": "Please perform a self-evalutation.",
"task-status": "Ready",
"task-priority": "0",
"task-is-skippable": "false",
"task-created-by": "John",
"task-created-on": "2016-04-05T15:09:14.206+02:00",
"task-activation-time": "2016-04-05T15:09:14.206+02:00",
"task-proc-inst-id": "2",
"task-proc-def-id": "evaluation",
"task-container-id": "myContainer",
"task-parent-id": "-1"
},
{
"task-id": "1",
"task-name": "Self Evaluation",
"task-subject": "",
"task-description": "Please perform a self-evalutation.",
"task-status": "InProgress",
"task-priority": "0",
"task-is-skippable": "false",
"task-actual-owner": "kiesu",
"task-created-by": "John",
"task-created-on": "2016-04-05T15:05:06.508+02:00",
"task-activation-time": "2016-04-05T15:05:06.508+02:00",
"task-proc-inst-id": "1",
"task-proc-def-id": "evaluation",
"task-container-id": "myContainer",
"task-parent-id": "-1"
}
]
}
GET /server/queries/cases/instances/{caseId}/tasks/instances/stakeholders
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
caseId |
case instance identifier that tasks should belong to |
string |
|
Query |
page |
optional pagination - at which page to start, defaults to 0 (meaning first) |
integer (int32) |
|
Query |
pageSize |
optional pagination - size of the result, defaults to 10 |
integer (int32) |
|
Query |
sort |
optional sort column, no default |
string |
|
Query |
sortOrder |
optional sort direction (asc, desc) - defaults to asc |
boolean |
|
Query |
status |
optional task status (Created, Ready, Reserved, InProgress, Suspended, Completed, Failed, Error, Exited, Obsolete) |
< enum (Created, Ready, Reserved, InProgress, Suspended, Completed, Failed, Error, Exited, Obsolete) > array(multi) |
|
Query |
user |
optional user id to be used instead of authenticated user - only when bypass authenticated user is enabled |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/queries/cases/instances/CASE-0000000001/tasks/instances/stakeholders
{
"task-summary": [
{
"task-id": "2",
"task-name": "Self Evaluation",
"task-subject": "",
"task-description": "Please perform a self-evalutation.",
"task-status": "Ready",
"task-priority": "0",
"task-is-skippable": "false",
"task-created-by": "John",
"task-created-on": "2016-04-05T15:09:14.206+02:00",
"task-activation-time": "2016-04-05T15:09:14.206+02:00",
"task-proc-inst-id": "2",
"task-proc-def-id": "evaluation",
"task-container-id": "myContainer",
"task-parent-id": "-1"
},
{
"task-id": "1",
"task-name": "Self Evaluation",
"task-subject": "",
"task-description": "Please perform a self-evalutation.",
"task-status": "InProgress",
"task-priority": "0",
"task-is-skippable": "false",
"task-actual-owner": "kiesu",
"task-created-by": "John",
"task-created-on": "2016-04-05T15:05:06.508+02:00",
"task-activation-time": "2016-04-05T15:05:06.508+02:00",
"task-proc-inst-id": "1",
"task-proc-def-id": "evaluation",
"task-container-id": "myContainer",
"task-parent-id": "-1"
}
]
}
GET /server/queries/cases/processes
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Query |
filter |
process definition id or name that process definitions will be filtered by |
string |
|
Query |
page |
optional pagination - at which page to start, defaults to 0 (meaning first) |
integer (int32) |
|
Query |
pageSize |
optional pagination - size of the result, defaults to 10 |
integer (int32) |
|
Query |
sort |
optional sort column, no default |
string |
|
Query |
sortOrder |
optional sort direction (asc, desc) - defaults to asc |
boolean |
|
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/queries/cases/processes?filter=string
{
"processes": [
{
"associatedEntities": null,
"serviceTasks": null,
"processVariables": null,
"reusableSubProcesses": null,
"process-id": "Employee_Rostering.Process1",
"process-name": "Process1",
"process-version": "1.0",
"package": "employeerostering.employeerostering",
"container-id": "employee-rostering",
"dynamic": false
}
]
}
GET /server/queries/cases/{caseRoleName}/instances
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
caseRoleName |
case role that instances should be found for |
string |
|
Query |
page |
optional pagination - at which page to start, defaults to 0 (meaning first) |
integer (int32) |
|
Query |
pageSize |
optional pagination - size of the result, defaults to 10 |
integer (int32) |
|
Query |
sort |
optional sort column, no default |
string |
|
Query |
sortOrder |
optional sort direction (asc, desc) - defaults to asc |
boolean |
|
Query |
status |
optional case instance status (open, closed, canceled) - defaults ot open (1) only |
< enum (open, closed, cancelled) > array(multi) |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/queries/cases/owner/instances
{
"instances": [
{
"case-id": "IT-0000000006",
"case-description": "Order for IT hardware",
"case-owner": "baAdmin",
"case-status": 1,
"case-definition-id": "itorders.orderhardware",
"container-id": "itorders_1.0.0-SNAPSHOT",
"case-started-at": 1540474204152,
"case-completed-at": null,
"case-completion-msg": "",
"case-sla-compliance": 0,
"case-sla-due-date": null,
"case-file": null,
"case-milestones": null,
"case-stages": null,
"case-roles": null
},
{
"case-id": "IT-0000000011",
"case-description": "Order for IT hardware",
"case-owner": "baAdmin",
"case-status": 1,
"case-definition-id": "itorders.orderhardware",
"container-id": "itorders_1.0.0-SNAPSHOT6",
"case-started-at": 1540496734746,
"case-completed-at": null,
"case-completion-msg": "",
"case-sla-compliance": 0,
"case-sla-due-date": null,
"case-file": null,
"case-milestones": null,
"case-stages": null,
"case-roles": null
}
]
}
GET /server/queries/cases/{containerId}/processes
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
containerId |
container id that process definitions should be filtered by |
string |
|
Query |
page |
optional pagination - at which page to start, defaults to 0 (meaning first) |
integer (int32) |
|
Query |
pageSize |
optional pagination - size of the result, defaults to 10 |
integer (int32) |
|
Query |
sort |
optional sort column, no default |
string |
|
Query |
sortOrder |
optional sort direction (asc, desc) - defaults to asc |
boolean |
|
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/queries/cases/evaluation_1.0.0-SNAPSHOT/processes
{
"processes": [
{
"associatedEntities": null,
"serviceTasks": null,
"processVariables": null,
"reusableSubProcesses": null,
"process-id": "Employee_Rostering.Process1",
"process-name": "Process1",
"process-version": "1.0",
"package": "employeerostering.employeerostering",
"container-id": "employee-rostering",
"dynamic": false
}
]
}
GET /server/queries/definitions
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Query |
page |
optional pagination - at which page to start, defaults to 0 (meaning first) |
integer (int32) |
|
Query |
pageSize |
optional pagination - size of the result, defaults to 10 |
integer (int32) |
|
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/queries/definitions
{
"queries": [
{
"query-name": "tasksMonitoring",
"query-source": "java:jboss/datasources/ExampleDS",
"query-expression": "select p.processName, p.externalId, t.taskId, t.taskName, t.status, t.createdDate, t.startDate, t.endDate, t.processInstanceId, t.userId, t.duration from ProcessInstanceLog p inner join BAMTaskSummary t on (t.processInstanceId = p.processInstanceId) inner join (select min(pk) as pk from BAMTaskSummary group by taskId) d on t.pk = d.pk",
"query-target": "CUSTOM",
"query-columns": {}
},
{
"query-name": "jbpmExecutionErrorList",
"query-source": "java:jboss/datasources/ExampleDS",
"query-expression": "select eri.ERROR_ACK, eri.ERROR_ACK_BY, eri.ERROR_ACK_AT, eri.ACTIVITY_ID, eri.ACTIVITY_NAME, eri.DEPLOYMENT_ID, eri.ERROR_DATE, eri.ERROR_ID, eri.ERROR_MSG, eri.JOB_ID, eri.PROCESS_ID, eri.PROCESS_INST_ID, eri.ERROR_TYPE from ExecutionErrorInfo eri",
"query-target": "CUSTOM",
"query-columns": {}
},
{
"query-name": "jbpmRequestList",
"query-source": "java:jboss/datasources/ExampleDS",
"query-expression": "select ri.id, ri.timestamp, ri.status, ri.commandName, ri.message, ri.businessKey, ri.retries, ri.executions, pil.processName, pil.processInstanceId, pil.processInstanceDescription, ri.deploymentId from RequestInfo ri left join ProcessInstanceLog pil on pil.processInstanceId=ri.processInstanceId",
"query-target": "CUSTOM",
"query-columns": {}
}
]
}
POST /server/queries/definitions/containers/{containerId}/query/{queryName}/filtered-data
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
containerId |
container id to filter queries |
string |
|
Path |
queryName |
identifier of the query definition to be used for query |
string |
|
Query |
builder |
optional identifier of the query builder to be used for query conditions |
string |
|
Query |
mapper |
identifier of the query mapper to be used when transforming results |
string |
|
Query |
page |
optional pagination - at which page to start, defaults to 0 (meaning first) |
integer (int32) |
|
Query |
pageSize |
optional pagination - size of the result, defaults to 10 |
integer (int32) |
|
Body |
body |
optional query filter specification represented as QueryFilterSpec |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
400 |
Query parameters or filter spec provide invalid conditions |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
application/json
application/xml
/server/queries/definitions/containers/evaluation_1.0.0-SNAPSHOT/query/customQuery/filtered-data?mapper=string
{
"order-by" : null,
"order-asc" : false,
"query-params" : [ {
"cond-column" : "processinstanceid",
"cond-operator" : "GREATER_THAN",
"cond-values" : [ 9 ]
} ],
"result-column-mapping" : null,
"order-by-clause" : null
}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<query-filter-spec>
<order-asc>false</order-asc>
<query-params>
<cond-column>processinstanceid</cond-column>
<cond-operator>GREATER_THAN</cond-operator>
<cond-values xsi:type="xs:long" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">9</cond-values>
</query-params>
</query-filter-spec>
{
"process-instance": [
{
"process-instance-id": 1,
"process-id": "Employee_Rostering.Process1",
"process-name": "Process1",
"process-version": "1.0",
"process-instance-state": 1,
"container-id": "employee-rostering",
"initiator": "baAdmin",
"start-date": {
"java.util.Date": 1539184095041
},
"process-instance-desc": "Process1",
"correlation-key": "1",
"parent-instance-id": -1,
"sla-compliance": 0,
"sla-due-date": null,
"active-user-tasks": null,
"process-instance-variables": null
},
{
"process-instance-id": 2,
"process-id": "Employee_Rostering.Process2",
"process-name": "Process2",
"process-version": "1.0",
"process-instance-state": 1,
"container-id": "employee-rostering",
"initiator": "baAdmin",
"start-date": {
"java.util.Date": 1539184303976
},
"process-instance-desc": "Process2",
"correlation-key": "2",
"parent-instance-id": -1,
"sla-compliance": 0,
"sla-due-date": null,
"active-user-tasks": null,
"process-instance-variables": null
}
]
}
POST /server/queries/definitions/{queryName}
Type | Name | Description | Schema |
---|---|---|---|
Path |
queryName |
identifier of the query definition to be registered |
string |
Body |
body |
query definition represented as QueryDefinition |
string |
HTTP Code | Description | Schema |
---|---|---|
201 |
Successfull response |
No Content |
409 |
Query with given name already exists |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
application/json
application/xml
/server/queries/definitions/customQuery
{
"query-name" : "allProcessInstances",
"query-source" : "jdbc/jbpm-ds",
"query-expression" : "select * from ProcessInstanceLog where status = 1",
"query-target" : "PROCESS",
"query-columns" : null
}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<query-definition>
<query-name>allProcessInstances</query-name>
<query-source>jdbc/jbpm-ds</query-source>
<query-expression>select * from ProcessInstanceLog where status = 1</query-expression>
<query-target>PROCESS</query-target>
<columns></columns>
</query-definition>
{
"query-name": "jbpmProcessInstancesWithVariables1",
"query-source": "java:jboss/datasources/ExampleDS",
"query-expression": "select vil.processInstanceId, vil.processId, vil.id, vil.variableId, vil.value from VariableInstanceLog vil where vil.id in (select MAX(v.id) from VariableInstanceLog v group by v.variableId, v.processInstanceId)",
"query-target": "CUSTOM",
"query-columns": {
"PROCESSINSTANCEID": "NUMBER",
"VARIABLEID": "LABEL",
"ID": "NUMBER",
"VALUE": "LABEL",
"PROCESSID": "LABEL"
}
}
GET /server/queries/definitions/{queryName}
Type | Name | Description | Schema |
---|---|---|---|
Path |
queryName |
identifier of the query definition to be retrieved |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
404 |
Query definition with given name not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/queries/definitions/customQuery
{
"query-name": "jbpmProcessInstancesWithVariables1",
"query-source": "java:jboss/datasources/ExampleDS",
"query-expression": "select vil.processInstanceId, vil.processId, vil.id, vil.variableId, vil.value from VariableInstanceLog vil where vil.id in (select MAX(v.id) from VariableInstanceLog v group by v.variableId, v.processInstanceId)",
"query-target": "CUSTOM",
"query-columns": {
"PROCESSINSTANCEID": "NUMBER",
"VARIABLEID": "LABEL",
"ID": "NUMBER",
"VALUE": "LABEL",
"PROCESSID": "LABEL"
}
}
PUT /server/queries/definitions/{queryName}
Type | Name | Description | Schema |
---|---|---|---|
Path |
queryName |
identifier of the query definition to be replaced |
string |
Body |
body |
query definition represented as QueryDefinition |
string |
HTTP Code | Description | Schema |
---|---|---|
201 |
Successfull response |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
application/json
application/xml
/server/queries/definitions/customQuery
{
"query-name" : "allProcessInstances",
"query-source" : "jdbc/jbpm-ds",
"query-expression" : "select * from ProcessInstanceLog where status = 1",
"query-target" : "PROCESS",
"query-columns" : null
}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<query-definition>
<query-name>allProcessInstances</query-name>
<query-source>jdbc/jbpm-ds</query-source>
<query-expression>select * from ProcessInstanceLog where status = 1</query-expression>
<query-target>PROCESS</query-target>
<columns></columns>
</query-definition>
{
"query-name": "jbpmProcessInstancesWithVariables1",
"query-source": "java:jboss/datasources/ExampleDS",
"query-expression": "select vil.processInstanceId, vil.processId, vil.id, vil.variableId, vil.value from VariableInstanceLog vil where vil.id in (select MAX(v.id) from VariableInstanceLog v group by v.variableId, v.processInstanceId)",
"query-target": "CUSTOM",
"query-columns": {
"PROCESSINSTANCEID": "NUMBER",
"VARIABLEID": "LABEL",
"ID": "NUMBER",
"VALUE": "LABEL",
"PROCESSID": "LABEL"
}
}
DELETE /server/queries/definitions/{queryName}
Type | Name | Description | Schema |
---|---|---|---|
Path |
queryName |
identifier of the query definition to be deleted |
string |
HTTP Code | Description | Schema |
---|---|---|
404 |
Query definition with given name not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/queries/definitions/customQuery
GET /server/queries/definitions/{queryName}/data
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
queryName |
identifier of the query definition to be used for query |
string |
|
Query |
mapper |
identifier of the query mapper to be used when transforming results |
string |
|
Query |
orderBy |
optional sort order |
string |
|
Query |
page |
optional pagination - at which page to start, defaults to 0 (meaning first) |
integer (int32) |
|
Query |
pageSize |
optional pagination - size of the result, defaults to 10 |
integer (int32) |
|
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
404 |
Query definition with given name not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/queries/definitions/customQuery/data?mapper=string
{
"process-instance": [
{
"process-instance-id": 1,
"process-id": "Employee_Rostering.Process1",
"process-name": "Process1",
"process-version": "1.0",
"process-instance-state": 1,
"container-id": "employee-rostering",
"initiator": "baAdmin",
"start-date": {
"java.util.Date": 1539184095041
},
"process-instance-desc": "Process1",
"correlation-key": "1",
"parent-instance-id": -1,
"sla-compliance": 0,
"sla-due-date": null,
"active-user-tasks": null,
"process-instance-variables": null
},
{
"process-instance-id": 2,
"process-id": "Employee_Rostering.Process2",
"process-name": "Process2",
"process-version": "1.0",
"process-instance-state": 1,
"container-id": "employee-rostering",
"initiator": "baAdmin",
"start-date": {
"java.util.Date": 1539184303976
},
"process-instance-desc": "Process2",
"correlation-key": "2",
"parent-instance-id": -1,
"sla-compliance": 0,
"sla-due-date": null,
"active-user-tasks": null,
"process-instance-variables": null
}
]
}
POST /server/queries/definitions/{queryName}/filtered-data
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
queryName |
identifier of the query definition to be used for query |
string |
|
Query |
builder |
optional identifier of the query builder to be used for query conditions |
string |
|
Query |
mapper |
identifier of the query mapper to be used when transforming results |
string |
|
Query |
page |
optional pagination - at which page to start, defaults to 0 (meaning first) |
integer (int32) |
|
Query |
pageSize |
optional pagination - size of the result, defaults to 10 |
integer (int32) |
|
Body |
body |
optional query filter specification represented as QueryFilterSpec |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
400 |
Query parameters or filter spec provide invalid conditions |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
application/json
application/xml
/server/queries/definitions/customQuery/filtered-data?mapper=string
{
"order-by" : null,
"order-asc" : false,
"query-params" : [ {
"cond-column" : "processinstanceid",
"cond-operator" : "GREATER_THAN",
"cond-values" : [ 9 ]
} ],
"result-column-mapping" : null,
"order-by-clause" : null
}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<query-filter-spec>
<order-asc>false</order-asc>
<query-params>
<cond-column>processinstanceid</cond-column>
<cond-operator>GREATER_THAN</cond-operator>
<cond-values xsi:type="xs:long" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">9</cond-values>
</query-params>
</query-filter-spec>
{
"process-instance": [
{
"process-instance-id": 1,
"process-id": "Employee_Rostering.Process1",
"process-name": "Process1",
"process-version": "1.0",
"process-instance-state": 1,
"container-id": "employee-rostering",
"initiator": "baAdmin",
"start-date": {
"java.util.Date": 1539184095041
},
"process-instance-desc": "Process1",
"correlation-key": "1",
"parent-instance-id": -1,
"sla-compliance": 0,
"sla-due-date": null,
"active-user-tasks": null,
"process-instance-variables": null
},
{
"process-instance-id": 2,
"process-id": "Employee_Rostering.Process2",
"process-name": "Process2",
"process-version": "1.0",
"process-instance-state": 1,
"container-id": "employee-rostering",
"initiator": "baAdmin",
"start-date": {
"java.util.Date": 1539184303976
},
"process-instance-desc": "Process2",
"correlation-key": "2",
"parent-instance-id": -1,
"sla-compliance": 0,
"sla-due-date": null,
"active-user-tasks": null,
"process-instance-variables": null
}
]
}
POST /server/containers/{containerId}/dmn
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
Container id to be used to evaluate decisions on |
string |
Body |
body |
DMN context to be used while evaluation decisions as DMNContextKS type |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
successful operation |
|
404 |
Container not found |
No Content |
500 |
Unexpected error |
No Content |
application/xml
application/json
application/xml
application/json
/server/containers/string/dmn
{
"type" : "SUCCESS",
"msg" : "string"
}
GET /server/containers/{containerId}/dmn
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
Container id that modesl should be loaded from |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
successful operation |
|
404 |
Models or container not found |
No Content |
500 |
Unexpected error |
No Content |
application/xml
application/json
/server/containers/string/dmn
{
"type" : "SUCCESS",
"msg" : "string"
}
POST /server/documents
Type | Name | Description | Schema |
---|---|---|---|
Body |
body |
document content represented as DocumentInstance |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
201 |
successful operation |
string |
500 |
Unexpected error |
No Content |
application/json
application/xml
application/json
application/xml
/server/documents
{
"document-name" : "first document",
"document-link" : null,
"document-size" : 17,
"document-last-mod" : {
"java.util.Date" : 1539936629148
},
"document-content" : "anVzdCB0ZXh0IGNvbnRlbnQ="
}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<document-instance>
<document-name>first document</document-name>
<document-size>17</document-size>
<document-last-mod>2018-10-19T10:10:28.914+02:00</document-last-mod>
<document-content>anVzdCB0ZXh0IGNvbnRlbnQ=</document-content>
</document-instance>
a03672e8-8671-4d84-bd14-0ab5a341b80d
"string"
GET /server/documents
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Query |
page |
optional pagination - at which page to start, defaults to 0 (meaning first) |
integer (int32) |
|
Query |
pageSize |
optional pagination - size of the result, defaults to 10 |
integer (int32) |
|
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/documents
{
"document-instances": [
{
"document-id": "001df463-2482-4dd5-abec-4622d16edaee",
"document-name": "MyDocument",
"document-link": "",
"document-size": 18,
"document-last-mod": {
"java.util.Date": 1539936629000
},
"document-content": null
},
{
"document-id": "651a7035-3a90-4a25-bffb-bb09ea14fdac",
"document-name": "MyDocument2",
"document-link": "",
"document-size": 18,
"document-last-mod": {
"java.util.Date": 1539936629000
},
"document-content": null
},
{
"document-id": "c10153e3-dfe7-41a9-811b-edd72c48f5d3",
"document-name": "MyDocument3",
"document-link": "",
"document-size": 18,
"document-last-mod": {
"java.util.Date": 1539936629000
},
"document-content": null
}
]
}
GET /server/documents/{documentId}
Type | Name | Description | Schema |
---|---|---|---|
Path |
documentId |
document id of a document that should be retruned |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
404 |
Document with given id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/documents/xxx-yyy-zzz
{
"document-id": "651a7035-3a90-4a25-bffb-bb09ea14fdac",
"document-name": "MyDocument",
"document-link": "",
"document-size": 18,
"document-last-mod": {
"java.util.Date": 1539936629000
},
"document-content": "VGhpcyBpcyBhIGRvY3VtZW50"
}
PUT /server/documents/{documentId}
Type | Name | Description | Schema |
---|---|---|---|
Path |
documentId |
document id of a document that should be updated |
string |
Body |
body |
document content represented as DocumentInstance |
string |
HTTP Code | Description | Schema |
---|---|---|
404 |
Document with given id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
application/json
application/xml
/server/documents/xxx-yyy-zzz
{
"document-name" : "first document",
"document-link" : null,
"document-size" : 17,
"document-last-mod" : {
"java.util.Date" : 1539936629148
},
"document-content" : "anVzdCB0ZXh0IGNvbnRlbnQ="
}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<document-instance>
<document-name>first document</document-name>
<document-size>17</document-size>
<document-last-mod>2018-10-19T10:10:28.914+02:00</document-last-mod>
<document-content>anVzdCB0ZXh0IGNvbnRlbnQ=</document-content>
</document-instance>
DELETE /server/documents/{documentId}
Type | Name | Description | Schema |
---|---|---|---|
Path |
documentId |
document id of a document that should be deleted |
string |
HTTP Code | Description | Schema |
---|---|---|
404 |
Document with given id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/documents/xxxx-yyy-zzz
GET /server/documents/{documentId}/content
Type | Name | Description | Schema |
---|---|---|---|
Path |
documentId |
document id of a document that content should be retruned from |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
successful operation |
< string (byte) > array |
404 |
Document with given id not found |
No Content |
500 |
Unexpected error |
No Content |
application/octet-stream
/server/documents/xxx-yyy-zzz/content
[ "Ynl0ZQ==" ]
POST /server/jobs
Type | Name | Description | Schema |
---|---|---|---|
Query |
containerId |
optional container id that the job should be associated with |
string |
Body |
body |
asynchronous job definition represented as JobRequestInstance |
string |
HTTP Code | Description | Schema |
---|---|---|
201 |
Successfull response |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
application/json
application/xml
/server/jobs
{
"job-command" : "org.jbpm.executor.commands.PrintOutCommand",
"scheduled-date" : {
"java.util.Date" : 1540023411655
},
"request-data" : {
"businessKey" : "test key"
}
}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<job-request-instance>
<job-command>org.jbpm.executor.commands.PrintOutCommand</job-command>
<scheduled-date>2018-10-20T10:16:51.326+02:00</scheduled-date>
<data>
<entry>
<key>businessKey</key>
<value xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">test key</value>
</entry>
</data>
</job-request-instance>
123
GET /server/jobs
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Query |
page |
optional pagination - at which page to start, defaults to 0 (meaning first) |
integer (int32) |
|
Query |
pageSize |
optional pagination - size of the result, defaults to 10 |
integer (int32) |
|
Query |
status |
optional job status (QUEUED, DONE, CANCELLED, ERROR, RETRYING, RUNNING) |
< enum (QUEUED, DONE, CANCELLED, ERROR, RETRYING, RUNNING) > array(multi) |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/jobs?status=QUEUED
{
"request-info-instance": [
{
"request-instance-id": 1,
"request-status": "DONE",
"request-business-key": "job1",
"request-message": "Ready to execute",
"request-retries": 2,
"request-executions": 1,
"request-command": "org.jbpm.executor.commands.LogCleanupCommand",
"request-scheduled-date": {
"java.util.Date": 1540299058209
},
"request-data": null,
"response-data": null,
"request-errors": null,
"request-container-id": null
},
{
"request-instance-id": 2,
"request-status": "DONE",
"request-business-key": "job2",
"request-message": "Ready to execute",
"request-retries": 0,
"request-executions": 0,
"request-command": "java.lang.String",
"request-scheduled-date": {
"java.util.Date": 1540328449419
},
"request-data": null,
"response-data": null,
"request-errors": null,
"request-container-id": null
}
]
}
GET /server/jobs/commands/{cmd}
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
cmd |
name of the command that asynchornous jobs should be found for |
string |
|
Query |
page |
optional pagination - at which page to start, defaults to 0 (meaning first) |
integer (int32) |
|
Query |
pageSize |
optional pagination - size of the result, defaults to 10 |
integer (int32) |
|
Query |
status |
optional job status (QUEUED, DONE, CANCELLED, ERROR, RETRYING, RUNNING) |
< enum (QUEUED, DONE, CANCELLED, ERROR, RETRYING, RUNNING) > array(multi) |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/jobs/commands/com.sample.CommandImpl
{
"request-info-instance": [
{
"request-instance-id": 1,
"request-status": "DONE",
"request-business-key": "job1",
"request-message": "Ready to execute",
"request-retries": 2,
"request-executions": 1,
"request-command": "org.jbpm.executor.commands.LogCleanupCommand",
"request-scheduled-date": {
"java.util.Date": 1540299058209
},
"request-data": null,
"response-data": null,
"request-errors": null,
"request-container-id": null
},
{
"request-instance-id": 2,
"request-status": "DONE",
"request-business-key": "job2",
"request-message": "Ready to execute",
"request-retries": 0,
"request-executions": 0,
"request-command": "java.lang.String",
"request-scheduled-date": {
"java.util.Date": 1540328449419
},
"request-data": null,
"response-data": null,
"request-errors": null,
"request-container-id": null
}
]
}
GET /server/jobs/containers/{containerId}
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
containerId |
identifier of the container that asynchornous jobs should be found for |
string |
|
Query |
page |
optional pagination - at which page to start, defaults to 0 (meaning first) |
integer (int32) |
|
Query |
pageSize |
optional pagination - size of the result, defaults to 10 |
integer (int32) |
|
Query |
status |
optional job status (QUEUED, DONE, CANCELLED, ERROR, RETRYING, RUNNING) |
< enum (QUEUED, DONE, CANCELLED, ERROR, RETRYING, RUNNING) > array(multi) |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/jobs/containers/evaluation_1.0.0-SNAPSHOT
{
"request-info-instance": [
{
"request-instance-id": 1,
"request-status": "DONE",
"request-business-key": "job1",
"request-message": "Ready to execute",
"request-retries": 2,
"request-executions": 1,
"request-command": "org.jbpm.executor.commands.LogCleanupCommand",
"request-scheduled-date": {
"java.util.Date": 1540299058209
},
"request-data": null,
"response-data": null,
"request-errors": null,
"request-container-id": null
},
{
"request-instance-id": 2,
"request-status": "DONE",
"request-business-key": "job2",
"request-message": "Ready to execute",
"request-retries": 0,
"request-executions": 0,
"request-command": "java.lang.String",
"request-scheduled-date": {
"java.util.Date": 1540328449419
},
"request-data": null,
"response-data": null,
"request-errors": null,
"request-container-id": null
}
]
}
GET /server/jobs/keys/{key}
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
key |
identifier of the business key that asynchornous jobs should be found for |
string |
|
Query |
page |
optional pagination - at which page to start, defaults to 0 (meaning first) |
integer (int32) |
|
Query |
pageSize |
optional pagination - size of the result, defaults to 10 |
integer (int32) |
|
Query |
status |
optional job status (QUEUED, DONE, CANCELLED, ERROR, RETRYING, RUNNING) |
< enum (QUEUED, DONE, CANCELLED, ERROR, RETRYING, RUNNING) > array(multi) |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/jobs/keys/custom-job
{
"request-info-instance": [
{
"request-instance-id": 1,
"request-status": "DONE",
"request-business-key": "job1",
"request-message": "Ready to execute",
"request-retries": 2,
"request-executions": 1,
"request-command": "org.jbpm.executor.commands.LogCleanupCommand",
"request-scheduled-date": {
"java.util.Date": 1540299058209
},
"request-data": null,
"response-data": null,
"request-errors": null,
"request-container-id": null
},
{
"request-instance-id": 2,
"request-status": "DONE",
"request-business-key": "job2",
"request-message": "Ready to execute",
"request-retries": 0,
"request-executions": 0,
"request-command": "java.lang.String",
"request-scheduled-date": {
"java.util.Date": 1540328449419
},
"request-data": null,
"response-data": null,
"request-errors": null,
"request-container-id": null
}
]
}
GET /server/jobs/processes/instances/{processInstanceId}
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
processInstanceId |
identifier of the process instance that asynchornous jobs should be found for |
integer (int64) |
|
Query |
page |
optional pagination - at which page to start, defaults to 0 (meaning first) |
integer (int32) |
|
Query |
pageSize |
optional pagination - size of the result, defaults to 10 |
integer (int32) |
|
Query |
status |
optional job status (QUEUED, DONE, CANCELLED, ERROR, RETRYING, RUNNING) |
< enum (QUEUED, DONE, CANCELLED, ERROR, RETRYING, RUNNING) > array(multi) |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/jobs/processes/instances/123
{
"request-info-instance": [
{
"request-instance-id": 1,
"request-status": "DONE",
"request-business-key": "job1",
"request-message": "Ready to execute",
"request-retries": 2,
"request-executions": 1,
"request-command": "org.jbpm.executor.commands.LogCleanupCommand",
"request-scheduled-date": {
"java.util.Date": 1540299058209
},
"request-data": null,
"response-data": null,
"request-errors": null,
"request-container-id": null
},
{
"request-instance-id": 2,
"request-status": "DONE",
"request-business-key": "job2",
"request-message": "Ready to execute",
"request-retries": 0,
"request-executions": 0,
"request-command": "java.lang.String",
"request-scheduled-date": {
"java.util.Date": 1540328449419
},
"request-data": null,
"response-data": null,
"request-errors": null,
"request-container-id": null
}
]
}
GET /server/jobs/{jobId}
Type | Name | Description | Schema |
---|---|---|---|
Path |
jobId |
identifier of the asynchronous job to be retrieved |
integer (int64) |
Query |
withData |
optional flag that indicats if input/output data should be loaded as well |
boolean |
Query |
withErrors |
optional flag that indicats if errors should be loaded as well |
boolean |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/jobs/123
{
"request-instance-id": 6,
"request-status": "DONE",
"request-business-key": "job3",
"request-message": "Ready to execute",
"request-retries": 5,
"request-executions": 1,
"request-command": "org.jbpm.executor.commands.LogCleanupCommand",
"request-scheduled-date": {
"java.util.Date": 1540385144520
},
"request-data": {
"retries": "5",
"businessKey": "job3"
},
"response-data": {
"RequestInfoLogsRemoved": 2,
"BAMLogRemoved": 0,
"VariableInstanceLogRemoved": 0,
"ProcessInstanceLogRemoved": 0,
"TaskAuditLogRemoved": 0,
"ErrorInfoLogsRemoved": 0,
"TaskEventLogRemoved": 0,
"TaskVariableLogRemoved": 0,
"NodeInstanceLogRemoved": 0
},
"request-errors": {
"error-info-instance": []
},
"request-container-id": null
}
PUT /server/jobs/{jobId}
Type | Name | Description | Schema |
---|---|---|---|
Path |
jobId |
identifier of the asynchronous job to be requeued |
integer (int64) |
HTTP Code | Description | Schema |
---|---|---|
500 |
Unexpected error |
No Content |
application/json
application/xml
application/json
application/xml
/server/jobs/123
DELETE /server/jobs/{jobId}
Type | Name | Description | Schema |
---|---|---|---|
Path |
jobId |
identifier of the asynchronous job to be canceled |
integer (int64) |
HTTP Code | Description | Schema |
---|---|---|
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/jobs/123
POST /server/jobs/{jobId}/data
Type | Name | Description | Schema |
---|---|---|---|
Path |
jobId |
identifier of the asynchronous job to be updated |
integer (int64) |
Query |
containerId |
optional container id that the job should be associated with |
string |
Body |
body |
data to be updated on the asynchronous job represented as Map |
string |
HTTP Code | Description | Schema |
---|---|---|
500 |
Unexpected error |
No Content |
application/json
application/xml
application/json
application/xml
/server/jobs/123/data
{
"age": 25,
"person": {
"Person": {
"name": "john"
}
}
}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<map-type>
<entries>
<entry>
<key>age</key>
<value xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">25</value>
</entry>
<entry>
<key>person</key>
<value xsi:type="person" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<name>john</name>
</value>
</entry>
</entries>
</map-type>
GET /server
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server
{
"response": [
{
"type": "SUCCESS",
"msg": "Kie Server info",
"result": {
"kie-server-info": {
"id": "default-kieserver",
"version": "7.11.0.Final-redhat-00001",
"name": "default-kieserver",
"location": "http://localhost:8080/kie-server/services/rest/server",
"capabilities": [
"KieServer",
"BRM",
"BPM",
"CaseMgmt",
"BPM-UI",
"BRP",
"DMN",
"Swagger"
],
"messages": [
{
"severity": "INFO",
"timestamp": {
"java.util.Date": 1538996199184
},
"content": [
"Server KieServerInfo{serverId='default-kieserver', version='7.11.0.Final-redhat-00001', name='default-kieserver', location='http://localhost:8080/kie-server/services/rest/server', capabilities=[KieServer, BRM, BPM, CaseMgmt, BPM-UI, BRP, DMN, Swagger], messages=null}started successfully at Mon Oct 08 06:56:39 EDT 2018"
]
}
]
}
}
}
]
}
POST /server/config
Type | Name | Description | Schema |
---|---|---|---|
Body |
body |
command script payload |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
application/json
application/xml
/server/config
{
"commands": [
{
"create-container": {
"container": {
"status": "STARTED",
"container-id": "command-script-container",
"release-id": {
"version": "1.0",
"group-id": "com.redhat",
"artifact-id": "Project1"
}
}
}
},
{
"call-container": {
"payload": "{\n \"commands\" : [ {\n \"fire-all-rules\" : {\n \"max\" : -1,\n \"out-identifier\" : null\n }\n } ]\n}",
"container-id": "command-script-container"
}
},
{
"dispose-container": {
"container-id": "command-script-container"
}
}
]
}
{
"response": [
{
"type": "SUCCESS",
"msg": "Container command-script-container successfully deployed with module com.redhat:Project1:1.0.",
"result": {
"kie-container": {
"container-id": "command-script-container",
"release-id": {
"group-id": "com.redhat",
"artifact-id": "Project1",
"version": "1.0"
},
"resolved-release-id": {
"group-id": "com.redhat",
"artifact-id": "Project1",
"version": "1.0"
},
"status": "DISPOSING",
"scanner": {
"status": "DISPOSED",
"poll-interval": null
},
"config-items": [],
"messages": [
{
"severity": "INFO",
"timestamp": {
"java.util.Date": 1538768011150
},
"content": [
"Container command-script-container successfully created with module com.redhat:Project1:1.0."
]
}
],
"container-alias": null
}
}
},
{
"type": "SUCCESS",
"msg": "Container command-script-container successfully called.",
"result": "{\n \"results\" : [ ],\n \"facts\" : [ ]\n}"
},
{
"type": "SUCCESS",
"msg": "Container command-script-container successfully disposed.",
"result": null
}
]
}
GET /server/containers
Type | Name | Description | Schema |
---|---|---|---|
Query |
artifactId |
optional artifactId to filter containers by |
string |
Query |
groupId |
optional groupId to filter containers by |
string |
Query |
status |
optional status to filter containers by |
string |
Query |
version |
optional version to filter containers by |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers
{
"response": [
{
"type": "SUCCESS",
"msg": "List of created containers",
"result": {
"kie-containers": {
"kie-container": [
{
"container-id": "MyProjectContainer",
"release-id": {
"group-id": "com.redhat",
"artifact-id": "Project1",
"version": "1.0"
},
"resolved-release-id": {
"group-id": "com.redhat",
"artifact-id": "Project1",
"version": "1.0"
},
"status": "STARTED",
"scanner": {
"status": "DISPOSED",
"poll-interval": null
},
"config-items": [
{
"itemName": "KBase",
"itemValue": "",
"itemType": "BPM"
},
{
"itemName": "KSession",
"itemValue": "",
"itemType": "BPM"
},
{
"itemName": "MergeMode",
"itemValue": "MERGE_COLLECTIONS",
"itemType": "BPM"
},
{
"itemName": "RuntimeStrategy",
"itemValue": "SINGLETON",
"itemType": "BPM"
}
],
"messages": [
{
"severity": "INFO",
"timestamp": {
"java.util.Date": 1538996205681
},
"content": [
"Container MyProjectContainer successfully created with module com.redhat:Project1:1.0."
]
}
],
"container-alias": "MyProjectContainer"
},
{
"container-id": "employe-rostering",
"release-id": {
"group-id": "employeerostering",
"artifact-id": "employeerostering",
"version": "1.0.0-SNAPSHOT"
},
"resolved-release-id": {
"group-id": "employeerostering",
"artifact-id": "employeerostering",
"version": "1.0.0-SNAPSHOT"
},
"status": "STARTED",
"scanner": {
"status": "DISPOSED",
"poll-interval": null
},
"config-items": [
{
"itemName": "KBase",
"itemValue": "",
"itemType": "BPM"
},
{
"itemName": "KSession",
"itemValue": "",
"itemType": "BPM"
},
{
"itemName": "MergeMode",
"itemValue": "MERGE_COLLECTIONS",
"itemType": "BPM"
},
{
"itemName": "RuntimeStrategy",
"itemValue": "SINGLETON",
"itemType": "BPM"
}
],
"messages": [
{
"severity": "INFO",
"timestamp": {
"java.util.Date": 1539029260330
},
"content": [
"Container employee-rostering successfully created with module employeerostering:employeerostering:1.0.0-SNAPSHOT."
]
}
],
"container-alias": "employeerostering"
}
]
}
}
}
]
}
GET /server/containers/{containerId}
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
Container id to be retrieved |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT
{
"response": [
{
"type": "SUCCESS",
"msg": "Info for container MyProjectContainer",
"result": {
"kie-containers": {
"kie-container": [
{
"container-id": "MyProjectContainer",
"release-id": {
"group-id": "com.redhat",
"artifact-id": "Project1",
"version": "1.0"
},
"resolved-release-id": {
"group-id": "com.redhat",
"artifact-id": "Project1",
"version": "1.0"
},
"status": "STARTED",
"scanner": {
"status": "DISPOSED",
"poll-interval": null
},
"config-items": [
{
"itemName": "KBase",
"itemValue": "",
"itemType": "BPM"
},
{
"itemName": "KSession",
"itemValue": "",
"itemType": "BPM"
},
{
"itemName": "MergeMode",
"itemValue": "MERGE_COLLECTIONS",
"itemType": "BPM"
},
{
"itemName": "RuntimeStrategy",
"itemValue": "SINGLETON",
"itemType": "BPM"
}
],
"messages": [
{
"severity": "INFO",
"timestamp": {
"java.util.Date": 1538996205681
},
"content": [
"Container MyProjectContainer successfully created with module com.redhat:Project1:1.0."
]
}
],
"container-alias": "MyProjectContainer"
}
]
}
}
}
]
}
PUT /server/containers/{containerId}
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
Container id to be assigned to deployed KIE Container |
string |
Body |
body |
KIE Container resource to be deployed as KieContainerResource |
string |
HTTP Code | Description | Schema |
---|---|---|
201 |
Successfull response |
No Content |
400 |
container could not be created |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT
{
"container-id" : "baz",
"release-id" : {
"group-id" : "foo",
"artifact-id" : "bar",
"version" : "1.0"
}
}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<kie-container container-id="baz">
<release-id>
<group-id>foo</group-id>
<artifact-id>bar</artifact-id>
<version>1.0</version>
</release-id>
</kie-container>
{
"response": [
{
"type": "SUCCESS",
"msg": "Container MyProjectContainer successfully deployed with module com.redhat:Project1:1.0.",
"result": {
"kie-container": {
"container-id": "MyProjectContainer",
"release-id": {
"artifact-id": "Project1",
"group-id": "com.redhat",
"version": "1.0"
},
"resolved-release-id": {
"artifact-id": "Project1",
"group-id": "com.redhat",
"version": "1.0"
},
"status": "STARTED",
"scanner": {
"status": "DISPOSED",
"poll-interval": null
},
"config-items": [
],
"messages": [
{
"severity": "INFO",
"timestamp": {
"java.util.Date": 1538756503852
},
"content": [
"Container MyProjectContainer successfully created with module com.redhat:Project1:1.0."
]
}
],
"container-alias": null
}
}
}
]
}
DELETE /server/containers/{containerId}
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
Container id to be disposed (undeployed) |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT
{
"response": [
{
"type": "SUCCESS",
"msg": "Container MyProjectContainer successfully disposed.",
"result": null
}
]
}
POST /server/containers/{containerId}/release-id
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
containerId |
Container id that release id should be upgraded |
string |
|
Query |
resetBeforeUpdate |
Determines whether active processes are aborted (reset) before updating when the server runs in development mode |
boolean |
|
Body |
body |
Release Id to be upgraded to as ReleaseId type |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/release-id
{
"group-id" : "foo",
"artifact-id" : "bar",
"version" : "1.0"
}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<release-id>
<group-id>foo</group-id>
<artifact-id>bar</artifact-id>
<version>1.0</version>
</release-id>
{
"response": [
{
"-type": "SUCCESS",
"-msg": "Release id successfully updated.",
"release-id": {
"artifact-id": "Project1",
"group-id": "com.redhat",
"version": "1.1"
}
}
]
}
GET /server/containers/{containerId}/release-id
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
Container id that release id should be loaded from |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/release-id
{
"response": [
{
"type": "SUCCESS",
"msg": "ReleaseId for container MyProjectContainer",
"result": {
"release-id": {
"group-id": "com.redhat",
"artifact-id": "Project1",
"version": "1.0"
}
}
}
]
}
POST /server/containers/{containerId}/scanner
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
Container id for scanner to be updated |
string |
Body |
body |
Scanner information given as KieScannerResource type |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/scanner
{
"status" : "STARTED",
"poll-interval" : "10000"
}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<kie-scanner poll-interval="10000" status="STARTED"/>
{
"response": [
{
"type": "SUCCESS",
"msg": "Kie scanner successfully created.",
"result": {
"kie-scanner": {
"status": "STARTED",
"poll-interval": 20
}
}
}
]
}
GET /server/containers/{containerId}/scanner
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
Container id for scanner to be loaded |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/scanner
{
"response": [
{
"type": "SUCCESS",
"msg": "Scanner info successfully retrieved",
"result": {
"kie-scanner": {
"status": "DISPOSED",
"poll-interval": null
}
}
}
]
}
PUT /server/containers/{containerId}/status/activated
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
Container id of deployed KIE Container |
string |
HTTP Code | Description | Schema |
---|---|---|
201 |
Successfull response |
No Content |
400 |
container could not be activated |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/status/activated
{
"response": [
{
"type": "SUCCESS",
"msg": "Container MyProjectContainer successfully deployed with module com.redhat:Project1:1.0.",
"result": {
"kie-container": {
"container-id": "MyProjectContainer",
"release-id": {
"artifact-id": "Project1",
"group-id": "com.redhat",
"version": "1.0"
},
"resolved-release-id": {
"artifact-id": "Project1",
"group-id": "com.redhat",
"version": "1.0"
},
"status": "STARTED",
"scanner": {
"status": "DISPOSED",
"poll-interval": null
},
"config-items": [
],
"messages": [
{
"severity": "INFO",
"timestamp": {
"java.util.Date": 1538756503852
},
"content": [
"Container MyProjectContainer successfully created with module com.redhat:Project1:1.0."
]
}
],
"container-alias": null
}
}
}
]
}
PUT /server/containers/{containerId}/status/deactivated
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
Container id of deployed KIE Container |
string |
HTTP Code | Description | Schema |
---|---|---|
201 |
Successfull response |
No Content |
400 |
container could not be deactivated |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/status/deactivated
{
"response": [
{
"type": "SUCCESS",
"msg": "Container MyProjectContainer successfully deployed with module com.redhat:Project1:1.0.",
"result": {
"kie-container": {
"container-id": "MyProjectContainer",
"release-id": {
"artifact-id": "Project1",
"group-id": "com.redhat",
"version": "1.0"
},
"resolved-release-id": {
"artifact-id": "Project1",
"group-id": "com.redhat",
"version": "1.0"
},
"status": "DEACTIVATED",
"scanner": {
"status": "DISPOSED",
"poll-interval": null
},
"config-items": [
],
"messages": [
{
"severity": "INFO",
"timestamp": {
"java.util.Date": 1538756503852
},
"content": [
"Container MyProjectContainer successfully created with module com.redhat:Project1:1.0."
]
}
],
"container-alias": null
}
}
}
]
}
GET /server/healthcheck
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Query |
report |
optional report flag to return detailed report of the check, defaults to false |
boolean |
|
HTTP Code | Description | Schema |
---|---|---|
200 |
successful operation |
< kie-message > array |
503 |
If any of the checks failed |
No Content |
application/json
application/xml
/server/healthcheck
[ {
"severity" : "INFO",
"timestamp" : "1970-01-01T00:00:00Z",
"content" : [ "string" ]
} ]
GET /server/readycheck
HTTP Code | Description | Schema |
---|---|---|
503 |
Service not yet available |
No Content |
text/plain
/server/readycheck
GET /server/state
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/state
{
"response": [
{
"type": "SUCCESS",
"msg": "Successfully loaded server state for server id default-kieserver",
"result": {
"kie-server-state-info": {
"controller": [
"http://localhost:8080/business-central/rest/controller"
],
"config": {
"config-items": [
{
"itemName": "org.kie.server.location",
"itemValue": "http://localhost:8080/kie-server/services/rest/server",
"itemType": "java.lang.String"
},
{
"itemName": "org.kie.server.controller.user",
"itemValue": "controllerUser",
"itemType": "java.lang.String"
},
{
"itemName": "org.kie.server.controller",
"itemValue": "http://localhost:8080/business-central/rest/controller",
"itemType": "java.lang.String"
}
]
},
"containers": [
{
"container-id": "employee-rostering",
"release-id": {
"group-id": "employeerostering",
"artifact-id": "employeerostering",
"version": "1.0.0-SNAPSHOT"
},
"resolved-release-id": null,
"status": "STARTED",
"scanner": {
"status": "STOPPED",
"poll-interval": null
},
"config-items": [
{
"itemName": "KBase",
"itemValue": "",
"itemType": "BPM"
},
{
"itemName": "KSession",
"itemValue": "",
"itemType": "BPM"
},
{
"itemName": "MergeMode",
"itemValue": "MERGE_COLLECTIONS",
"itemType": "BPM"
},
{
"itemName": "RuntimeStrategy",
"itemValue": "SINGLETON",
"itemType": "BPM"
}
],
"messages": [],
"container-alias": "employeerostering"
}
]
}
}
}
]
}
POST /server/containers/instances/{containerId}
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
Container id where rules should be evaluated on |
string |
Body |
body |
Commands to be executed on rule engine given as BatchExecutionCommand type |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
successful operation |
|
500 |
Unexpected error |
No Content |
application/xml
application/json
application/xml
application/json
/server/containers/instances/string
{
"type" : "SUCCESS",
"msg" : "string"
}
GET /server/containers/{containerId}/solvers
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id where the solvers reside |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
successful operation |
|
404 |
Container does not exist or failure in creating solver |
No Content |
500 |
Unexpected error |
No Content |
application/xml
application/json
/server/containers/string/solvers
{
"solver" : [ {
"container-id" : "string",
"solver-id" : "string",
"solver-config-file" : "string",
"status" : "NOT_SOLVING",
"score" : {
"value" : "string"
},
"best-solution" : "object"
} ]
}
GET /server/containers/{containerId}/solvers/{solverId}
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id where the solver resides |
string |
Path |
solverId |
identifier of the solver |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
successful operation |
|
404 |
Container does not exist or failure in creating solver |
No Content |
500 |
Unexpected error |
No Content |
application/xml
application/json
/server/containers/string/solvers/string
{
"container-id" : "string",
"solver-id" : "string",
"solver-config-file" : "string",
"status" : "NOT_SOLVING",
"score" : {
"value" : "string"
},
"best-solution" : "object"
}
PUT /server/containers/{containerId}/solvers/{solverId}
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id where the solver config resides |
string |
Path |
solverId |
identifier of the solver to create |
string |
Body |
body |
solver instance details as SolverInstance type |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
successful operation |
|
400 |
Container does not exist or failure in creating solver |
No Content |
500 |
Unexpected error |
No Content |
application/xml
application/json
application/xml
application/json
/server/containers/string/solvers/string
{
"container-id" : "string",
"solver-id" : "string",
"solver-config-file" : "string",
"status" : "NOT_SOLVING",
"score" : {
"value" : "string"
},
"best-solution" : "object"
}
DELETE /server/containers/{containerId}/solvers/{solverId}
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id where the solver resides |
string |
Path |
solverId |
identifier of the solver |
string |
HTTP Code | Description | Schema |
---|---|---|
404 |
Container does not exist or failure in creating solver |
No Content |
500 |
Unexpected error |
No Content |
application/xml
application/json
/server/containers/string/solvers/string
GET /server/containers/{containerId}/solvers/{solverId}/bestsolution
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id where the solver resides |
string |
Path |
solverId |
identifier of the solver |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
successful operation |
|
404 |
Container does not exist or failure in creating solver |
No Content |
500 |
Unexpected error |
No Content |
application/xml
application/json
/server/containers/string/solvers/string/bestsolution
{
"container-id" : "string",
"solver-id" : "string",
"solver-config-file" : "string",
"status" : "NOT_SOLVING",
"score" : {
"value" : "string"
},
"best-solution" : "object"
}
POST /server/containers/{containerId}/solvers/{solverId}/problemfactchanges
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id where the solver resides |
string |
Path |
solverId |
identifier of the solver |
string |
Body |
body |
Problem fact changes, either single one or a list of them |
string |
HTTP Code | Description | Schema |
---|---|---|
400 |
Container does not exist or failure in creating solver |
No Content |
500 |
Unexpected error |
No Content |
application/xml
application/json
/server/containers/string/solvers/string/problemfactchanges
GET /server/containers/{containerId}/solvers/{solverId}/problemfactchanges/processed
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id where the solver resides |
string |
Path |
solverId |
identifier of the solver |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
successful operation |
boolean |
404 |
Container does not exist or failure in creating solver |
No Content |
500 |
Unexpected error |
No Content |
application/xml
application/json
/server/containers/string/solvers/string/problemfactchanges/processed
true
POST /server/containers/{containerId}/solvers/{solverId}/state/solving
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id where the solver resides |
string |
Path |
solverId |
identifier of the solver |
string |
Body |
body |
planning problem |
string |
HTTP Code | Description | Schema |
---|---|---|
404 |
Container does not exist or failure in creating solver |
No Content |
500 |
Unexpected error |
No Content |
application/xml
application/json
/server/containers/string/solvers/string/state/solving
POST /server/containers/{containerId}/solvers/{solverId}/state/terminating-early
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id where the solver resides |
string |
Path |
solverId |
identifier of the solver |
string |
HTTP Code | Description | Schema |
---|---|---|
400 |
Container does not exist or failure in creating solver |
No Content |
500 |
Unexpected error |
No Content |
application/xml
application/json
/server/containers/string/solvers/string/state/terminating-early
GET /server/containers/{containerId}/processes/definitions/{processId}
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id where the process definition resides |
string |
Path |
processId |
process id that the definition should be retrieved for |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
404 |
Process or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/processes/definitions/evaluation
{
"associatedEntities": {
"Qualify": [
"approver"
],
"Final Approval": [
"manager"
],
"Correct Data": [
"broker"
],
"Increase Down Payment": [
"broker"
]
},
"serviceTasks": {},
"processVariables": {
"inlimit": "Boolean",
"application": "com.myspace.mortgage_app.Application",
"incdownpayment": "Boolean"
},
"reusableSubProcesses": [],
"process-id": "Mortgage_Process.MortgageApprovalProcess",
"process-name": "MortgageApprovalProcess",
"process-version": "1.0",
"package": "com.myspace.mortgage_app",
"container-id": "mortgage-process_1.0.0-SNAPSHOT",
"dynamic": false
}
GET /server/containers/{containerId}/processes/definitions/{processId}/entities
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id where the process definition resides |
string |
Path |
processId |
process id that the involved actors and groups should be retrieved from |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
404 |
Process or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/processes/definitions/evaluation/entities
{
"associatedEntities": {
"Qualify": [
"approver"
],
"Final Approval": [
"manager"
],
"Correct Data": [
"broker"
],
"Increase Down Payment": [
"broker"
]
}
}
GET /server/containers/{containerId}/processes/definitions/{processId}/subprocesses
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id where the process definition resides |
string |
Path |
processId |
process id that subprocesses should be retrieved from |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
404 |
Process or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/processes/definitions/evaluation/subprocesses
{
"subProcesses" : [ "evaluation" ]
}
GET /server/containers/{containerId}/processes/definitions/{processId}/tasks/service
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id where the process definition resides |
string |
Path |
processId |
process id that the service task definitions should be retrieved from |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
404 |
Process or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/processes/definitions/evaluation/tasks/service
{
"serviceTasks" : {
"Email results" : "Email"
}
}
GET /server/containers/{containerId}/processes/definitions/{processId}/tasks/users
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id where the process definition resides |
string |
Path |
processId |
process id that the user task definitions should be retrieved from |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
404 |
Process or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/processes/definitions/evaluation/tasks/users
{
"task": [
{
"associatedEntities": [
"broker"
],
"taskInputMappings": {
"application": "com.myspace.mortgage_app.Application",
"TaskName": "String",
"Skippable": "Object",
"GroupId": "Object"
},
"taskOutputMappings": {
"application": "com.myspace.mortgage_app.Application"
},
"task-id": "6",
"task-name": "Correct Data",
"task-priority": 0,
"task-comment": "",
"task-created-by": "",
"task-skippable": false,
"task-form-name": "CorrectData"
},
{
"associatedEntities": [
"approver"
],
"taskInputMappings": {
"application": "com.myspace.mortgage_app.Application",
"TaskName": "String",
"Skippable": "Object",
"GroupId": "Object"
},
"taskOutputMappings": {
"inlimit": "Boolean"
},
"task-id": "8",
"task-name": "Qualify",
"task-priority": 0,
"task-comment": "",
"task-created-by": "",
"task-skippable": false,
"task-form-name": "Qualify"
},
{
"associatedEntities": [
"manager"
],
"taskInputMappings": {
"inlimit": "Boolean",
"application": "com.myspace.mortgage_app.Application",
"TaskName": "String",
"Skippable": "Object",
"GroupId": "Object"
},
"taskOutputMappings": {},
"task-id": "10",
"task-name": "Final Approval",
"task-priority": 0,
"task-comment": "",
"task-created-by": "",
"task-skippable": false,
"task-form-name": "FinalApproval"
}
]
}
GET /server/containers/{containerId}/processes/definitions/{processId}/tasks/users/{taskName}/inputs
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id where the process definition resides |
string |
Path |
processId |
process id that given task belongs to |
string |
Path |
taskName |
task name that input variable definitions should be retrieved for |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
404 |
Process or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/processes/definitions/evaluation/tasks/users/Review/inputs
{
"taskInputs": {
"inlimit": "Boolean",
"application": "com.myspace.mortgage_app.Application",
"TaskName": "String",
"Skippable": "Object",
"GroupId": "Object"
}
}
GET /server/containers/{containerId}/processes/definitions/{processId}/tasks/users/{taskName}/outputs
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id where the process definition resides |
string |
Path |
processId |
process id that given task belongs to |
string |
Path |
taskName |
task name that output variable definitions should be retrieved for |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
404 |
Process or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/processes/definitions/evaluation/tasks/users/Review/outputs
{
"taskOutputs": {
"application": "com.myspace.mortgage_app.Application"
}
}
GET /server/containers/{containerId}/processes/definitions/{processId}/variables
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id where the process definition resides |
string |
Path |
processId |
process id that the variable definitions should be retrieved from |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
404 |
Process or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/processes/definitions/evaluation/variables
{
"variables": {
"inlimit": "Boolean",
"application": "com.myspace.mortgage_app.Application",
"incdownpayment": "Boolean"
}
}
GET /server/containers/{containerId}/forms/cases/{caseDefId}/content
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
caseDefId |
identifier of case definition that form should be fetched for |
string |
|
Path |
containerId |
container id that case definition belongs to |
string |
|
Query |
renderer |
optional renderer name that the form should be rendered with |
string |
|
HTTP Code | Description | Schema |
---|---|---|
200 |
successful operation |
string |
404 |
Case, form or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
text/html
/server/containers/evaluation_1.0.0-SNAPSHOT/forms/cases/orderhardware/content
"string"
GET /server/containers/{containerId}/forms/processes/{processId}
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
containerId |
container id that process definition belongs to |
string |
|
Path |
processId |
identifier of process definition that form should be fetched for |
string |
|
Query |
filter |
optional filter flag if form should be filtered or returned as is |
boolean |
|
Query |
lang |
optional language that the form should be found for |
string |
|
Query |
marshallContent |
optional marshall content flag if the content should be transformed or not, defaults to true |
boolean |
|
Query |
type |
optional type of the form, defaults to ANY so system will find the most current one |
string |
|
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
404 |
Process definition, form or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/xml
application/json
/server/containers/evaluation_1.0.0-SNAPSHOT/forms/processes/evaluation
{
"id": "d1e6dd47-b24c-4f93-ba25-337832926113",
"name": "evaluation-taskform.frm",
"model": {
"processName": "Evaluation",
"processId": "evaluation",
"name": "process",
"properties": [
{
"name": "employee",
"typeInfo": {
"type": "BASE",
"className": "java.lang.String",
"multiple": false
},
"metaData": {
"entries": [
{
"name": "field-readOnly",
"value": false
}
]
}
},
{
"name": "initiator",
"typeInfo": {
"type": "BASE",
"className": "java.lang.String",
"multiple": false
},
"metaData": {
"entries": [
{
"name": "field-readOnly",
"value": false
}
]
}
},
{
"name": "performance",
"typeInfo": {
"type": "BASE",
"className": "java.lang.Integer",
"multiple": false
},
"metaData": {
"entries": [
{
"name": "field-readOnly",
"value": false
}
]
}
},
{
"name": "reason",
"typeInfo": {
"type": "BASE",
"className": "java.lang.String",
"multiple": false
},
"metaData": {
"entries": [
{
"name": "field-readOnly",
"value": false
}
]
}
}
],
"formModelType": "org.kie.workbench.common.forms.jbpm.model.authoring.process.BusinessProcessFormModel"
},
"fields": [
{
"maxLength": 100,
"placeHolder": "Employee",
"id": "field_740177746345817E11",
"name": "employee",
"label": "Employee",
"required": true,
"readOnly": false,
"validateOnChange": true,
"binding": "employee",
"standaloneClassName": "java.lang.String",
"code": "TextBox",
"serializedFieldClassName": "org.kie.workbench.common.forms.fields.shared.fieldTypes.basic.textBox.definition.TextBoxFieldDefinition"
},
{
"placeHolder": "Reason",
"rows": 4,
"id": "field_282038126127015E11",
"name": "reason",
"label": "Reason",
"required": true,
"readOnly": false,
"validateOnChange": true,
"binding": "reason",
"standaloneClassName": "java.lang.String",
"code": "TextArea",
"serializedFieldClassName": "org.kie.workbench.common.forms.fields.shared.fieldTypes.basic.textArea.definition.TextAreaFieldDefinition"
}
],
"layoutTemplate": {
"version": 2,
"name": "evaluation-taskform.frm",
"style": "FLUID",
"layoutProperties": {},
"rows": [
{
"height": "12",
"layoutColumns": [
{
"span": "12",
"height": "12",
"rows": [],
"layoutComponents": [
{
"dragTypeName": "org.kie.workbench.common.forms.editor.client.editor.rendering.EditorFieldLayoutComponent",
"properties": {
"field_id": "field_740177746345817E11",
"form_id": "d1e6dd47-b24c-4f93-ba25-337832926113"
}
}
]
}
]
},
{
"height": "12",
"layoutColumns": [
{
"span": "12",
"height": "12",
"rows": [],
"layoutComponents": [
{
"dragTypeName": "org.kie.workbench.common.forms.editor.client.editor.rendering.EditorFieldLayoutComponent",
"properties": {
"field_id": "field_282038126127015E11",
"form_id": "d1e6dd47-b24c-4f93-ba25-337832926113"
}
}
]
}
]
}
]
}
}
GET /server/containers/{containerId}/forms/processes/{processId}/content
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
containerId |
container id that process definition belongs to |
string |
|
Path |
processId |
identifier of process definition that form should be fetched for |
string |
|
Query |
renderer |
optional renderer name that the form should be rendered with |
string |
|
HTTP Code | Description | Schema |
---|---|---|
200 |
successful operation |
string |
404 |
Process, form or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
text/html
/server/containers/evaluation_1.0.0-SNAPSHOT/forms/processes/evaluation/content
"string"
GET /server/containers/{containerId}/forms/tasks/{taskInstanceId}
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
containerId |
container id that task instance belongs to |
string |
|
Path |
taskInstanceId |
identifier of task instance that form should be fetched for |
integer (int64) |
|
Query |
filter |
optional filter flag if form should be filtered or returned as is |
boolean |
|
Query |
lang |
optional language that the form should be found for |
string |
|
Query |
marshallContent |
optional marshall content flag if the content should be transformed or not, defaults to true |
boolean |
|
Query |
type |
optional type of the form, defaults to ANY so system will find the most current one |
string |
|
Query |
user |
optional user id to be used instead of authenticated user - only when bypass authenticated user is enabled |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
404 |
Task, form or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/xml
application/json
/server/containers/evaluation_1.0.0-SNAPSHOT/forms/tasks/123
{
"id": "47078d21-7da5-4d3f-8355-0fcd78b09f39",
"name": "PerformanceEvaluation-taskform.frm",
"model": {
"taskName": "PerformanceEvaluation",
"processId": "evaluation",
"name": "task",
"properties": [
{
"name": "BusinessAdministratorId",
"typeInfo": {
"type": "BASE",
"className": "java.lang.String",
"multiple": false
},
"metaData": {
"entries": [
{
"name": "field-readOnly",
"value": true
}
]
}
},
{
"name": "reason",
"typeInfo": {
"type": "BASE",
"className": "java.lang.String",
"multiple": false
},
"metaData": {
"entries": [
{
"name": "field-readOnly",
"value": true
}
]
}
},
{
"name": "performance",
"typeInfo": {
"type": "BASE",
"className": "java.lang.Integer",
"multiple": false
},
"metaData": {
"entries": [
{
"name": "field-readOnly",
"value": false
}
]
}
}
],
"formModelType": "org.kie.workbench.common.forms.jbpm.model.authoring.task.TaskFormModel"
},
"fields": [
{
"placeHolder": "Reason",
"rows": 4,
"id": "field_332058348325587E12",
"name": "reason",
"label": "Reason",
"required": false,
"readOnly": true,
"validateOnChange": true,
"binding": "reason",
"standaloneClassName": "java.lang.String",
"code": "TextArea",
"serializedFieldClassName": "org.kie.workbench.common.forms.fields.shared.fieldTypes.basic.textArea.definition.TextAreaFieldDefinition"
},
{
"placeHolder": "Performance",
"maxLength": 100,
"id": "field_336003622256354E12",
"name": "performance",
"label": "Performance",
"required": true,
"readOnly": false,
"validateOnChange": true,
"binding": "performance",
"standaloneClassName": "java.lang.Integer",
"code": "IntegerBox",
"serializedFieldClassName": "org.kie.workbench.common.forms.fields.shared.fieldTypes.basic.integerBox.definition.IntegerBoxFieldDefinition"
}
],
"layoutTemplate": {
"version": 2,
"name": "PerformanceEvaluation-taskform.frm",
"style": "FLUID",
"layoutProperties": {},
"rows": [
{
"height": "12",
"layoutColumns": [
{
"span": "12",
"height": "12",
"rows": [],
"layoutComponents": [
{
"dragTypeName": "org.kie.workbench.common.forms.editor.client.editor.rendering.EditorFieldLayoutComponent",
"properties": {
"field_id": "field_332058348325587E12",
"form_id": "47078d21-7da5-4d3f-8355-0fcd78b09f39"
}
}
]
}
]
},
{
"height": "12",
"layoutColumns": [
{
"span": "12",
"height": "12",
"rows": [],
"layoutComponents": [
{
"dragTypeName": "org.kie.workbench.common.forms.editor.client.editor.rendering.EditorFieldLayoutComponent",
"properties": {
"field_id": "field_336003622256354E12",
"form_id": "47078d21-7da5-4d3f-8355-0fcd78b09f39"
}
}
]
}
]
}
]
}
}
GET /server/containers/{containerId}/forms/tasks/{taskInstanceId}/content
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
containerId |
container id that task instance belongs to |
string |
|
Path |
taskInstanceId |
identifier of task instance that form should be fetched for |
integer (int64) |
|
Query |
renderer |
optional renderer name that the form should be rendered with |
string |
|
HTTP Code | Description | Schema |
---|---|---|
200 |
successful operation |
string |
404 |
Task, form or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
text/html
/server/containers/evaluation_1.0.0-SNAPSHOT/forms/tasks/123/content
"string"
GET /server/containers/{containerId}/images/processes/instances/{processInstanceId}
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
containerId |
container id that process instance belongs to |
string |
|
Path |
processInstanceId |
identifier of the process instance that image should be loaded for |
integer (int64) |
|
Query |
svgActiveBorderColor |
svg active node border color |
string |
|
Query |
svgCompletedBorderColor |
svg completed node border color |
string |
|
Query |
svgCompletedColor |
svg completed node color |
string |
|
HTTP Code | Description | Schema |
---|---|---|
200 |
successful operation |
string |
404 |
Process instance, image or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/svg+xml
/server/containers/evaluation_1.0.0-SNAPSHOT/images/processes/instances/123
"string"
GET /server/containers/{containerId}/images/processes/{processId}
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that process definition belongs to |
string |
Path |
processId |
identifier of the process definition that image should be loaded for |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
successful operation |
string |
404 |
Process definition, image or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/svg+xml
/server/containers/evaluation_1.0.0-SNAPSHOT/images/processes/evaluation
"string"
GET /server/admin/containers/{containerId}/processes/errors
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
containerId |
container id that errors belong to |
string |
|
Query |
includeAck |
optional flag that indicates if acknowledged errors should also be collected, defaults to false |
boolean |
|
Query |
page |
optional pagination - at which page to start, defaults to 0 (meaning first) |
integer (int32) |
|
Query |
pageSize |
optional pagination - size of the result, defaults to 10 |
integer (int32) |
|
Query |
sort |
optional sort column, no default |
string |
|
Query |
sortOrder |
optional sort direction (asc, desc) - defaults to asc |
boolean |
|
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
404 |
Process instance or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/admin/containers/evaluation_1.0.0-SNAPSHOT/processes/errors
{
"error-instance": [
{
"id": "54b04160-6242-475d-9452-0df3678123b0",
"type": "Process",
"container-id": "mortgage-process_1.0.0-SNAPSHOT",
"process-instance-id": 4,
"process-id": "Mortgage_Process.MortgageApprovalProcess",
"activity-id": 12,
"activity-name": "Validation",
"job-id": null,
"error-msg": "[Mortgage_Process.MortgageApprovalProcess:4 - Validation:3] -- [Mortgage_Process.MortgageApprovalProcess:4 - Validation:3] -- null",
"error": null,
"acknowledged": false,
"acknowledged-by": null,
"acknowledged-at": null,
"error-date": 1539627373788
},
{
"id": "a7982044-019d-4d4a-be3f-781f4ddca1df",
"type": "Process",
"container-id": "mortgage-process_1.0.0-SNAPSHOT",
"process-instance-id": 4,
"process-id": "Mortgage_Process.MortgageApprovalProcess",
"activity-id": 12,
"activity-name": "Validation",
"job-id": null,
"error-msg": "[Mortgage_Process.MortgageApprovalProcess:4 - Validation:3] -- [Mortgage_Process.MortgageApprovalProcess:4 - Validation:3] -- null",
"error": null,
"acknowledged": false,
"acknowledged-by": null,
"acknowledged-at": null,
"error-date": 1539627364193
}
]
}
PUT /server/admin/containers/{containerId}/processes/errors
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that errors belong to |
string |
Query |
errorId |
list of error identifiers to be acknowledged |
< string > array(multi) |
HTTP Code | Description | Schema |
---|---|---|
404 |
Execution error or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/admin/containers/evaluation_1.0.0-SNAPSHOT/processes/errors?errorId=xxx-yyy-zzz
GET /server/admin/containers/{containerId}/processes/errors/{errorId}
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that process error belongs to |
string |
Path |
errorId |
identifier of error to be loaded |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
404 |
Process instance or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/admin/containers/evaluation_1.0.0-SNAPSHOT/processes/errors/xxx-yyy-zzz
{
"id": "a7982044-019d-4d4a-be3f-781f4ddca1df",
"type": "Process",
"container-id": "mortgage-process_1.0.0-SNAPSHOT",
"process-instance-id": 4,
"process-id": "Mortgage_Process.MortgageApprovalProcess",
"activity-id": 12,
"activity-name": "Validation",
"job-id": null,
"error-msg": "[Mortgage_Process.MortgageApprovalProcess:4 - Validation:3] -- [Mortgage_Process.MortgageApprovalProcess:4 - Validation:3] -- null",
"error": null,
"acknowledged": false,
"acknowledged-by": null,
"acknowledged-at": null,
"error-date": 1539627364193
}
PUT /server/admin/containers/{containerId}/processes/errors/{errorId}
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that error belongs to |
string |
Path |
errorId |
identifier of error to be acknowledged |
string |
HTTP Code | Description | Schema |
---|---|---|
404 |
Execution error or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/admin/containers/evaluation_1.0.0-SNAPSHOT/processes/errors/xxx-yyy-zzz
PUT /server/admin/containers/{containerId}/processes/instances
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that process instances belongs to |
string |
Query |
processInstanceId |
list of identifiers of process instance to be migrated |
< integer (int64) > array(multi) |
Query |
targetContainerId |
container id that new process definition belongs to |
string |
Query |
targetProcessId |
process definition that process instances should be migrated to |
string |
Body |
body |
node mapping - unique ids of old definition to new definition given as Map |
string |
HTTP Code | Description | Schema |
---|---|---|
201 |
Successfull response |
No Content |
404 |
Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
application/json
application/xml
/server/admin/containers/evaluation_1.0.0-SNAPSHOT/processes/instances?processInstanceId=0&targetContainerId=string&targetProcessId=string
{
"age": 25,
"name": "john"
}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<map-type>
<entries>
<entry>
<key>age</key>
<value xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">25</value>
</entry>
<entry>
<key>name</key>
<value xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">john</value>
</entry>
</entries>
</map-type>
{
"migration-report-instance": [
{
"migration-successful": true,
"migration-start": "2018-10-15T15:12:47.194Z",
"migration-end": "2018-10-15T15:13:17.202Z",
"migration-logs": [
"15-Oct-2018 15:56:23: StartNode () - Human\n15-Oct-2018 15:56:23: Join () - System\n15-Oct-2018 15:56:23: RuleSetNode (Validation) - System\n15-Oct-2018 15:56:23: Split () - System\n15-Oct-2018 15:56:23: RuleSetNode (Retract Validation) - System\n15-Oct-2018 15:56:23: HumanTaskNode (Correct Data) - System\n15-Oct-2018 15:56:23: RuleSetNode (Retract Validation) Completed - System\n15-Oct-2018 15:56:23: Split () Completed - System\n15-Oct-2018 15:56:23: RuleSetNode (Validation) Completed - System\n15-Oct-2018 15:56:23: Join () Completed - System\n15-Oct-2018 15:56:23: StartNode () Completed - System"
],
"migration-process-instance": 5
},
{
"migration-successful": true,
"migration-start": "2018-10-15T15:13:17.202Z",
"migration-end": "2018-10-15T15:13:47.194Z",
"migration-logs": [
"15-Oct-2018 15:56:23: StartNode () - Human\n15-Oct-2018 15:56:23: Join () - System\n15-Oct-2018 15:56:23: RuleSetNode (Validation) - System\n15-Oct-2018 15:56:23: Split () - System\n15-Oct-2018 15:56:23: RuleSetNode (Retract Validation) - System\n15-Oct-2018 15:56:23: HumanTaskNode (Correct Data) - System\n15-Oct-2018 15:56:23: RuleSetNode (Retract Validation) Completed - System\n15-Oct-2018 15:56:23: Split () Completed - System\n15-Oct-2018 15:56:23: RuleSetNode (Validation) Completed - System\n15-Oct-2018 15:56:23: Join () Completed - System\n15-Oct-2018 15:56:23: StartNode () Completed - System"
],
"migration-process-instance": 6
}
]
}
PUT /server/admin/containers/{containerId}/processes/instances/{processInstanceId}
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that process instance belongs to |
string |
Path |
processInstanceId |
identifier of process instance to be migrated |
integer (int64) |
Query |
targetContainerId |
container id that new process definition belongs to |
string |
Query |
targetProcessId |
process definition that process instance should be migrated to |
string |
Body |
body |
node mapping - unique ids of old definition to new definition given as Map |
string |
HTTP Code | Description | Schema |
---|---|---|
201 |
Successfull response |
No Content |
404 |
Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
application/json
application/xml
/server/admin/containers/evaluation_1.0.0-SNAPSHOT/processes/instances/123?targetContainerId=string&targetProcessId=string
{
"age": 25,
"name": "john"
}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<map-type>
<entries>
<entry>
<key>age</key>
<value xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">25</value>
</entry>
<entry>
<key>name</key>
<value xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">john</value>
</entry>
</entries>
</map-type>
{
"migration-successful": true,
"migration-start": "2018-10-15T15:12:47.194Z",
"migration-end": "2018-10-15T15:12:47.194Z",
"migration-logs": [
"15-Oct-2018 15:56:23: StartNode () - Human\n15-Oct-2018 15:56:23: Join () - System\n15-Oct-2018 15:56:23: RuleSetNode (Validation) - System\n15-Oct-2018 15:56:23: Split () - System\n15-Oct-2018 15:56:23: RuleSetNode (Retract Validation) - System\n15-Oct-2018 15:56:23: HumanTaskNode (Correct Data) - System\n15-Oct-2018 15:56:23: RuleSetNode (Retract Validation) Completed - System\n15-Oct-2018 15:56:23: Split () Completed - System\n15-Oct-2018 15:56:23: RuleSetNode (Validation) Completed - System\n15-Oct-2018 15:56:23: Join () Completed - System\n15-Oct-2018 15:56:23: StartNode () Completed - System"
],
"migration-process-instance": 4
}
GET /server/admin/containers/{containerId}/processes/instances/{processInstanceId}/errors
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
containerId |
container id that process instance belongs to |
string |
|
Path |
processInstanceId |
identifier of process instance that errors should be collected for |
integer (int64) |
|
Query |
includeAck |
optional flag that indicates if acknowledged errors should also be collected, defaults to false |
boolean |
|
Query |
node |
optional name of the node in the process instance to filter by |
string |
|
Query |
page |
optional pagination - at which page to start, defaults to 0 (meaning first) |
integer (int32) |
|
Query |
pageSize |
optional pagination - size of the result, defaults to 10 |
integer (int32) |
|
Query |
sort |
optional sort column, no default |
string |
|
Query |
sortOrder |
optional sort direction (asc, desc) - defaults to asc |
boolean |
|
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
404 |
Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/admin/containers/evaluation_1.0.0-SNAPSHOT/processes/instances/123/errors
{
"error-instance": [
{
"id": "54b04160-6242-475d-9452-0df3678123b0",
"type": "Process",
"container-id": "mortgage-process_1.0.0-SNAPSHOT",
"process-instance-id": 4,
"process-id": "Mortgage_Process.MortgageApprovalProcess",
"activity-id": 12,
"activity-name": "Validation",
"job-id": null,
"error-msg": "[Mortgage_Process.MortgageApprovalProcess:4 - Validation:3] -- [Mortgage_Process.MortgageApprovalProcess:4 - Validation:3] -- null",
"error": null,
"acknowledged": false,
"acknowledged-by": null,
"acknowledged-at": null,
"error-date": 1539627373788
},
{
"id": "a7982044-019d-4d4a-be3f-781f4ddca1df",
"type": "Process",
"container-id": "mortgage-process_1.0.0-SNAPSHOT",
"process-instance-id": 4,
"process-id": "Mortgage_Process.MortgageApprovalProcess",
"activity-id": 12,
"activity-name": "Validation",
"job-id": null,
"error-msg": "[Mortgage_Process.MortgageApprovalProcess:4 - Validation:3] -- [Mortgage_Process.MortgageApprovalProcess:4 - Validation:3] -- null",
"error": null,
"acknowledged": false,
"acknowledged-by": null,
"acknowledged-at": null,
"error-date": 1539627364193
}
]
}
GET /server/admin/containers/{containerId}/processes/instances/{processInstanceId}/nodeinstances
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that process instance belongs to |
string |
Path |
processInstanceId |
identifier of process instance that active nodes instances should be collected for |
integer (int64) |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
404 |
Process instance or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/admin/containers/evaluation_1.0.0-SNAPSHOT/processes/instances/123/nodeinstances
{
"node-instance": [
{
"node-instance-id": 1,
"node-name": "Task",
"process-instance-id": 2,
"work-item-id": 2,
"container-id": "employee-rostering",
"start-date": {
"java.util.Date": 1539184095048
},
"node-id": "_5F8EED98-433C-4E7B-97BC-0E70615F13CB",
"node-type": "HumanTaskNode",
"node-connection": "_E89FEB0F-B8E1-4138-9DF0-397C9F9A6512",
"node-completed": false,
"reference-id": null,
"sla-compliance": 0,
"sla-due-date": null
}
]
}
PUT /server/admin/containers/{containerId}/processes/instances/{processInstanceId}/nodeinstances/{nodeInstanceId}
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that process instance belongs to |
string |
Path |
nodeInstanceId |
identifier of node instance that should be retriggered |
integer (int64) |
Path |
processInstanceId |
identifier of process instance that node instance belongs to |
integer (int64) |
HTTP Code | Description | Schema |
---|---|---|
404 |
Process instance, node instance or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/admin/containers/evaluation_1.0.0-SNAPSHOT/processes/instances/123/nodeinstances/567
DELETE /server/admin/containers/{containerId}/processes/instances/{processInstanceId}/nodeinstances/{nodeInstanceId}
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that process instance belongs to |
string |
Path |
nodeInstanceId |
identifier of node instance that should be canceled |
integer (int64) |
Path |
processInstanceId |
identifier of process instance that node instance belongs to |
integer (int64) |
HTTP Code | Description | Schema |
---|---|---|
404 |
Process instance, node instance or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/admin/containers/evaluation_1.0.0-SNAPSHOT/processes/instances/123/nodeinstances/567
GET /server/admin/containers/{containerId}/processes/instances/{processInstanceId}/nodes
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that process instance belongs to |
string |
Path |
processInstanceId |
identifier of process instance that process nodes should be collected from |
integer (int64) |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
404 |
Process instance or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/admin/containers/evaluation_1.0.0-SNAPSHOT/processes/instances/123/nodes
{
"process-node": [
{
"name": "",
"id": 1,
"type": "StartNode",
"process-id": "Mortgage_Process.MortgageApprovalProcess"
},
{
"name": "",
"id": 2,
"type": "Join",
"process-id": "Mortgage_Process.MortgageApprovalProcess"
},
{
"name": "Validation",
"id": 3,
"type": "RuleSetNode",
"process-id": "Mortgage_Process.MortgageApprovalProcess"
},
{
"name": "",
"id": 4,
"type": "Split",
"process-id": "Mortgage_Process.MortgageApprovalProcess"
},
{
"name": "Retract Validation",
"id": 5,
"type": "RuleSetNode",
"process-id": "Mortgage_Process.MortgageApprovalProcess"
},
{
"name": "Correct Data",
"id": 6,
"type": "HumanTaskNode",
"process-id": "Mortgage_Process.MortgageApprovalProcess"
},
{
"name": "Mortgage Calculation",
"id": 7,
"type": "RuleSetNode",
"process-id": "Mortgage_Process.MortgageApprovalProcess"
},
{
"name": "Qualify",
"id": 8,
"type": "HumanTaskNode",
"process-id": "Mortgage_Process.MortgageApprovalProcess"
},
{
"name": "",
"id": 9,
"type": "Split",
"process-id": "Mortgage_Process.MortgageApprovalProcess"
},
{
"name": "Final Approval",
"id": 10,
"type": "HumanTaskNode",
"process-id": "Mortgage_Process.MortgageApprovalProcess"
},
{
"name": "",
"id": 11,
"type": "EndNode",
"process-id": "Mortgage_Process.MortgageApprovalProcess"
},
{
"name": "Increase Down Payment",
"id": 12,
"type": "HumanTaskNode",
"process-id": "Mortgage_Process.MortgageApprovalProcess"
},
{
"name": "",
"id": 13,
"type": "Split",
"process-id": "Mortgage_Process.MortgageApprovalProcess"
},
{
"name": "",
"id": 14,
"type": "EndNode",
"process-id": "Mortgage_Process.MortgageApprovalProcess"
}
]
}
POST /server/admin/containers/{containerId}/processes/instances/{processInstanceId}/nodes/{nodeId}
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that process instance belongs to |
string |
Path |
nodeId |
identifier of the node to be triggered |
integer (int64) |
Path |
processInstanceId |
identifier of process instance where node should be triggered |
integer (int64) |
HTTP Code | Description | Schema |
---|---|---|
404 |
Process instance, node instance or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/admin/containers/evaluation_1.0.0-SNAPSHOT/processes/instances/123/nodes/567
GET /server/admin/containers/{containerId}/processes/instances/{processInstanceId}/timers
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that process instance belongs to |
string |
Path |
processInstanceId |
identifier of process instance that timer instances should be collected for |
integer (int64) |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
404 |
Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/admin/containers/evaluation_1.0.0-SNAPSHOT/processes/instances/123/timers
{
"timer-instance": [
{
"name": "MyTimer",
"id": 1,
"activation-time": "2018-10-18T04:49:28.907Z",
"last-fire-time": "2018-10-18T04:49:28.907Z",
"next-fire-time": "2018-10-18T04:49:28.907Z",
"delay": 35000,
"period": 500000,
"repeat-limit": 2,
"process-instance-id": 6,
"session-id": 9
}
]
}
PUT /server/admin/containers/{containerId}/processes/instances/{processInstanceId}/timers/{timerId}
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
containerId |
container id that process instance belongs to |
string |
|
Path |
processInstanceId |
identifier of process instance that timer belongs to |
integer (int64) |
|
Path |
timerId |
identifier of timer instance to be updated |
integer (int64) |
|
Query |
relative |
optional flag that indicates if the time expression is relative to the current date or not, defaults to true |
boolean |
|
Body |
body |
Map of timer expressions - deplay, perios and repeat are allowed values in the map |
string |
HTTP Code | Description | Schema |
---|---|---|
404 |
Process instance, node instance or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
application/json
application/xml
/server/admin/containers/evaluation_1.0.0-SNAPSHOT/processes/instances/123/timers/99
{
"period" : 0,
"delay" : 3,
"repeatLimit" : 0
}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<map-type>
<entries>
<entry>
<key>period</key>
<value xsi:type="xs:long" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">0</value>
</entry>
<entry>
<key>delay</key>
<value xsi:type="xs:long" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">3</value>
</entry>
<entry>
<key>repeatLimit</key>
<value xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">0</value>
</entry>
</entries>
</map-type>
GET /server/containers/{containerId}/processes
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
containerId |
container id that process instance belongs to |
string |
|
Query |
page |
optional pagination - at which page to start, defaults to 0 (meaning first) |
integer (int32) |
|
Query |
pageSize |
optional pagination - size of the result, defaults to 10 |
integer (int32) |
|
Query |
sort |
optional sort column, no default |
string |
|
Query |
sortOrder |
optional sort direction (asc, desc) - defaults to asc |
boolean |
|
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
404 |
Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/processes
{
"processes": [
{
"associatedEntities": null,
"serviceTasks": null,
"processVariables": null,
"reusableSubProcesses": null,
"process-id": "Employee_Rostering.Process1",
"process-name": "Process1",
"process-version": "1.0",
"package": "employeerostering.employeerostering",
"container-id": "employee-rostering",
"dynamic": false
}
]
}
GET /server/containers/{containerId}/processes/instances
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
containerId |
container id that process instance belongs to |
string |
|
Query |
page |
optional pagination - at which page to start, defaults to 0 (meaning first) |
integer (int32) |
|
Query |
pageSize |
optional pagination - size of the result, defaults to 10 |
integer (int32) |
|
Query |
sort |
optional sort column, no default |
string |
|
Query |
sortOrder |
optional sort direction (asc, desc) - defaults to asc |
boolean |
|
Query |
status |
optional process instance status (active, completed, aborted) - defaults ot active (1) only |
< enum (1, 2, 3) > array(multi) |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
404 |
Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/processes/instances
{
"process-instance": [
{
"process-instance-id": 1,
"process-id": "Employee_Rostering.Process1",
"process-name": "Process1",
"process-version": "1.0",
"process-instance-state": 1,
"container-id": "employee-rostering",
"initiator": "baAdmin",
"start-date": {
"java.util.Date": 1539184095041
},
"process-instance-desc": "Process1",
"correlation-key": "1",
"parent-instance-id": -1,
"sla-compliance": 0,
"sla-due-date": null,
"active-user-tasks": null,
"process-instance-variables": null
},
{
"process-instance-id": 2,
"process-id": "Employee_Rostering.Process2",
"process-name": "Process2",
"process-version": "1.0",
"process-instance-state": 1,
"container-id": "employee-rostering",
"initiator": "baAdmin",
"start-date": {
"java.util.Date": 1539184303976
},
"process-instance-desc": "Process2",
"correlation-key": "2",
"parent-instance-id": -1,
"sla-compliance": 0,
"sla-due-date": null,
"active-user-tasks": null,
"process-instance-variables": null
}
]
}
DELETE /server/containers/{containerId}/processes/instances
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that process instance belongs to |
string |
Query |
instanceId |
list of identifiers of the process instances to be aborted |
< integer (int64) > array(multi) |
HTTP Code | Description | Schema |
---|---|---|
404 |
Process instance or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/processes/instances?instanceId=0
POST /server/containers/{containerId}/processes/instances/signal/{signalName}
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that process instance belongs to |
string |
Path |
signalName |
signal name to be send to process instance |
string |
Query |
instanceId |
list of identifiers of the process instances to be signaled |
< integer (int64) > array(multi) |
Body |
body |
optional event data - any type can be provided |
string |
HTTP Code | Description | Schema |
---|---|---|
404 |
Process instance or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/processes/instances/signal/EventReceived
{
"Person": {
"name": "john"
}
}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<person>
<name>john</name>
</person>
GET /server/containers/{containerId}/processes/instances/{processInstanceId}
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that process instance belongs to |
string |
Path |
processInstanceId |
identifier of the process instance to be fetched |
integer (int64) |
Query |
withVars |
indicates if process instance variables should be loaded or not |
boolean |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
404 |
Process instance or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/processes/instances/123
{
"process-instance-id": 1,
"process-id": "Employee_Rostering.Process1",
"process-name": "Process1",
"process-version": "1.0",
"process-instance-state": 1,
"container-id": "employee-rostering",
"initiator": "baAdmin",
"start-date": {
"java.util.Date": 1539184095041
},
"process-instance-desc": "Process1",
"correlation-key": "1",
"parent-instance-id": -1,
"sla-compliance": 0,
"sla-due-date": null,
"active-user-tasks": null,
"process-instance-variables": {
"initiator": "baAdmin"
}
}
DELETE /server/containers/{containerId}/processes/instances/{processInstanceId}
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that process instance belongs to |
string |
Path |
processInstanceId |
identifier of the process instance to be aborted |
integer (int64) |
HTTP Code | Description | Schema |
---|---|---|
404 |
Process instance or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/processes/instances/123
GET /server/containers/{containerId}/processes/instances/{processInstanceId}/nodes/instances
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
containerId |
container id that process instance belongs to |
string |
|
Path |
processInstanceId |
identifier of the process instance that history should be collected for |
integer (int64) |
|
Query |
activeOnly |
instructs if active nodes only should be collected, defaults to false |
boolean |
|
Query |
completedOnly |
instructs if completed nodes only should be collected, defaults to false |
boolean |
|
Query |
page |
optional pagination - at which page to start, defaults to 0 (meaning first) |
integer (int32) |
|
Query |
pageSize |
optional pagination - size of the result, defaults to 10 |
integer (int32) |
|
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
404 |
Process Instance or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/processes/instances/123/nodes/instances
{
"node-instance": [
{
"node-instance-id": 1,
"node-name": "Task",
"process-instance-id": 2,
"work-item-id": 2,
"container-id": "employee-rostering",
"start-date": {
"java.util.Date": 1539184095048
},
"node-id": "_5F8EED98-433C-4E7B-97BC-0E70615F13CB",
"node-type": "HumanTaskNode",
"node-connection": "_E89FEB0F-B8E1-4138-9DF0-397C9F9A6512",
"node-completed": false,
"reference-id": null,
"sla-compliance": 0,
"sla-due-date": null
}
]
}
GET /server/containers/{containerId}/processes/instances/{processInstanceId}/processes
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
containerId |
container id that process instance belongs to |
string |
|
Path |
processInstanceId |
identifier of the parent process instance that process instances should be collected for |
integer (int64) |
|
Query |
page |
optional pagination - at which page to start, defaults to 0 (meaning first) |
integer (int32) |
|
Query |
pageSize |
optional pagination - size of the result, defaults to 10 |
integer (int32) |
|
Query |
sort |
optional sort column, no default |
string |
|
Query |
sortOrder |
optional sort direction (asc, desc) - defaults to asc |
boolean |
|
Query |
status |
optional process instance status (active, completed, aborted) - defaults ot active (1) only |
< enum (1, 2, 3) > array(multi) |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/processes/instances/123/processes
{
"process-instance": [
{
"process-instance-id": 1,
"process-id": "Employee_Rostering.Process1",
"process-name": "Process1",
"process-version": "1.0",
"process-instance-state": 1,
"container-id": "employee-rostering",
"initiator": "baAdmin",
"start-date": {
"java.util.Date": 1539184095041
},
"process-instance-desc": "Process1",
"correlation-key": "1",
"parent-instance-id": -1,
"sla-compliance": 0,
"sla-due-date": null,
"active-user-tasks": null,
"process-instance-variables": null
},
{
"process-instance-id": 2,
"process-id": "Employee_Rostering.Process2",
"process-name": "Process2",
"process-version": "1.0",
"process-instance-state": 1,
"container-id": "employee-rostering",
"initiator": "baAdmin",
"start-date": {
"java.util.Date": 1539184303976
},
"process-instance-desc": "Process2",
"correlation-key": "2",
"parent-instance-id": -1,
"sla-compliance": 0,
"sla-due-date": null,
"active-user-tasks": null,
"process-instance-variables": null
}
]
}
POST /server/containers/{containerId}/processes/instances/{processInstanceId}/signal/{signalName}
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that process instance belongs to |
string |
Path |
processInstanceId |
identifier of the process instance to be signaled |
integer (int64) |
Path |
signalName |
signal name to be send to process instance |
string |
Body |
body |
optional event data - any type can be provided |
string |
HTTP Code | Description | Schema |
---|---|---|
404 |
Process instance or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/processes/instances/123/signal/EventReceived
{
"Person": {
"name": "john"
}
}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<person>
<name>john</name>
</person>
GET /server/containers/{containerId}/processes/instances/{processInstanceId}/signals
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that process instance belongs to |
string |
Path |
processInstanceId |
identifier of the process instance that signals should be collected for |
integer (int64) |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
404 |
Process instance or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/processes/instances/123/signals
[ "wait", "another"]
GET /server/containers/{containerId}/processes/instances/{processInstanceId}/variable/{varName}
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that process instance belongs to |
string |
Path |
processInstanceId |
identifier of the process instance that variable should be retrieved from |
integer (int64) |
Path |
varName |
variable name to be retrieved |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
404 |
Process instance or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/processes/instances/123/variable/person
{
"com.myspace.mortgage_app.Application": {
"applicant": {
"com.myspace.mortgage_app.Applicant": {
"name": "",
"annualincome": 0,
"address": null,
"ssn": 0,
"creditrating": null
}
},
"property": {
"com.myspace.mortgage_app.Property": {
"age": 0,
"address": "",
"locale": "",
"saleprice": 0
}
},
"downpayment": 0,
"amortization": 0,
"mortgageamount": null
}
}
PUT /server/containers/{containerId}/processes/instances/{processInstanceId}/variable/{varName}
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that process instance belongs to |
string |
Path |
processInstanceId |
identifier of the process instance to be updated |
integer (int64) |
Path |
varName |
name of the variable to be set/updated |
string |
Body |
body |
variable data - any type can be provided |
string |
HTTP Code | Description | Schema |
---|---|---|
404 |
Process instance or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/processes/instances/123/variable/name
{
"Person": {
"name": "john"
}
}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<person>
<name>john</name>
</person>
POST /server/containers/{containerId}/processes/instances/{processInstanceId}/variables
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that process instance belongs to |
string |
Path |
processInstanceId |
identifier of the process instance to be updated |
integer (int64) |
Body |
body |
variable data give as map |
string |
HTTP Code | Description | Schema |
---|---|---|
404 |
Process instance or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/processes/instances/123/variables
{
"age": 25,
"person": {
"Person": {
"name": "john"
}
}
}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<map-type>
<entries>
<entry>
<key>age</key>
<value xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">25</value>
</entry>
<entry>
<key>person</key>
<value xsi:type="person" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<name>john</name>
</value>
</entry>
</entries>
</map-type>
GET /server/containers/{containerId}/processes/instances/{processInstanceId}/variables
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that process instance belongs to |
string |
Path |
processInstanceId |
identifier of the process instance that variables should be retrieved from |
integer (int64) |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
404 |
Process instance or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/processes/instances/123/variables
{
"application": {
"com.myspace.mortgage_app.Application": {
"applicant": {
"com.myspace.mortgage_app.Applicant": {
"name": "",
"annualincome": 0,
"address": null,
"ssn": 0,
"creditrating": null
}
},
"property": {
"com.myspace.mortgage_app.Property": {
"age": 0,
"address": "",
"locale": "",
"saleprice": 0
}
},
"downpayment": 0,
"amortization": 0,
"mortgageamount": null
}
},
"initiator": "baAdmin"
}
GET /server/containers/{containerId}/processes/instances/{processInstanceId}/variables/instances
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that process instance belongs to |
string |
Path |
processInstanceId |
identifier of the process instance that variables state should be collected for |
integer (int64) |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
404 |
Process Instance or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/processes/instances/123/variables/instances
{
"variable-instance": [
{
"name": "initiator",
"old-value": "",
"value": "baAdmin",
"process-instance-id": 2,
"modification-date": {
"java.util.Date": 1539610491992
}
},
{
"name": "application",
"old-value": "com.myspace.mortgage_app.Application@bd449b3",
"value": "com.myspace.mortgage_app.Application@bd449b3",
"process-instance-id": 2,
"modification-date": {
"java.util.Date": 1539610492006
}
}
]
}
GET /server/containers/{containerId}/processes/instances/{processInstanceId}/variables/instances/{varName}
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
containerId |
container id that process instance belongs to |
string |
|
Path |
processInstanceId |
identifier of the process instance that variable history should be collected for |
integer (int64) |
|
Path |
varName |
name of the variables that history should be collected for |
string |
|
Query |
page |
optional pagination - at which page to start, defaults to 0 (meaning first) |
integer (int32) |
|
Query |
pageSize |
optional pagination - size of the result, defaults to 10 |
integer (int32) |
|
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
404 |
Process Instance or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/processes/instances/123/variables/instances/person
{
"variable-instance": [
{
"name": "initiator",
"old-value": "",
"value": "baAdmin",
"process-instance-id": 2,
"modification-date": {
"java.util.Date": 1539610491992
}
},
{
"name": "application",
"old-value": "com.myspace.mortgage_app.Application@bd449b3",
"value": "com.myspace.mortgage_app.Application@bd449b3",
"process-instance-id": 2,
"modification-date": {
"java.util.Date": 1539610492006
}
}
]
}
GET /server/containers/{containerId}/processes/instances/{processInstanceId}/workitems
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that process instance belongs to |
string |
Path |
processInstanceId |
identifier of the process instance that work items belong to |
integer (int64) |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
404 |
Process instance, Work Item or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/processes/instances/123/workitems
{
"work-item-instance": [
{
"work-item-id": 4,
"work-item-name": "Human Task",
"work-item-state": 0,
"work-item-params": {
"application": {
"com.myspace.mortgage_app.Application": {
"applicant": {
"com.myspace.mortgage_app.Applicant": {
"name": "NewName",
"annualincome": 0,
"address": null,
"ssn": 0,
"creditrating": null
}
},
"property": {
"com.myspace.mortgage_app.Property": {
"age": 0,
"address": "NewAddress",
"locale": "",
"saleprice": 0
}
},
"downpayment": 0,
"amortization": 0,
"mortgageamount": null
}
},
"TaskName": "CorrectData",
"NodeName": "Correct Data",
"Skippable": "false",
"GroupId": "broker"
},
"process-instance-id": 4,
"container-id": "mortgage-process_1.0.0-SNAPSHOT",
"node-instance-id": 5,
"node-id": 6
}
]
}
GET /server/containers/{containerId}/processes/instances/{processInstanceId}/workitems/{workItemId}
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that process instance belongs to |
string |
Path |
processInstanceId |
identifier of the process instance that work item belongs to |
integer (int64) |
Path |
workItemId |
identifier of the work item to retrieve |
integer (int64) |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
404 |
Process instance, Work Item or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/processes/instances/123/workitems/567
{
"work-item-instance": [
{
"work-item-id": 4,
"work-item-name": "Human Task",
"work-item-state": 0,
"work-item-params": {
"application": {
"com.myspace.mortgage_app.Application": {
"applicant": {
"com.myspace.mortgage_app.Applicant": {
"name": "NewName",
"annualincome": 0,
"address": null,
"ssn": 0,
"creditrating": null
}
},
"property": {
"com.myspace.mortgage_app.Property": {
"age": 0,
"address": "NewAddress",
"locale": "",
"saleprice": 0
}
},
"downpayment": 0,
"amortization": 0,
"mortgageamount": null
}
},
"TaskName": "CorrectData",
"NodeName": "Correct Data",
"Skippable": "false",
"GroupId": "broker"
},
"process-instance-id": 4,
"container-id": "mortgage-process_1.0.0-SNAPSHOT",
"node-instance-id": 5,
"node-id": 6
}
]
}
PUT /server/containers/{containerId}/processes/instances/{processInstanceId}/workitems/{workItemId}/aborted
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that process instance belongs to |
string |
Path |
processInstanceId |
identifier of the process instance that work item belongs to |
integer (int64) |
Path |
workItemId |
identifier of the work item to abort |
integer (int64) |
HTTP Code | Description | Schema |
---|---|---|
404 |
Process instance, Work Item or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/processes/instances/123/workitems/567/aborted
PUT /server/containers/{containerId}/processes/instances/{processInstanceId}/workitems/{workItemId}/completed
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that process instance belongs to |
string |
Path |
processInstanceId |
identifier of the process instance that work item belongs to |
integer (int64) |
Path |
workItemId |
identifier of the work item to complete |
integer (int64) |
Body |
body |
optional outcome data give as map |
string |
HTTP Code | Description | Schema |
---|---|---|
404 |
Process instance, Work Item or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/processes/instances/123/workitems/567/completed
{
"age": 25,
"person": {
"Person": {
"name": "john"
}
}
}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<map-type>
<entries>
<entry>
<key>age</key>
<value xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">25</value>
</entry>
<entry>
<key>person</key>
<value xsi:type="person" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<name>john</name>
</value>
</entry>
</entries>
</map-type>
POST /server/containers/{containerId}/processes/{processId}/instances
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id where the process definition resides |
string |
Path |
processId |
process id that new instance should be created from |
string |
Body |
body |
optional map of process variables |
string |
HTTP Code | Description | Schema |
---|---|---|
201 |
Process instance started |
integer (int64) |
404 |
Process ID or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/processes/evaluation/instances
{
"age": 25,
"person": {
"Person": {
"name": "john"
}
}
}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<map-type>
<entries>
<entry>
<key>age</key>
<value xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">25</value>
</entry>
<entry>
<key>person</key>
<value xsi:type="person" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<name>john</name>
</value>
</entry>
</entries>
</map-type>
10
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<long-type>
<value>10</value>
</long-type>
POST /server/containers/{containerId}/processes/{processId}/instances/correlation/{correlationKey}
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id where the process definition resides |
string |
Path |
correlationKey |
correlation key to be assigned to process instance |
string |
Path |
processId |
process id that new instance should be created from |
string |
Body |
body |
optional map of process variables |
string |
HTTP Code | Description | Schema |
---|---|---|
201 |
Process instance started |
integer (int64) |
404 |
Process ID or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/processes/evaluation/instances/correlation/john-evaluation-2019
{
"age": 25,
"person": {
"Person": {
"name": "john"
}
}
}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<map-type>
<entries>
<entry>
<key>age</key>
<value xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">25</value>
</entry>
<entry>
<key>person</key>
<value xsi:type="person" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<name>john</name>
</value>
</entry>
</entries>
</map-type>
10
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<long-type>
<value>10</value>
</long-type>
GET /server/queries/containers/{containerId}/process/instances
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
containerId |
container id to filter process instance |
string |
|
Query |
page |
optional pagination - at which page to start, defaults to 0 (meaning first) |
integer (int32) |
|
Query |
pageSize |
optional pagination - size of the result, defaults to 10 |
integer (int32) |
|
Query |
sort |
optional sort column, no default |
string |
|
Query |
sortOrder |
optional sort direction (asc, desc) - defaults to asc |
boolean |
|
Query |
status |
optional process instance status (active, completed, aborted) - defaults ot active (1) only |
< enum (1, 2, 3) > array(multi) |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
404 |
Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/queries/containers/string/process/instances
{
"process-instance": [
{
"process-instance-id": 1,
"process-id": "Employee_Rostering.Process1",
"process-name": "Process1",
"process-version": "1.0",
"process-instance-state": 1,
"container-id": "employee-rostering",
"initiator": "baAdmin",
"start-date": {
"java.util.Date": 1539184095041
},
"process-instance-desc": "Process1",
"correlation-key": "1",
"parent-instance-id": -1,
"sla-compliance": 0,
"sla-due-date": null,
"active-user-tasks": null,
"process-instance-variables": null
},
{
"process-instance-id": 2,
"process-id": "Employee_Rostering.Process2",
"process-name": "Process2",
"process-version": "1.0",
"process-instance-state": 1,
"container-id": "employee-rostering",
"initiator": "baAdmin",
"start-date": {
"java.util.Date": 1539184303976
},
"process-instance-desc": "Process2",
"correlation-key": "2",
"parent-instance-id": -1,
"sla-compliance": 0,
"sla-due-date": null,
"active-user-tasks": null,
"process-instance-variables": null
}
]
}
GET /server/queries/containers/{containerId}/processes/definitions
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
containerId |
container id to filter process definitions |
string |
|
Query |
page |
optional pagination - at which page to start, defaults to 0 (meaning first) |
integer (int32) |
|
Query |
pageSize |
optional pagination - size of the result, defaults to 10 |
integer (int32) |
|
Query |
sort |
optional sort column, no default |
string |
|
Query |
sortOrder |
optional sort direction (asc, desc) - defaults to asc |
boolean |
|
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/queries/containers/string/processes/definitions
{
"processes": [
{
"associatedEntities": null,
"serviceTasks": null,
"processVariables": null,
"reusableSubProcesses": null,
"process-id": "Employee_Rostering.Process1",
"process-name": "Process1",
"process-version": "1.0",
"package": "employeerostering.employeerostering",
"container-id": "employee-rostering",
"dynamic": false
}
]
}
GET /server/queries/containers/{containerId}/processes/definitions/{processId}
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that process definition belongs to |
string |
Path |
processId |
process id to load process definition |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/queries/containers/string/processes/definitions/string
{
"associatedEntities": {
"Qualify": [
"approver"
],
"Final Approval": [
"manager"
],
"Correct Data": [
"broker"
],
"Increase Down Payment": [
"broker"
]
},
"serviceTasks": {},
"processVariables": {
"inlimit": "Boolean",
"application": "com.myspace.mortgage_app.Application",
"incdownpayment": "Boolean"
},
"reusableSubProcesses": [],
"process-id": "Mortgage_Process.MortgageApprovalProcess",
"process-name": "MortgageApprovalProcess",
"process-version": "1.0",
"package": "com.myspace.mortgage_app",
"container-id": "mortgage-process_1.0.0-SNAPSHOT",
"dynamic": false
}
GET /server/queries/processes/definitions
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Query |
filter |
process id or name to filter process definitions |
string |
|
Query |
page |
optional pagination - at which page to start, defaults to 0 (meaning first) |
integer (int32) |
|
Query |
pageSize |
optional pagination - size of the result, defaults to 10 |
integer (int32) |
|
Query |
sort |
optional sort column, no default |
string |
|
Query |
sortOrder |
optional sort direction (asc, desc) - defaults to asc |
boolean |
|
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/queries/processes/definitions
{
"processes": [
{
"associatedEntities": null,
"serviceTasks": null,
"processVariables": null,
"reusableSubProcesses": null,
"process-id": "Employee_Rostering.Process1",
"process-name": "Process1",
"process-version": "1.0",
"package": "employeerostering.employeerostering",
"container-id": "employee-rostering",
"dynamic": false
}
]
}
GET /server/queries/processes/definitions/{processId}
Type | Name | Description | Schema |
---|---|---|---|
Path |
processId |
process id to load process definition |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/queries/processes/definitions/string
{
"processes": [
{
"associatedEntities": null,
"serviceTasks": null,
"processVariables": null,
"reusableSubProcesses": null,
"process-id": "Employee_Rostering.Process1",
"process-name": "Process1",
"process-version": "1.0",
"package": "employeerostering.employeerostering",
"container-id": "employee-rostering",
"dynamic": false
}
]
}
GET /server/queries/processes/instance/correlation/{correlationKey}
Type | Name | Description | Schema |
---|---|---|---|
Path |
correlationKey |
correlation key associated with process instance |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/queries/processes/instance/correlation/string
{
"process-instance-id": 1,
"process-id": "Employee_Rostering.Process1",
"process-name": "Process1",
"process-version": "1.0",
"process-instance-state": 1,
"container-id": "employee-rostering",
"initiator": "baAdmin",
"start-date": {
"java.util.Date": 1539184095041
},
"process-instance-desc": "Process1",
"correlation-key": "1",
"parent-instance-id": -1,
"sla-compliance": 0,
"sla-due-date": null,
"active-user-tasks": null,
"process-instance-variables": {
"initiator": "baAdmin"
}
}
GET /server/queries/processes/instances
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Query |
initiator |
optional process instance initiator - user who started process instance to filter process instances |
string |
|
Query |
page |
optional pagination - at which page to start, defaults to 0 (meaning first) |
integer (int32) |
|
Query |
pageSize |
optional pagination - size of the result, defaults to 10 |
integer (int32) |
|
Query |
processName |
optional process name to filter process instances |
string |
|
Query |
sort |
optional sort column, no default |
string |
|
Query |
sortOrder |
optional sort direction (asc, desc) - defaults to asc |
boolean |
|
Query |
status |
optional process instance status (active, completed, aborted) - defaults ot active (1) only |
< enum (1, 2, 3) > array(multi) |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/queries/processes/instances
{
"process-instance": [
{
"process-instance-id": 1,
"process-id": "Employee_Rostering.Process1",
"process-name": "Process1",
"process-version": "1.0",
"process-instance-state": 1,
"container-id": "employee-rostering",
"initiator": "baAdmin",
"start-date": {
"java.util.Date": 1539184095041
},
"process-instance-desc": "Process1",
"correlation-key": "1",
"parent-instance-id": -1,
"sla-compliance": 0,
"sla-due-date": null,
"active-user-tasks": null,
"process-instance-variables": null
},
{
"process-instance-id": 2,
"process-id": "Employee_Rostering.Process2",
"process-name": "Process2",
"process-version": "1.0",
"process-instance-state": 1,
"container-id": "employee-rostering",
"initiator": "baAdmin",
"start-date": {
"java.util.Date": 1539184303976
},
"process-instance-desc": "Process2",
"correlation-key": "2",
"parent-instance-id": -1,
"sla-compliance": 0,
"sla-due-date": null,
"active-user-tasks": null,
"process-instance-variables": null
}
]
}
GET /server/queries/processes/instances/correlation/{correlationKey}
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
correlationKey |
correlation key to filter process instance, can be given as partial correlation key like in starts with approach |
string |
|
Query |
page |
optional pagination - at which page to start, defaults to 0 (meaning first) |
integer (int32) |
|
Query |
pageSize |
optional pagination - size of the result, defaults to 10 |
integer (int32) |
|
Query |
sort |
optional sort column, no default |
string |
|
Query |
sortOrder |
optional sort direction (asc, desc) - defaults to asc |
boolean |
|
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/queries/processes/instances/correlation/string
{
"process-instance": [
{
"process-instance-id": 1,
"process-id": "Employee_Rostering.Process1",
"process-name": "Process1",
"process-version": "1.0",
"process-instance-state": 1,
"container-id": "employee-rostering",
"initiator": "baAdmin",
"start-date": {
"java.util.Date": 1539184095041
},
"process-instance-desc": "Process1",
"correlation-key": "1",
"parent-instance-id": -1,
"sla-compliance": 0,
"sla-due-date": null,
"active-user-tasks": null,
"process-instance-variables": null
},
{
"process-instance-id": 2,
"process-id": "Employee_Rostering.Process2",
"process-name": "Process2",
"process-version": "1.0",
"process-instance-state": 1,
"container-id": "employee-rostering",
"initiator": "baAdmin",
"start-date": {
"java.util.Date": 1539184303976
},
"process-instance-desc": "Process2",
"correlation-key": "2",
"parent-instance-id": -1,
"sla-compliance": 0,
"sla-due-date": null,
"active-user-tasks": null,
"process-instance-variables": null
}
]
}
GET /server/queries/processes/instances/variables/{varName}
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
varName |
variable name to filter process instance |
string |
|
Query |
page |
optional pagination - at which page to start, defaults to 0 (meaning first) |
integer (int32) |
|
Query |
pageSize |
optional pagination - size of the result, defaults to 10 |
integer (int32) |
|
Query |
sort |
optional sort column, no default |
string |
|
Query |
sortOrder |
optional sort direction (asc, desc) - defaults to asc |
boolean |
|
Query |
status |
optional process instance status (active, completed, aborted) - defaults ot active (1) only |
< enum (1, 2, 3) > array(multi) |
|
Query |
varValue |
variable value to filter process instance, optional when filtering by name only required when filtering by name and value |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/queries/processes/instances/variables/string
{
"process-instance": [
{
"process-instance-id": 1,
"process-id": "Employee_Rostering.Process1",
"process-name": "Process1",
"process-version": "1.0",
"process-instance-state": 1,
"container-id": "employee-rostering",
"initiator": "baAdmin",
"start-date": {
"java.util.Date": 1539184095041
},
"process-instance-desc": "Process1",
"correlation-key": "1",
"parent-instance-id": -1,
"sla-compliance": 0,
"sla-due-date": null,
"active-user-tasks": null,
"process-instance-variables": null
},
{
"process-instance-id": 2,
"process-id": "Employee_Rostering.Process2",
"process-name": "Process2",
"process-version": "1.0",
"process-instance-state": 1,
"container-id": "employee-rostering",
"initiator": "baAdmin",
"start-date": {
"java.util.Date": 1539184303976
},
"process-instance-desc": "Process2",
"correlation-key": "2",
"parent-instance-id": -1,
"sla-compliance": 0,
"sla-due-date": null,
"active-user-tasks": null,
"process-instance-variables": null
}
]
}
GET /server/queries/processes/instances/{processInstanceId}
Type | Name | Description | Schema |
---|---|---|---|
Path |
processInstanceId |
process instance id to retrieve process instance |
integer (int64) |
Query |
withVars |
load process instance variables or not, defaults to false |
boolean |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
404 |
Process instance id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/queries/processes/instances/0
{
"process-instance-id": 1,
"process-id": "Employee_Rostering.Process1",
"process-name": "Process1",
"process-version": "1.0",
"process-instance-state": 1,
"container-id": "employee-rostering",
"initiator": "baAdmin",
"start-date": {
"java.util.Date": 1539184095041
},
"process-instance-desc": "Process1",
"correlation-key": "1",
"parent-instance-id": -1,
"sla-compliance": 0,
"sla-due-date": null,
"active-user-tasks": null,
"process-instance-variables": {
"initiator": "baAdmin"
}
}
GET /server/queries/processes/instances/{processInstanceId}/nodes/instances
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
processInstanceId |
process instance id to to retrive history for |
integer (int64) |
|
Query |
activeOnly |
include active nodes only |
boolean |
|
Query |
completedOnly |
include completed nodes only |
boolean |
|
Query |
page |
optional pagination - at which page to start, defaults to 0 (meaning first) |
integer (int32) |
|
Query |
pageSize |
optional pagination - size of the result, defaults to 10 |
integer (int32) |
|
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/queries/processes/instances/0/nodes/instances
{
"node-instance": [
{
"node-instance-id": 1,
"node-name": "Task",
"process-instance-id": 2,
"work-item-id": 2,
"container-id": "employee-rostering",
"start-date": {
"java.util.Date": 1539184095048
},
"node-id": "_5F8EED98-433C-4E7B-97BC-0E70615F13CB",
"node-type": "HumanTaskNode",
"node-connection": "_E89FEB0F-B8E1-4138-9DF0-397C9F9A6512",
"node-completed": false,
"reference-id": null,
"sla-compliance": 0,
"sla-due-date": null
}
]
}
GET /server/queries/processes/instances/{processInstanceId}/variables/instances
Type | Name | Description | Schema |
---|---|---|---|
Path |
processInstanceId |
process instance id to load variables current state (latest value) for |
integer (int64) |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/queries/processes/instances/0/variables/instances
{
"variable-instance": [
{
"name": "initiator",
"old-value": "",
"value": "baAdmin",
"process-instance-id": 2,
"modification-date": {
"java.util.Date": 1539610491992
}
},
{
"name": "application",
"old-value": "com.myspace.mortgage_app.Application@bd449b3",
"value": "com.myspace.mortgage_app.Application@bd449b3",
"process-instance-id": 2,
"modification-date": {
"java.util.Date": 1539610492006
}
}
]
}
GET /server/queries/processes/instances/{processInstanceId}/variables/instances/{varName}
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
processInstanceId |
process instance id to load variable history for |
integer (int64) |
|
Path |
varName |
variable name that history should be loaded for |
string |
|
Query |
page |
optional pagination - at which page to start, defaults to 0 (meaning first) |
integer (int32) |
|
Query |
pageSize |
optional pagination - size of the result, defaults to 10 |
integer (int32) |
|
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/queries/processes/instances/0/variables/instances/string
{
"variable-instance": [
{
"name": "initiator",
"old-value": "",
"value": "baAdmin",
"process-instance-id": 2,
"modification-date": {
"java.util.Date": 1539610491992
}
},
{
"name": "application",
"old-value": "com.myspace.mortgage_app.Application@bd449b3",
"value": "com.myspace.mortgage_app.Application@bd449b3",
"process-instance-id": 2,
"modification-date": {
"java.util.Date": 1539610492006
}
}
]
}
GET /server/queries/processes/instances/{processInstanceId}/wi-nodes/instances/{workItemId}
Type | Name | Description | Schema |
---|---|---|---|
Path |
processInstanceId |
process instance id that work item belongs to |
integer (int64) |
Path |
workItemId |
work item id to retrieve node instance for |
integer (int64) |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
404 |
Node instance id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/queries/processes/instances/0/wi-nodes/instances/0
{
"node-instance-id": 6,
"node-name": "Correct Data",
"process-instance-id": 7,
"work-item-id": 9,
"container-id": "mortgage-process2",
"start-date": {
"java.util.Date": 1539810634380
},
"node-id": "_011ED858-F841-4C44-B0F1-F3BE388ADDA5",
"node-type": "HumanTaskNode",
"node-connection": null,
"node-completed": false,
"reference-id": null,
"sla-compliance": 0,
"sla-due-date": null
}
GET /server/queries/processes/{processId}/instances
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
processId |
process id to filter process instance |
string |
|
Query |
initiator |
optinal process instance initiator - user who started process instance to filtr process instances |
string |
|
Query |
page |
optional pagination - at which page to start, defaults to 0 (meaning first) |
integer (int32) |
|
Query |
pageSize |
optional pagination - size of the result, defaults to 10 |
integer (int32) |
|
Query |
sort |
optional sort column, no default |
string |
|
Query |
sortOrder |
optional sort direction (asc, desc) - defaults to asc |
boolean |
|
Query |
status |
optional process instance status (active, completed, aborted) - defaults ot active (1) only |
< enum (1, 2, 3) > array(multi) |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/queries/processes/string/instances
{
"process-instance": [
{
"process-instance-id": 1,
"process-id": "Employee_Rostering.Process1",
"process-name": "Process1",
"process-version": "1.0",
"process-instance-state": 1,
"container-id": "employee-rostering",
"initiator": "baAdmin",
"start-date": {
"java.util.Date": 1539184095041
},
"process-instance-desc": "Process1",
"correlation-key": "1",
"parent-instance-id": -1,
"sla-compliance": 0,
"sla-due-date": null,
"active-user-tasks": null,
"process-instance-variables": null
},
{
"process-instance-id": 2,
"process-id": "Employee_Rostering.Process2",
"process-name": "Process2",
"process-version": "1.0",
"process-instance-state": 1,
"container-id": "employee-rostering",
"initiator": "baAdmin",
"start-date": {
"java.util.Date": 1539184303976
},
"process-instance-desc": "Process2",
"correlation-key": "2",
"parent-instance-id": -1,
"sla-compliance": 0,
"sla-due-date": null,
"active-user-tasks": null,
"process-instance-variables": null
}
]
}
GET /server/queries/tasks/instances
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Query |
page |
optional pagination - at which page to start, defaults to 0 (meaning first) |
integer (int32) |
|
Query |
pageSize |
optional pagination - size of the result, defaults to 10 |
integer (int32) |
|
Query |
sort |
optional sort column, no default |
string |
|
Query |
sortOrder |
optional sort direction (asc, desc) - defaults to asc |
boolean |
|
Query |
user |
optional user id to be used instead of authenticated user - only when bypass authenticated user is enabled |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/queries/tasks/instances
{
"task-summary": [
{
"task-id": "2",
"task-name": "Self Evaluation",
"task-subject": "",
"task-description": "Please perform a self-evalutation.",
"task-status": "Ready",
"task-priority": "0",
"task-is-skippable": "false",
"task-created-by": "John",
"task-created-on": "2016-04-05T15:09:14.206+02:00",
"task-activation-time": "2016-04-05T15:09:14.206+02:00",
"task-proc-inst-id": "2",
"task-proc-def-id": "evaluation",
"task-container-id": "myContainer",
"task-parent-id": "-1"
},
{
"task-id": "1",
"task-name": "Self Evaluation",
"task-subject": "",
"task-description": "Please perform a self-evalutation.",
"task-status": "InProgress",
"task-priority": "0",
"task-is-skippable": "false",
"task-actual-owner": "kiesu",
"task-created-by": "John",
"task-created-on": "2016-04-05T15:05:06.508+02:00",
"task-activation-time": "2016-04-05T15:05:06.508+02:00",
"task-proc-inst-id": "1",
"task-proc-def-id": "evaluation",
"task-container-id": "myContainer",
"task-parent-id": "-1"
}
]
}
GET /server/queries/tasks/instances/admins
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Query |
page |
optional pagination - at which page to start, defaults to 0 (meaning first) |
integer (int32) |
|
Query |
pageSize |
optional pagination - size of the result, defaults to 10 |
integer (int32) |
|
Query |
sort |
optional sort column, no default |
string |
|
Query |
sortOrder |
optional sort direction (asc, desc) - defaults to asc |
boolean |
|
Query |
status |
optional task status (Created, Ready, Reserved, InProgress, Suspended, Completed, Failed, Error, Exited, Obsolete) |
< enum (Created, Ready, Reserved, InProgress, Suspended, Completed, Failed, Error, Exited, Obsolete) > array(multi) |
|
Query |
user |
optional user id to be used instead of authenticated user - only when bypass authenticated user is enabled |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/queries/tasks/instances/admins
{
"task-summary": [
{
"task-id": "2",
"task-name": "Self Evaluation",
"task-subject": "",
"task-description": "Please perform a self-evalutation.",
"task-status": "Ready",
"task-priority": "0",
"task-is-skippable": "false",
"task-created-by": "John",
"task-created-on": "2016-04-05T15:09:14.206+02:00",
"task-activation-time": "2016-04-05T15:09:14.206+02:00",
"task-proc-inst-id": "2",
"task-proc-def-id": "evaluation",
"task-container-id": "myContainer",
"task-parent-id": "-1"
},
{
"task-id": "1",
"task-name": "Self Evaluation",
"task-subject": "",
"task-description": "Please perform a self-evalutation.",
"task-status": "InProgress",
"task-priority": "0",
"task-is-skippable": "false",
"task-actual-owner": "kiesu",
"task-created-by": "John",
"task-created-on": "2016-04-05T15:05:06.508+02:00",
"task-activation-time": "2016-04-05T15:05:06.508+02:00",
"task-proc-inst-id": "1",
"task-proc-def-id": "evaluation",
"task-container-id": "myContainer",
"task-parent-id": "-1"
}
]
}
GET /server/queries/tasks/instances/owners
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Query |
page |
optional pagination - at which page to start, defaults to 0 (meaning first) |
integer (int32) |
|
Query |
pageSize |
optional pagination - size of the result, defaults to 10 |
integer (int32) |
|
Query |
sort |
optional sort column, no default |
string |
|
Query |
sortOrder |
optional sort direction (asc, desc) - defaults to asc |
boolean |
|
Query |
status |
optional task status (Created, Ready, Reserved, InProgress, Suspended, Completed, Failed, Error, Exited, Obsolete) |
< enum (Created, Ready, Reserved, InProgress, Suspended, Completed, Failed, Error, Exited, Obsolete) > array(multi) |
|
Query |
user |
optional user id to be used instead of authenticated user - only when bypass authenticated user is enabled |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/queries/tasks/instances/owners
{
"task-summary": [
{
"task-id": "2",
"task-name": "Self Evaluation",
"task-subject": "",
"task-description": "Please perform a self-evalutation.",
"task-status": "Ready",
"task-priority": "0",
"task-is-skippable": "false",
"task-created-by": "John",
"task-created-on": "2016-04-05T15:09:14.206+02:00",
"task-activation-time": "2016-04-05T15:09:14.206+02:00",
"task-proc-inst-id": "2",
"task-proc-def-id": "evaluation",
"task-container-id": "myContainer",
"task-parent-id": "-1"
},
{
"task-id": "1",
"task-name": "Self Evaluation",
"task-subject": "",
"task-description": "Please perform a self-evalutation.",
"task-status": "InProgress",
"task-priority": "0",
"task-is-skippable": "false",
"task-actual-owner": "kiesu",
"task-created-by": "John",
"task-created-on": "2016-04-05T15:05:06.508+02:00",
"task-activation-time": "2016-04-05T15:05:06.508+02:00",
"task-proc-inst-id": "1",
"task-proc-def-id": "evaluation",
"task-container-id": "myContainer",
"task-parent-id": "-1"
}
]
}
GET /server/queries/tasks/instances/pot-owners
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Query |
filter |
optional custom filter for task data |
string |
|
Query |
groups |
optional group names to include in the query |
< string > array(multi) |
|
Query |
page |
optional pagination - at which page to start, defaults to 0 (meaning first) |
integer (int32) |
|
Query |
pageSize |
optional pagination - size of the result, defaults to 10 |
integer (int32) |
|
Query |
sort |
optional sort column, no default |
string |
|
Query |
sortOrder |
optional sort direction (asc, desc) - defaults to asc |
boolean |
|
Query |
status |
optional task status (Created, Ready, Reserved, InProgress, Suspended, Completed, Failed, Error, Exited, Obsolete) |
< enum (Created, Ready, Reserved, InProgress, Suspended, Completed, Failed, Error, Exited, Obsolete) > array(multi) |
|
Query |
user |
optional user id to be used instead of authenticated user - only when bypass authenticated user is enabled |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/queries/tasks/instances/pot-owners
{
"task-summary": [
{
"task-id": "2",
"task-name": "Self Evaluation",
"task-subject": "",
"task-description": "Please perform a self-evalutation.",
"task-status": "Ready",
"task-priority": "0",
"task-is-skippable": "false",
"task-created-by": "John",
"task-created-on": "2016-04-05T15:09:14.206+02:00",
"task-activation-time": "2016-04-05T15:09:14.206+02:00",
"task-proc-inst-id": "2",
"task-proc-def-id": "evaluation",
"task-container-id": "myContainer",
"task-parent-id": "-1"
},
{
"task-id": "1",
"task-name": "Self Evaluation",
"task-subject": "",
"task-description": "Please perform a self-evalutation.",
"task-status": "InProgress",
"task-priority": "0",
"task-is-skippable": "false",
"task-actual-owner": "kiesu",
"task-created-by": "John",
"task-created-on": "2016-04-05T15:05:06.508+02:00",
"task-activation-time": "2016-04-05T15:05:06.508+02:00",
"task-proc-inst-id": "1",
"task-proc-def-id": "evaluation",
"task-container-id": "myContainer",
"task-parent-id": "-1"
}
]
}
GET /server/queries/tasks/instances/process/{processInstanceId}
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
processInstanceId |
process instance id to filter task instances |
integer (int64) |
|
Query |
page |
optional pagination - at which page to start, defaults to 0 (meaning first) |
integer (int32) |
|
Query |
pageSize |
optional pagination - size of the result, defaults to 10 |
integer (int32) |
|
Query |
sort |
optional sort column, no default |
string |
|
Query |
sortOrder |
optional sort direction (asc, desc) - defaults to asc |
boolean |
|
Query |
status |
optional task status (Created, Ready, Reserved, InProgress, Suspended, Completed, Failed, Error, Exited, Obsolete) |
< enum (Created, Ready, Reserved, InProgress, Suspended, Completed, Failed, Error, Exited, Obsolete) > array(multi) |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/queries/tasks/instances/process/0
{
"task-summary": [
{
"task-id": "2",
"task-name": "Self Evaluation",
"task-subject": "",
"task-description": "Please perform a self-evalutation.",
"task-status": "Ready",
"task-priority": "0",
"task-is-skippable": "false",
"task-created-by": "John",
"task-created-on": "2016-04-05T15:09:14.206+02:00",
"task-activation-time": "2016-04-05T15:09:14.206+02:00",
"task-proc-inst-id": "2",
"task-proc-def-id": "evaluation",
"task-container-id": "myContainer",
"task-parent-id": "-1"
},
{
"task-id": "1",
"task-name": "Self Evaluation",
"task-subject": "",
"task-description": "Please perform a self-evalutation.",
"task-status": "InProgress",
"task-priority": "0",
"task-is-skippable": "false",
"task-actual-owner": "kiesu",
"task-created-by": "John",
"task-created-on": "2016-04-05T15:05:06.508+02:00",
"task-activation-time": "2016-04-05T15:05:06.508+02:00",
"task-proc-inst-id": "1",
"task-proc-def-id": "evaluation",
"task-container-id": "myContainer",
"task-parent-id": "-1"
}
]
}
GET /server/queries/tasks/instances/variables/{varName}
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
varName |
name of the variable used to fiter tasks |
string |
|
Query |
page |
optional pagination - at which page to start, defaults to 0 (meaning first) |
integer (int32) |
|
Query |
pageSize |
optional pagination - size of the result, defaults to 10 |
integer (int32) |
|
Query |
sort |
optional sort column, no default |
string |
|
Query |
sortOrder |
optional sort direction (asc, desc) - defaults to asc |
boolean |
|
Query |
status |
optional task status (Created, Ready, Reserved, InProgress, Suspended, Completed, Failed, Error, Exited, Obsolete) |
< enum (Created, Ready, Reserved, InProgress, Suspended, Completed, Failed, Error, Exited, Obsolete) > array(multi) |
|
Query |
user |
optional user id to be used instead of authenticated user - only when bypass authenticated user is enabled |
string |
|
Query |
varValue |
value of the variable used to fiter tasks, optional when filtering only by name, required when filtering by both name and value |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/queries/tasks/instances/variables/string
{
"task-summary": [
{
"task-id": "2",
"task-name": "Self Evaluation",
"task-subject": "",
"task-description": "Please perform a self-evalutation.",
"task-status": "Ready",
"task-priority": "0",
"task-is-skippable": "false",
"task-created-by": "John",
"task-created-on": "2016-04-05T15:09:14.206+02:00",
"task-activation-time": "2016-04-05T15:09:14.206+02:00",
"task-proc-inst-id": "2",
"task-proc-def-id": "evaluation",
"task-container-id": "myContainer",
"task-parent-id": "-1"
},
{
"task-id": "1",
"task-name": "Self Evaluation",
"task-subject": "",
"task-description": "Please perform a self-evalutation.",
"task-status": "InProgress",
"task-priority": "0",
"task-is-skippable": "false",
"task-actual-owner": "kiesu",
"task-created-by": "John",
"task-created-on": "2016-04-05T15:05:06.508+02:00",
"task-activation-time": "2016-04-05T15:05:06.508+02:00",
"task-proc-inst-id": "1",
"task-proc-def-id": "evaluation",
"task-container-id": "myContainer",
"task-parent-id": "-1"
}
]
}
GET /server/queries/tasks/instances/workitem/{workItemId}
Type | Name | Description | Schema |
---|---|---|---|
Path |
workItemId |
work item id to load task associated with |
integer (int64) |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
404 |
Task not found for given work item id |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/queries/tasks/instances/workitem/0
{
"task-id": 1,
"task-priority": 0,
"task-name": "Self Evaluation",
"task-subject": null,
"task-description": "Please perform a self-evalutation.",
"task-type": null,
"task-form": null,
"task-status": "Ready",
"task-actual-owner": "kiesu",
"task-created-by": "Jane",
"task-created-on": {
"java.util.Date": 1539623679113
},
"task-activation-time": {
"java.util.Date": 1539623679113
},
"task-expiration-time": null,
"task-skippable": null,
"task-workitem-id": null,
"task-process-instance-id": 4,
"task-parent-id": null,
"task-process-id": "Mortgage_Process.MortgageApprovalProcess",
"task-container-id": "mortgage-process_1.0.0-SNAPSHOT",
"task-pot-owners": "Jane",
"task-excl-owners": null,
"task-business-admins": "John",
"task-input-data": null,
"task-output-data": null
}
GET /server/queries/tasks/instances/{taskInstanceId}
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
taskInstanceId |
task id to load task instance |
integer (int64) |
|
Query |
withSLA |
optional include SLA data - defaults to false |
boolean |
|
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
404 |
Task not found for given id |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/queries/tasks/instances/0
{
"task-id": 1,
"task-priority": 0,
"task-name": "Self Evaluation",
"task-subject": null,
"task-description": "Please perform a self-evalutation.",
"task-type": null,
"task-form": null,
"task-status": "Ready",
"task-actual-owner": "kiesu",
"task-created-by": "Jane",
"task-created-on": {
"java.util.Date": 1539623679113
},
"task-activation-time": {
"java.util.Date": 1539623679113
},
"task-expiration-time": null,
"task-skippable": null,
"task-workitem-id": null,
"task-process-instance-id": 4,
"task-parent-id": null,
"task-process-id": "Mortgage_Process.MortgageApprovalProcess",
"task-container-id": "mortgage-process_1.0.0-SNAPSHOT",
"task-pot-owners": "Jane",
"task-excl-owners": null,
"task-business-admins": "John",
"task-input-data": null,
"task-output-data": null
}
GET /server/queries/tasks/instances/{taskInstanceId}/events
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
taskInstanceId |
task id to load task events for |
integer (int64) |
|
Query |
page |
optional pagination - at which page to start, defaults to 0 (meaning first) |
integer (int32) |
|
Query |
pageSize |
optional pagination - size of the result, defaults to 10 |
integer (int32) |
|
Query |
sort |
optional sort column, no default |
string |
|
Query |
sortOrder |
optional sort direction (asc, desc) - defaults to asc |
boolean |
|
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/queries/tasks/instances/0/events
{
"task-event-instance": [
{
"task-event-id": 4,
"task-id": 4,
"task-event-type": "STARTED",
"task-event-user": "Mortgage_Process.MortgageApprovalProcess",
"task-event-date": {
"java.util.Date": 1539623679130
},
"task-process-instance-id": 4,
"task-work-item-id": 4,
"task-event-message": null
}
]
}
GET /server/files/{provider}/{type}/{file}
Type | Name | Description | Schema |
---|---|---|---|
Path |
file |
Name of the resource to look up |
string |
Path |
provider |
Name of the provider that manages given resource |
string |
Path |
type |
Type of the resource e.g. js, css, etc |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
successful operation |
string |
404 |
resource/file not found |
No Content |
500 |
Unexpected error |
No Content |
/server/files/string/string/string
"string"
GET /server/files/{type}/{file}
Type | Name | Description | Schema |
---|---|---|---|
Path |
file |
Name of the resource to look up |
string |
Path |
type |
Type of the resource e.g. js, css, etc |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
successful operation |
string |
404 |
resource/file not found |
No Content |
500 |
Unexpected error |
No Content |
/server/files/string/string
"string"
GET /server/admin/containers/{containerId}/tasks/errors
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
containerId |
container id that task instance belongs to |
string |
|
Query |
includeAck |
optional flag that indicates if acknowledged errors should also be collected, defaults to false |
boolean |
|
Query |
name |
optional name of the task to filter by |
string |
|
Query |
page |
optional pagination - at which page to start, defaults to 0 (meaning first) |
integer (int32) |
|
Query |
pageSize |
optional pagination - size of the result, defaults to 10 |
integer (int32) |
|
Query |
process |
optional process id that the task belongs to to filter by |
string |
|
Query |
sort |
optional sort column, no default |
string |
|
Query |
sortOrder |
optional sort direction (asc, desc) - defaults to asc |
boolean |
|
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
404 |
Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/admin/containers/evaluation_1.0.0-SNAPSHOT/tasks/errors
{
"error-instance": [
{
"id": "54b04160-6242-475d-9452-0df3678123b0",
"type": "Process",
"container-id": "mortgage-process_1.0.0-SNAPSHOT",
"process-instance-id": 4,
"process-id": "Mortgage_Process.MortgageApprovalProcess",
"activity-id": 12,
"activity-name": "Validation",
"job-id": null,
"error-msg": "[Mortgage_Process.MortgageApprovalProcess:4 - Validation:3] -- [Mortgage_Process.MortgageApprovalProcess:4 - Validation:3] -- null",
"error": null,
"acknowledged": false,
"acknowledged-by": null,
"acknowledged-at": null,
"error-date": 1539627373788
},
{
"id": "a7982044-019d-4d4a-be3f-781f4ddca1df",
"type": "Process",
"container-id": "mortgage-process_1.0.0-SNAPSHOT",
"process-instance-id": 4,
"process-id": "Mortgage_Process.MortgageApprovalProcess",
"activity-id": 12,
"activity-name": "Validation",
"job-id": null,
"error-msg": "[Mortgage_Process.MortgageApprovalProcess:4 - Validation:3] -- [Mortgage_Process.MortgageApprovalProcess:4 - Validation:3] -- null",
"error": null,
"acknowledged": false,
"acknowledged-by": null,
"acknowledged-at": null,
"error-date": 1539627364193
}
]
}
PUT /server/admin/containers/{containerId}/tasks/errors
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that errors belong to |
string |
Query |
errorId |
list of identifiers of execution errors to be acknowledged |
< string > array(multi) |
HTTP Code | Description | Schema |
---|---|---|
404 |
Task instance or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/admin/containers/evaluation_1.0.0-SNAPSHOT/tasks/errors?errorId=string
GET /server/admin/containers/{containerId}/tasks/errors/{errorId}
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that error belongs to |
string |
Path |
errorId |
identifier of the execution error to load |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
404 |
Task instance or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/admin/containers/evaluation_1.0.0-SNAPSHOT/tasks/errors/xxx-yyy-zzz
{
"id": "a7982044-019d-4d4a-be3f-781f4ddca1df",
"type": "Process",
"container-id": "mortgage-process_1.0.0-SNAPSHOT",
"process-instance-id": 4,
"process-id": "Mortgage_Process.MortgageApprovalProcess",
"activity-id": 12,
"activity-name": "Validation",
"job-id": null,
"error-msg": "[Mortgage_Process.MortgageApprovalProcess:4 - Validation:3] -- [Mortgage_Process.MortgageApprovalProcess:4 - Validation:3] -- null",
"error": null,
"acknowledged": false,
"acknowledged-by": null,
"acknowledged-at": null,
"error-date": 1539627364193
}
PUT /server/admin/containers/{containerId}/tasks/errors/{errorId}
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that error belongs to |
string |
Path |
errorId |
identifier of the execution error to be acknowledged |
string |
HTTP Code | Description | Schema |
---|---|---|
404 |
Task instance or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/admin/containers/evaluation_1.0.0-SNAPSHOT/tasks/errors/xxx-yyy-zzz
PUT /server/admin/containers/{containerId}/tasks/{taskInstanceId}/admins
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
containerId |
container id that task instance belongs to |
string |
|
Path |
taskInstanceId |
identifier of task instance to be updated |
integer (int64) |
|
Query |
remove |
optional flag that indicates if existing business admins should be removed, defaults to false |
boolean |
|
Body |
body |
list of users/groups to be added as business admins, as OrgEntities type |
string |
HTTP Code | Description | Schema |
---|---|---|
404 |
Task instance or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
application/json
application/xml
/server/admin/containers/evaluation_1.0.0-SNAPSHOT/tasks/123/admins
{
"users" : [ "john" ],
"groups" : null
}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<org-entities>
<users>john</users>
</org-entities>
DELETE /server/admin/containers/{containerId}/tasks/{taskInstanceId}/admins/groups/{entityId}
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that task instance belongs to |
string |
Path |
entityId |
list of groups to be removed from business admin list |
string |
Path |
taskInstanceId |
identifier of task instance to be updated |
integer (int64) |
HTTP Code | Description | Schema |
---|---|---|
404 |
Task instance or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/admin/containers/string/tasks/0/admins/groups/HR
DELETE /server/admin/containers/{containerId}/tasks/{taskInstanceId}/admins/users/{entityId}
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that task instance belongs to |
string |
Path |
entityId |
list of users to be removed from business admin list |
string |
Path |
taskInstanceId |
identifier of task instance to be updated |
integer (int64) |
HTTP Code | Description | Schema |
---|---|---|
404 |
Task instance or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/admin/containers/evaluation_1.0.0-SNAPSHOT/tasks/123/admins/users/john
PUT /server/admin/containers/{containerId}/tasks/{taskInstanceId}/contents/input
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that task instance belongs to |
string |
Path |
taskInstanceId |
identifier of task instance to be updated |
integer (int64) |
Body |
body |
map of data to be set as task inputs, as Map |
string |
HTTP Code | Description | Schema |
---|---|---|
404 |
Task instance or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
application/json
application/xml
/server/admin/containers/evaluation_1.0.0-SNAPSHOT/tasks/123/contents/input
{
"age": 25,
"person": {
"Person": {
"name": "john"
}
}
}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<map-type>
<entries>
<entry>
<key>age</key>
<value xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">25</value>
</entry>
<entry>
<key>person</key>
<value xsi:type="person" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<name>john</name>
</value>
</entry>
</entries>
</map-type>
DELETE /server/admin/containers/{containerId}/tasks/{taskInstanceId}/contents/input
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that task instance belongs to |
string |
Path |
taskInstanceId |
identifier of task instance to be updated |
integer (int64) |
Query |
name |
one or more names of task inputs to be removed |
< string > array(multi) |
HTTP Code | Description | Schema |
---|---|---|
404 |
Task instance or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/admin/containers/evaluation_1.0.0-SNAPSHOT/tasks/123/contents/input?name=string
DELETE /server/admin/containers/{containerId}/tasks/{taskInstanceId}/contents/output
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that task instance belongs to |
string |
Path |
taskInstanceId |
identifier of task instance to be updated |
integer (int64) |
Query |
name |
one or more names of task outputs to be removed |
< string > array(multi) |
HTTP Code | Description | Schema |
---|---|---|
404 |
Task instance or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/admin/containers/evaluation_1.0.0-SNAPSHOT/tasks/123/contents/output?name=string
GET /server/admin/containers/{containerId}/tasks/{taskInstanceId}/errors
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
containerId |
container id that task instance belongs to |
string |
|
Path |
taskInstanceId |
identifier of the task instance that errors should be collected for |
integer (int64) |
|
Query |
includeAck |
optional flag that indicates if acknowledged errors should also be collected, defaults to false |
boolean |
|
Query |
page |
optional pagination - at which page to start, defaults to 0 (meaning first) |
integer (int32) |
|
Query |
pageSize |
optional pagination - size of the result, defaults to 10 |
integer (int32) |
|
Query |
sort |
optional sort column, no default |
string |
|
Query |
sortOrder |
optional sort direction (asc, desc) - defaults to asc |
boolean |
|
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
404 |
Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/admin/containers/evaluation_1.0.0-SNAPSHOT/tasks/123/errors
{
"error-instance": [
{
"id": "54b04160-6242-475d-9452-0df3678123b0",
"type": "Process",
"container-id": "mortgage-process_1.0.0-SNAPSHOT",
"process-instance-id": 4,
"process-id": "Mortgage_Process.MortgageApprovalProcess",
"activity-id": 12,
"activity-name": "Validation",
"job-id": null,
"error-msg": "[Mortgage_Process.MortgageApprovalProcess:4 - Validation:3] -- [Mortgage_Process.MortgageApprovalProcess:4 - Validation:3] -- null",
"error": null,
"acknowledged": false,
"acknowledged-by": null,
"acknowledged-at": null,
"error-date": 1539627373788
},
{
"id": "a7982044-019d-4d4a-be3f-781f4ddca1df",
"type": "Process",
"container-id": "mortgage-process_1.0.0-SNAPSHOT",
"process-instance-id": 4,
"process-id": "Mortgage_Process.MortgageApprovalProcess",
"activity-id": 12,
"activity-name": "Validation",
"job-id": null,
"error-msg": "[Mortgage_Process.MortgageApprovalProcess:4 - Validation:3] -- [Mortgage_Process.MortgageApprovalProcess:4 - Validation:3] -- null",
"error": null,
"acknowledged": false,
"acknowledged-by": null,
"acknowledged-at": null,
"error-date": 1539627364193
}
]
}
PUT /server/admin/containers/{containerId}/tasks/{taskInstanceId}/exl-owners
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
containerId |
container id that task instance belongs to |
string |
|
Path |
taskInstanceId |
identifier of task instance to be updated |
integer (int64) |
|
Query |
remove |
optional flag that indicates if existing excluded owners should be removed, defaults to false |
boolean |
|
Body |
body |
list of users/groups to be added as excluded owners, as OrgEntities type |
string |
HTTP Code | Description | Schema |
---|---|---|
404 |
Task instance or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
application/json
application/xml
/server/admin/containers/evaluation_1.0.0-SNAPSHOT/tasks/123/exl-owners
{
"users" : [ "john" ],
"groups" : null
}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<org-entities>
<users>john</users>
</org-entities>
DELETE /server/admin/containers/{containerId}/tasks/{taskInstanceId}/exl-owners/groups/{entityId}
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that task instance belongs to |
string |
Path |
entityId |
list of groups to be removed from excluded owners list |
string |
Path |
taskInstanceId |
identifier of task instance to be updated |
integer (int64) |
HTTP Code | Description | Schema |
---|---|---|
404 |
Task instance or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/admin/containers/evaluation_1.0.0-SNAPSHOT/tasks/123/exl-owners/groups/HR
DELETE /server/admin/containers/{containerId}/tasks/{taskInstanceId}/exl-owners/users/{entityId}
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that task instance belongs to |
string |
Path |
entityId |
list of users to be removed from excluded owners list |
string |
Path |
taskInstanceId |
identifier of task instance to be updated |
integer (int64) |
HTTP Code | Description | Schema |
---|---|---|
404 |
Task instance or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/admin/containers/evaluation_1.0.0-SNAPSHOT/tasks/123/exl-owners/users/john
POST /server/admin/containers/{containerId}/tasks/{taskInstanceId}/notifications
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
containerId |
container id that task instance belongs to |
string |
|
Path |
taskInstanceId |
identifier of task instance to be updated |
integer (int64) |
|
Query |
expiresAt |
time expression for notification |
string |
|
Query |
whenNotCompleted |
optional flag that indicates the type of notification, either whenNotStarted or whenNotCompleted must be set |
boolean |
|
Query |
whenNotStarted |
optional flag that indicates the type of notification, either whenNotStarted or whenNotCompleted must be set |
boolean |
|
Body |
body |
email notification details, as EmailNotification type |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
201 |
successful operation |
integer (int64) |
404 |
Task instance or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
application/json
application/xml
/server/admin/containers/evaluation_1.0.0-SNAPSHOT/tasks/123/notifications?expiresAt=string
{
"from" : "test@jbpm.org",
"reply-to" : "no-reply@jbpm.org",
"users" : [ "john" ],
"groups" : null,
"subject" : "reminder",
"body" : "my test content"
}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<email-notification>
<from>test@jbpm.org</from>
<reply-to>no-reply@jbpm.org</reply-to>
<users>john</users>
<subject>reminder</subject>
<body>my test content</body>
</email-notification>
10
0
GET /server/admin/containers/{containerId}/tasks/{taskInstanceId}/notifications
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
containerId |
container id that task instance belongs to |
string |
|
Path |
taskInstanceId |
identifier of task instance to be updated |
integer (int64) |
|
Query |
activeOnly |
optional flag that indicates if active only notifications should be collected, defaults to true |
boolean |
|
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
404 |
Task instance or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/admin/containers/evaluation_1.0.0-SNAPSHOT/tasks/123/notifications
{
"task-notification": [
{
"id": 11070,
"name": null,
"notify-at": 1540396524172,
"users": [
"Sheldon"
],
"groups": [
"IT"
],
"active": true,
"subject": "You hava a task not started",
"content": "You have been assigned to a task (task-id ${taskId}).\n Important technical information that can be of use when working on it:\n - process instance id - ${processInstanceId}\n - work item id - ${workItemId}\n - work item id - ${workItemId}\n Regards from dev team"
}
]
}
DELETE /server/admin/containers/{containerId}/tasks/{taskInstanceId}/notifications/{notificationId}
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that task instance belongs to |
string |
Path |
notificationId |
identifier of notification to be canceled |
integer (int64) |
Path |
taskInstanceId |
identifier of task instance to be updated |
integer (int64) |
HTTP Code | Description | Schema |
---|---|---|
404 |
Task instance or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/admin/containers/evaluation_1.0.0-SNAPSHOT/tasks/123/notifications/567
PUT /server/admin/containers/{containerId}/tasks/{taskInstanceId}/pot-owners
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
containerId |
container id that task instance belongs to |
string |
|
Path |
taskInstanceId |
identifier of task instance to be updated |
integer (int64) |
|
Query |
remove |
optional flag that indicates if existing potential owners should be removed, defaults to false |
boolean |
|
Body |
body |
list of users/groups to be added as potential owners, as OrgEntities type |
string |
HTTP Code | Description | Schema |
---|---|---|
404 |
Task instance or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
application/json
application/xml
/server/admin/containers/evaluation_1.0.0-SNAPSHOT/tasks/123/pot-owners
{
"users" : [ "john" ],
"groups" : null
}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<org-entities>
<users>john</users>
</org-entities>
DELETE /server/admin/containers/{containerId}/tasks/{taskInstanceId}/pot-owners/groups/{entityId}
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that task instance belongs to |
string |
Path |
entityId |
list of groups to be removed from potantial owners list |
string |
Path |
taskInstanceId |
identifier of task instance to be updated |
integer (int64) |
HTTP Code | Description | Schema |
---|---|---|
404 |
Task instance or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/admin/containers/evaluation_1.0.0-SNAPSHOT/tasks/123/pot-owners/groups/HR
DELETE /server/admin/containers/{containerId}/tasks/{taskInstanceId}/pot-owners/users/{entityId}
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that task instance belongs to |
string |
Path |
entityId |
list of users to be removed from potantial owners list |
string |
Path |
taskInstanceId |
identifier of task instance to be updated |
integer (int64) |
HTTP Code | Description | Schema |
---|---|---|
404 |
Task instance or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/admin/containers/evaluation_1.0.0-SNAPSHOT/tasks/123/pot-owners/users/john
POST /server/admin/containers/{containerId}/tasks/{taskInstanceId}/reassignments
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
containerId |
container id that task instance belongs to |
string |
|
Path |
taskInstanceId |
identifier of task instance to be updated |
integer (int64) |
|
Query |
expiresAt |
time expression for reassignmnet |
string |
|
Query |
whenNotCompleted |
optional flag that indicates the type of reassignment, either whenNotStarted or whenNotCompleted must be set |
boolean |
|
Query |
whenNotStarted |
optional flag that indicates the type of reassignment, either whenNotStarted or whenNotCompleted must be set |
boolean |
|
Body |
body |
list of users/groups that task should be reassined to, as OrgEntities type |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
201 |
successful operation |
integer (int64) |
404 |
Task instance or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
application/json
application/xml
/server/admin/containers/evaluation_1.0.0-SNAPSHOT/tasks/123/reassignments?expiresAt=string
{
"users" : [ "john" ],
"groups" : null
}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<org-entities>
<users>john</users>
</org-entities>
10
0
GET /server/admin/containers/{containerId}/tasks/{taskInstanceId}/reassignments
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
containerId |
container id that task instance belongs to |
string |
|
Path |
taskInstanceId |
identifier of task instance to be updated |
integer (int64) |
|
Query |
activeOnly |
optional flag that indicates if active only reassignmnets should be collected, defaults to true |
boolean |
|
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
404 |
Task instance or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/admin/containers/evaluation_1.0.0-SNAPSHOT/tasks/123/reassignments
{
"task-reassignment": [
{
"id": 9995,
"name": "",
"reassign-at": 1540394323872,
"users": [
"John",
"Jane"
],
"groups": [
"IT"
],
"active": true
}
]
}
DELETE /server/admin/containers/{containerId}/tasks/{taskInstanceId}/reassignments/{reassignmentId}
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that task instance belongs to |
string |
Path |
reassignmentId |
identifier of reassignment to be canceled |
integer (int64) |
Path |
taskInstanceId |
identifier of task instance to be updated |
integer (int64) |
HTTP Code | Description | Schema |
---|---|---|
404 |
Task instance or Container Id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/admin/containers/evaluation_1.0.0-SNAPSHOT/tasks/123/reassignments/567
GET /server/containers/{containerId}/tasks/{taskInstanceId}
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that task instance belongs to |
string |
Path |
taskInstanceId |
identifier of the task instance that should be loaded |
integer (int64) |
Query |
withAssignments |
optionally loads task people assignments |
boolean |
Query |
withInputData |
optionally loads task input data |
boolean |
Query |
withOutputData |
optionally loads task output data |
boolean |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
404 |
Task with given id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/tasks/123
{
"task-id": 1,
"task-priority": 0,
"task-name": "Self Evaluation",
"task-subject": null,
"task-description": "Please perform a self-evalutation.",
"task-type": null,
"task-form": null,
"task-status": "Ready",
"task-actual-owner": "kiesu",
"task-created-by": "Jane",
"task-created-on": {
"java.util.Date": 1539623679113
},
"task-activation-time": {
"java.util.Date": 1539623679113
},
"task-expiration-time": null,
"task-skippable": null,
"task-workitem-id": null,
"task-process-instance-id": 4,
"task-parent-id": null,
"task-process-id": "Mortgage_Process.MortgageApprovalProcess",
"task-container-id": "mortgage-process_1.0.0-SNAPSHOT",
"task-pot-owners": "Jane",
"task-excl-owners": null,
"task-business-admins": "John",
"task-input-data": null,
"task-output-data": null
}
PUT /server/containers/{containerId}/tasks/{taskInstanceId}
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that task instance belongs to |
string |
Path |
taskInstanceId |
identifier of the task instance that should be updated |
integer (int64) |
Query |
user |
optional user id to be used instead of authenticated user - only when bypass authenticated user is enabled |
string |
Body |
body |
task instance with updates as TaskInstance type |
string |
HTTP Code | Description | Schema |
---|---|---|
404 |
Task with given id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/tasks/123
{
"task-id" : null,
"task-priority" : 10,
"task-name" : "Modified name",
"task-subject" : null,
"task-description" : "Simple user task.",
"task-type" : null,
"task-form" : null,
"task-status" : null,
"task-actual-owner" : null,
"task-created-by" : null,
"task-created-on" : null,
"task-activation-time" : null,
"task-expiration-time" : {
"java.util.Date" : 1540025025627
},
"task-skippable" : null,
"task-workitem-id" : null,
"task-process-instance-id" : null,
"task-parent-id" : null,
"task-process-id" : null,
"task-container-id" : null,
"task-pot-owners" : null,
"task-excl-owners" : null,
"task-business-admins" : null,
"task-input-data" : {
"added input" : "test"
},
"task-output-data" : {
"person_" : {
"org.jbpm.data.Person" : {
"name" : "mary"
}
},
"string_" : "my custom data"
}
}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<task-instance>
<task-priority>10</task-priority>
<task-name>Modified name</task-name>
<task-description>Simple user task.</task-description>
<task-expiration-time>2018-10-20T10:43:45.273+02:00</task-expiration-time>
<inputData>
<entry>
<key>added input</key>
<value xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">test</value>
</entry>
</inputData>
<outputData>
<entry>
<key>person_</key>
<value xsi:type="person" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<name>mary</name>
</value>
</entry>
<entry>
<key>string_</key>
<value xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">my custom data</value>
</entry>
</outputData>
</task-instance>
POST /server/containers/{containerId}/tasks/{taskInstanceId}/attachments
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that task instance belongs to |
string |
Path |
taskInstanceId |
identifier of the task instance that attachment should be added to |
integer (int64) |
Query |
name |
name of the attachment to be added |
string |
Query |
user |
optional user id to be used instead of authenticated user - only when bypass authenticated user is enabled |
string |
Body |
body |
attachment content, any type can be provided |
string |
HTTP Code | Description | Schema |
---|---|---|
201 |
Successfull response |
No Content |
404 |
Task with given id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/tasks/123/attachments?name=string
{
"Person": {
"name": "john"
}
}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<person>
<name>john</name>
</person>
10
GET /server/containers/{containerId}/tasks/{taskInstanceId}/attachments
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that task instance belongs to |
string |
Path |
taskInstanceId |
identifier of the task instance that attachments should be loaded for |
integer (int64) |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
404 |
Task with given id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/tasks/123/attachments
{
"task-attachment": [
{
"attachment-id": 1,
"attachment-name": "Task Attachment",
"attachment-added-by": "baAdmin",
"attachment-added-at": {
"java.util.Date": 1540229715779
},
"attachment-type": "java.util.LinkedHashMap",
"attachment-size": 233,
"attachment-content-id": 31
},
{
"attachment-id": 2,
"attachment-name": "Task Attachment 2",
"attachment-added-by": "baAdmin",
"attachment-added-at": {
"java.util.Date": 1540229715780
},
"attachment-type": "java.util.LinkedHashMap",
"attachment-size": 300,
"attachment-content-id": 32
}
]
}
GET /server/containers/{containerId}/tasks/{taskInstanceId}/attachments/{attachmentId}
Type | Name | Description | Schema |
---|---|---|---|
Path |
attachmentId |
identifier of the attachment to be loaded |
integer (int64) |
Path |
containerId |
container id that task instance belongs to |
string |
Path |
taskInstanceId |
identifier of the task instance that attachment belongs to |
integer (int64) |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
404 |
Task with given id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/tasks/123/attachments/567
{
"Person": {
"name": "john"
}
}
DELETE /server/containers/{containerId}/tasks/{taskInstanceId}/attachments/{attachmentId}
Type | Name | Description | Schema |
---|---|---|---|
Path |
attachmentId |
identifier of the attachment to be deleted |
integer (int64) |
Path |
containerId |
container id that task instance belongs to |
string |
Path |
taskInstanceId |
identifier of the task instance that attachment belongs to |
integer (int64) |
HTTP Code | Description | Schema |
---|---|---|
404 |
Task with given id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/tasks/123/attachments/567
GET /server/containers/{containerId}/tasks/{taskInstanceId}/attachments/{attachmentId}/content
Type | Name | Description | Schema |
---|---|---|---|
Path |
attachmentId |
identifier of the attachment that content should be loaded from |
integer (int64) |
Path |
containerId |
container id that task instance belongs to |
string |
Path |
taskInstanceId |
identifier of the task instance that attachment belongs to |
integer (int64) |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
404 |
Task with given id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/tasks/123/attachments/567/content
{
"Person": {
"name": "john"
}
}
POST /server/containers/{containerId}/tasks/{taskInstanceId}/comments
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that task instance belongs to |
string |
Path |
taskInstanceId |
identifier of the task instance that comment should be added to |
integer (int64) |
Body |
body |
comment data as TaskComment |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
201 |
successful operation |
integer (int64) |
404 |
Task with given id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/tasks/123/comments
{
"comment-id" : null,
"comment" : "First comment.",
"comment-added-by" : "yoda",
"comment-added-at" : {
"java.util.Date" : 1539939094774
}
}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<task-comment>
<comment>First comment.</comment>
<comment-added-by>yoda</comment-added-by>
<comment-added-at>2018-10-19T10:51:34.405+02:00</comment-added-at>
</task-comment>
10
0
GET /server/containers/{containerId}/tasks/{taskInstanceId}/comments
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that task instance belongs to |
string |
Path |
taskInstanceId |
identifier of the task instance that comments should be loaded for |
integer (int64) |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
404 |
Task with given id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/tasks/123/comments
{
"task-comment": [
{
"comment-id": 1,
"comment": "Ensure that this self evaluation is completed before the HR and PM evaluations.",
"comment-added-by": "baAdmin",
"comment-added-at": {
"java.util.Date": 1540238822132
}
},
{
"comment-id": 2,
"comment": "Task must be assigned to administrator.",
"comment-added-by": "baAdmin",
"comment-added-at": {
"java.util.Date": 1540238822140
}
}
]
}
GET /server/containers/{containerId}/tasks/{taskInstanceId}/comments/{commentId}
Type | Name | Description | Schema |
---|---|---|---|
Path |
commentId |
identifier of the comment to be loaded |
integer (int64) |
Path |
containerId |
container id that task instance belongs to |
string |
Path |
taskInstanceId |
identifier of the task instance that comment belongs to |
integer (int64) |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
404 |
Task with given id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/tasks/123/comments/567
{
"comment-id" : null,
"comment" : "First comment.",
"comment-added-by" : "yoda",
"comment-added-at" : {
"java.util.Date" : 1539939094774
}
}
DELETE /server/containers/{containerId}/tasks/{taskInstanceId}/comments/{commentId}
Type | Name | Description | Schema |
---|---|---|---|
Path |
commentId |
identifier of the comment to be deleted |
integer (int64) |
Path |
containerId |
container id that task instance belongs to |
string |
Path |
taskInstanceId |
identifier of the task instance that comment belongs to |
integer (int64) |
HTTP Code | Description | Schema |
---|---|---|
404 |
Task with given id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/tasks/123/comments/567
GET /server/containers/{containerId}/tasks/{taskInstanceId}/contents/input
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that task instance belongs to |
string |
Path |
taskInstanceId |
identifier of the task instance that input data should be loaded from |
integer (int64) |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
404 |
Task with given id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/tasks/123/contents/input
{
"application": {
"com.myspace.mortgage_app.Application": {
"applicant": {
"com.myspace.mortgage_app.Applicant": {
"name": "",
"annualincome": 0,
"address": null,
"ssn": 0,
"creditrating": null
}
},
"property": {
"com.myspace.mortgage_app.Property": {
"age": 0,
"address": "",
"locale": "",
"saleprice": 0
}
},
"downpayment": 0,
"amortization": 0,
"mortgageamount": null
}
},
"initiator": "baAdmin"
}
GET /server/containers/{containerId}/tasks/{taskInstanceId}/contents/output
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that task instance belongs to |
string |
Path |
taskInstanceId |
identifier of the task instance that output data should be loaded from |
integer (int64) |
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
404 |
Task with given id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/tasks/123/contents/output
{
"application": {
"com.myspace.mortgage_app.Application": {
"applicant": {
"com.myspace.mortgage_app.Applicant": {
"name": "",
"annualincome": 0,
"address": null,
"ssn": 0,
"creditrating": null
}
},
"property": {
"com.myspace.mortgage_app.Property": {
"age": 0,
"address": "",
"locale": "",
"saleprice": 0
}
},
"downpayment": 0,
"amortization": 0,
"mortgageamount": null
}
},
"initiator": "baAdmin"
}
PUT /server/containers/{containerId}/tasks/{taskInstanceId}/contents/output
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that task instance belongs to |
string |
Path |
taskInstanceId |
identifier of the task instance that data should be saved into |
integer (int64) |
Body |
body |
output data to be saved as Map |
string |
HTTP Code | Description | Schema |
---|---|---|
404 |
Task with given id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/tasks/123/contents/output
{
"age": 25,
"person": {
"Person": {
"name": "john"
}
}
}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<map-type>
<entries>
<entry>
<key>age</key>
<value xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">25</value>
</entry>
<entry>
<key>person</key>
<value xsi:type="person" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<name>john</name>
</value>
</entry>
</entries>
</map-type>
DELETE /server/containers/{containerId}/tasks/{taskInstanceId}/contents/{contentId}
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that task instance belongs to |
string |
Path |
contentId |
identifier of the content to be deleted |
integer (int64) |
Path |
taskInstanceId |
identifier of the task instance that content belongs to |
integer (int64) |
HTTP Code | Description | Schema |
---|---|---|
404 |
Task with given id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/tasks/123/contents/567
PUT /server/containers/{containerId}/tasks/{taskInstanceId}/description
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that task instance belongs to |
string |
Path |
taskInstanceId |
identifier of the task instance where description should be updated |
integer (int64) |
Body |
body |
description as String |
string |
HTTP Code | Description | Schema |
---|---|---|
404 |
Task with given id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/tasks/123/description
Simple user task.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<string-type>
<value>Simple user task.</value>
</string-type>
GET /server/containers/{containerId}/tasks/{taskInstanceId}/events
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
containerId |
container id that task instance belongs to |
string |
|
Path |
taskInstanceId |
identifier of the task instance that events should be loaded for |
integer (int64) |
|
Query |
page |
optional pagination - at which page to start, defaults to 0 (meaning first) |
integer (int32) |
|
Query |
pageSize |
optional pagination - size of the result, defaults to 10 |
integer (int32) |
|
Query |
sort |
optional sort column, no default |
string |
|
Query |
sortOrder |
optional sort direction (asc, desc) - defaults to asc |
boolean |
|
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull response |
No Content |
404 |
Task with given id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/tasks/123/events
{
"task-event-instance": [
{
"task-event-id": 4,
"task-id": 4,
"task-event-type": "STARTED",
"task-event-user": "Mortgage_Process.MortgageApprovalProcess",
"task-event-date": {
"java.util.Date": 1539623679130
},
"task-process-instance-id": 4,
"task-work-item-id": 4,
"task-event-message": null
}
]
}
PUT /server/containers/{containerId}/tasks/{taskInstanceId}/expiration
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that task instance belongs to |
string |
Path |
taskInstanceId |
identifier of the task instance where expiration date should be updated |
integer (int64) |
Body |
body |
expiration date as Date |
string |
HTTP Code | Description | Schema |
---|---|---|
404 |
Task with given id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/tasks/123/expiration
{
"java.util.Date" : 1540025263987
}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<date-type>
<value>2018-10-20T10:47:43.607+02:00</value>
</date-type>
PUT /server/containers/{containerId}/tasks/{taskInstanceId}/name
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that task instance belongs to |
string |
Path |
taskInstanceId |
identifier of the task instance where name should be updated |
integer (int64) |
Body |
body |
name as String |
string |
HTTP Code | Description | Schema |
---|---|---|
404 |
Task with given id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/tasks/123/name
Simple user task.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<string-type>
<value>Simple user task.</value>
</string-type>
PUT /server/containers/{containerId}/tasks/{taskInstanceId}/priority
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that task instance belongs to |
string |
Path |
taskInstanceId |
identifier of the task instance where priority should be updated |
integer (int64) |
Body |
body |
priority as Integer |
string |
HTTP Code | Description | Schema |
---|---|---|
404 |
Task with given id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/tasks/123/priority
10
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<int-type>
<value>10</value>
</int-type>
PUT /server/containers/{containerId}/tasks/{taskInstanceId}/skipable
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that task instance belongs to |
string |
Path |
taskInstanceId |
identifier of the task instance where skipable flag should be updated |
integer (int64) |
Body |
body |
skipable flag as Boolean |
string |
HTTP Code | Description | Schema |
---|---|---|
404 |
Task with given id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/tasks/123/skipable
false
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<boolean-type>
<value>false</value>
</boolean-type>
PUT /server/containers/{containerId}/tasks/{taskInstanceId}/states/activated
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that task instance belongs to |
string |
Path |
taskInstanceId |
identifier of the task instance that should be activated |
integer (int64) |
Query |
user |
optional user id to be used instead of authenticated user - only when bypass authenticated user is enabled |
string |
HTTP Code | Description | Schema |
---|---|---|
404 |
Task with given id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/tasks/123/states/activated
PUT /server/containers/{containerId}/tasks/{taskInstanceId}/states/claimed
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that task instance belongs to |
string |
Path |
taskInstanceId |
identifier of the task instance that should be claimed |
integer (int64) |
Query |
user |
optional user id to be used instead of authenticated user - only when bypass authenticated user is enabled |
string |
HTTP Code | Description | Schema |
---|---|---|
403 |
User was unable to execute current operation on task with given id due to a no 'current status' match or insufficient permissions |
No Content |
404 |
Task with given id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/tasks/123/states/claimed
PUT /server/containers/{containerId}/tasks/{taskInstanceId}/states/completed
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that task instance belongs to |
string |
Path |
taskInstanceId |
identifier of the task instance that should be completed |
integer (int64) |
Query |
auto-progress |
optional flag that allows to directlu claim and start task (if needed) before completion |
boolean |
Query |
user |
optional user id to be used instead of authenticated user - only when bypass authenticated user is enabled |
string |
Body |
body |
optional map of output variables |
string |
HTTP Code | Description | Schema |
---|---|---|
403 |
User was unable to execute current operation on task with given id due to a no 'current status' match or insufficient permissions |
No Content |
404 |
Task with given id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/tasks/123/states/completed
{
"age": 25,
"person": {
"Person": {
"name": "john"
}
}
}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<map-type>
<entries>
<entry>
<key>age</key>
<value xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">25</value>
</entry>
<entry>
<key>person</key>
<value xsi:type="person" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<name>john</name>
</value>
</entry>
</entries>
</map-type>
PUT /server/containers/{containerId}/tasks/{taskInstanceId}/states/delegated
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that task instance belongs to |
string |
Path |
taskInstanceId |
identifier of the task instance that should be delegated |
integer (int64) |
Query |
targetUser |
user that task should be dalegated to |
string |
Query |
user |
optional user id to be used instead of authenticated user - only when bypass authenticated user is enabled |
string |
HTTP Code | Description | Schema |
---|---|---|
403 |
User was unable to execute current operation on task with given id due to a no 'current status' match or insufficient permissions |
No Content |
404 |
Task with given id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/tasks/123/states/delegated?targetUser=string
PUT /server/containers/{containerId}/tasks/{taskInstanceId}/states/exited
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that task instance belongs to |
string |
Path |
taskInstanceId |
identifier of the task instance that should be exited |
integer (int64) |
Query |
user |
optional user id to be used instead of authenticated user - only when bypass authenticated user is enabled |
string |
HTTP Code | Description | Schema |
---|---|---|
404 |
Task with given id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/tasks/123/states/exited
PUT /server/containers/{containerId}/tasks/{taskInstanceId}/states/failed
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that task instance belongs to |
string |
Path |
taskInstanceId |
identifier of the task instance that should be failed |
integer (int64) |
Query |
user |
optional user id to be used instead of authenticated user - only when bypass authenticated user is enabled |
string |
Body |
body |
optional map of output variables |
string |
HTTP Code | Description | Schema |
---|---|---|
404 |
Task with given id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/tasks/123/states/failed
{
"age": 25,
"person": {
"Person": {
"name": "john"
}
}
}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<map-type>
<entries>
<entry>
<key>age</key>
<value xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">25</value>
</entry>
<entry>
<key>person</key>
<value xsi:type="person" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<name>john</name>
</value>
</entry>
</entries>
</map-type>
PUT /server/containers/{containerId}/tasks/{taskInstanceId}/states/forwarded
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that task instance belongs to |
string |
Path |
taskInstanceId |
identifier of the task instance that should be forwarded |
integer (int64) |
Query |
targetUser |
user that the task should be forwarded to |
string |
Query |
user |
optional user id to be used instead of authenticated user - only when bypass authenticated user is enabled |
string |
HTTP Code | Description | Schema |
---|---|---|
403 |
User was unable to execute current operation on task with given id due to a no 'current status' match or insufficient permissions |
No Content |
404 |
Task with given id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/tasks/123/states/forwarded?targetUser=string
PUT /server/containers/{containerId}/tasks/{taskInstanceId}/states/nominated
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that task instance belongs to |
string |
Path |
taskInstanceId |
identifier of the task instance that should be nominated |
integer (int64) |
Query |
potOwner |
list of users that the task should be nominated to |
< string > array(multi) |
Query |
user |
optional user id to be used instead of authenticated user - only when bypass authenticated user is enabled |
string |
HTTP Code | Description | Schema |
---|---|---|
403 |
User was unable to execute current operation on task with given id due to a no 'current status' match or insufficient permissions |
No Content |
404 |
Task with given id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/tasks/123/states/nominated?potOwner=string
PUT /server/containers/{containerId}/tasks/{taskInstanceId}/states/released
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that task instance belongs to |
string |
Path |
taskInstanceId |
identifier of the task instance that should be released |
integer (int64) |
Query |
user |
optional user id to be used instead of authenticated user - only when bypass authenticated user is enabled |
string |
HTTP Code | Description | Schema |
---|---|---|
403 |
User was unable to execute current operation on task with given id due to a no 'current status' match or insufficient permissions |
No Content |
404 |
Task with given id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/tasks/123/states/released
PUT /server/containers/{containerId}/tasks/{taskInstanceId}/states/resumed
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that task instance belongs to |
string |
Path |
taskInstanceId |
identifier of the task instance that should be resumed |
integer (int64) |
Query |
user |
optional user id to be used instead of authenticated user - only when bypass authenticated user is enabled |
string |
HTTP Code | Description | Schema |
---|---|---|
404 |
Task with given id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/tasks/123/states/resumed
PUT /server/containers/{containerId}/tasks/{taskInstanceId}/states/skipped
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that task instance belongs to |
string |
Path |
taskInstanceId |
identifier of the task instance that should be skipped |
integer (int64) |
Query |
user |
optional user id to be used instead of authenticated user - only when bypass authenticated user is enabled |
string |
HTTP Code | Description | Schema |
---|---|---|
404 |
Task with given id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/tasks/123/states/skipped
PUT /server/containers/{containerId}/tasks/{taskInstanceId}/states/started
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that task instance belongs to |
string |
Path |
taskInstanceId |
identifier of the task instance that should be started |
integer (int64) |
Query |
user |
optional user id to be used instead of authenticated user - only when bypass authenticated user is enabled |
string |
HTTP Code | Description | Schema |
---|---|---|
404 |
Task with given id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/tasks/123/states/started
PUT /server/containers/{containerId}/tasks/{taskInstanceId}/states/stopped
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that task instance belongs to |
string |
Path |
taskInstanceId |
identifier of the task instance that should be stopped |
integer (int64) |
Query |
user |
optional user id to be used instead of authenticated user - only when bypass authenticated user is enabled |
string |
HTTP Code | Description | Schema |
---|---|---|
404 |
Task with given id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/tasks/123/states/stopped
PUT /server/containers/{containerId}/tasks/{taskInstanceId}/states/suspended
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
container id that task instance belongs to |
string |
Path |
taskInstanceId |
identifier of the task instance that should be suspended |
integer (int64) |
Query |
user |
optional user id to be used instead of authenticated user - only when bypass authenticated user is enabled |
string |
HTTP Code | Description | Schema |
---|---|---|
404 |
Task with given id not found |
No Content |
500 |
Unexpected error |
No Content |
application/json
application/xml
/server/containers/evaluation_1.0.0-SNAPSHOT/tasks/123/states/suspended
POST /server/containers/{containerId}/scesim
Type | Name | Description | Schema |
---|---|---|---|
Path |
containerId |
Container id |
string |
Body |
body |
Test scenario file content to be executed |
string |
HTTP Code | Description | Schema |
---|---|---|
200 |
successful operation |
|
400 |
Malformed test scenario file |
No Content |
404 |
Container not found |
No Content |
500 |
Unexpected error |
No Content |
application/xml
application/json
/server/containers/string/scesim
{
"type" : "SUCCESS",
"msg" : "string"
}
Want to talk to the experts? Red Hat offers certified binaries with enterprise consulting. See services for more information.