Hello everyone,
as per this docs: Overview | Camunda 8 Docs
I didn’t find how to only get the latest version when using search Process Definition API, does someone know how to do it?
and also does Camunda Operate API support to expand the xml within the list?
e.g. when query search to get latest version of process definition the original schema is
The search will not return the full XML, however. For that you need to use the GET /v1/process-definitions/{key}/xmlendpoint, using the process definition key that you found in the search.
Thanks @nathan.loding , yes we can include version, but what paramater to get latest/max version of ProcessDefinition
e.g
{
"filter": {
"version": 3 -> # This is not what I want to do, because I dont know latest version for each process definitions
},
"size": 50,
"sort": [
{
"field": "bpmnProcessId",
"order": "ASC"
}
]
}
I don’t know what latest version of each Process Definitions, is there a way like we can put version: latest or anything to get latest version for each of Process Definition