Get BPMN 2.0 XML based on the attributes like processdefinitionKey, tenantId and Version/version Tag

I want to get BPMN 2.0 XML based on the attributes like processdefinitionKey, tenantId and Version/version Tag.

The below api always retrieves the latest deployed bpmn xml from the engine. Get BPMN 2.0 XML | docs.camunda.org

I want to get bpmn xml for previous versions of the process definition key. I didn’t found any rest api to get previous versions of the process definitions xml. Currently rest api retrieves only latest deployemnts of bpmn :frowning:

Can someone tell how to get previous versions of the process definitions?

Hi @aravindhrs,

first get the processdefinition you are looking for with https://docs.camunda.org/manual/7.11/reference/rest/process-definition/get-query/.

Then take the ID and request the XML for the processDefinitionID.

Hope this helps, Ingo