cURL
curl --request GET \ --url http://{host}:{port}/{contextPath}/process-definition/{id}/xml \ --header 'Authorization: Basic <encoded-value>'
{ "id": "anProcessDefinitionId", "bpmn20Xml": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<definitions\n xmlns=\"http://www.omg.org/spec/BPMN/20100524/MODEL\"\n xmlns:camunda=\"http://camunda.org/schema/1.0/bpmn\"\n targetNamespace=\"Examples\">\n <process id=\"oneTaskProcess\" isExecutable=\"true\">\n <startEvent id=\"theStart\" />\n <sequenceFlow id=\"flow1\" sourceRef=\"theStart\" targetRef=\"theEnd\" />\n <endEvent id=\"theEnd\" />\n </process>\n </definitions>" }
Retrieves the BPMN 2.0 XML of a process definition.
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Basic <encoded-value>
<encoded-value>
username:password
The id of the process definition.
Request successful.
An escaped XML string containing the XML that this definition was deployed with. Carriage returns, line feeds and quotation marks are escaped.