What are the ways I could obtain deployed process and elements details like the service tasks, job worker, etc from Camunda?
You can use the API Search Process Definitions to locate the process key of your process:
POST http://localhost:8080/v1/process-definitions/search
You can filter the results using the filter object in the payload:
{
"filter" : {
"bpmnProcessId" : "<Process ID>"
}
}
This will give you the process key:
{
"items": [
{
"key": <Number representing the process key>,
"name": "<Process Name>",
"version": <Version Number>,
"versionTag": "<Version Tag>",
"bpmnProcessId": "<Process ID>",
"tenantId": "<default>"
},
Note: apparently, in the response, the element
"sortValues": [
],
Has the key of the last version of the process, but I’m not sure. Doc doesn’t explain what this field means.
Use the process key to call the Get Process Definition XML API:
GET http://localhost:8080/v1/process-definitions//xml
This will return the XML definition of the elements of the version of your process.
Thank you @claudio_rio for your reply.
How about information about its elements? Like the user task and service task.
No problem.
Everything should be in the XML returned by the last API.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.