[GET] /process-definition
/api/bpm/processes/{id}/process-definition
Description | To retrieve workflow model data for rendering the process graph in the enaio administrator-for-workflow UI. Currently, it returns only the basic information necessary for rendering the workflow graph. It provides data derived from the process definition of the specified process, including the process id and name, a list of tasks, and a list of transitions between those tasks. For each task, the response includes its id, name, type, and position on the graph. For each transition, it includes the transition id, the source (fromTaskId) and target (toTaskId) task ids, a flag indicating whether the transition represents a loop, and a list of vertices used to draw the transition path visually. The type property for each task has the following values according to enaio server manual(Job: wfm.GetWorkflow):
| ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Required Systemrole | R_WFADM_START (ID = 20) | ||||||||||||||
Request | GET | ||||||||||||||
Request Query Parameter |
| ||||||||||||||
Response | JSON | ||||||||||||||
Minimum Version | 1.0.0 | ||||||||||||||
Request |
| ||||||||||||||
Result | {
"id": "5FE2BE3CB4904AE1A97C54F052598770",
"name": "ColumnRequiredTest",
"tasks": [
{
"id": "00000000000000000000000000000000",
"name": "StartActivity",
"type": "StartTask",
"position": {
"x": 230,
"y": 0,
"width": 144,
"height": 51
}
},
{
"id": "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF",
"name": "EndActivity",
"type": "EndTask",
"position": {
"x": 230,
"y": 230,
"width": 144,
"height": 51
}
},
{
"id": "2AD7F062EDCF4C218476B12B9B0F2779",
"name": "Activity",
"type": "UserTask",
"position": {
"x": 230,
"y": 115,
"width": 144,
"height": 54
}
}
],
"transitions": [
{
"id": "00000000000000000000000000000100",
"fromTaskId": "00000000000000000000000000000000",
"toTaskId": "2AD7F062EDCF4C218476B12B9B0F2779",
"loop": false,
"vertices": [
{
"x": 302,
"y": 48
},
{
"x": 302,
"y": 118
}
]
},
{
"id": "25DC90412C2C4F6E8AFD641C69DA071D",
"fromTaskId": "2AD7F062EDCF4C218476B12B9B0F2779",
"toTaskId": "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF",
"loop": false,
"vertices": [
{
"x": 302,
"y": 166
},
{
"x": 302,
"y": 233
}
]
}
]
} |