Get DMN XML
Retrieves the DMN XML of a decision definition.
Method
GET /decision-definition/{id}/xml
GET /decision-definition/key/{key}/xml
(returns the XML for the latest version of the decision definition which belongs to no tenant)
GET /decision-definition/key/{key}/tenant-id/{tenant-id}/xml
(returns the XML of the latest version of the decision definition for tenant)
Parameters
Path Parameters
Name | Description |
---|---|
id | The id of the decision definition. |
key | The key of the decision definition (the latest version thereof) to be retrieved. |
tenant-id | The id of the tenant the decision definition belongs to. |
Result
A JSON object containing the id of the decision definition and the DMN 1.0 XML.
Name | Type | Description |
---|---|---|
id | String | The id of the decision definition. |
dmnXml | String | An escaped XML string containing the XML that this decision definition was deployed with. Carriage returns, line feeds and quotation marks are escaped. |
Response codes
Code | Media type | Description |
---|---|---|
200 | application/json | Request successful. |
404 | application/json | Decision definition with given id or key does not exist. See the Introduction for the error response format. |
Example
Request
GET /decision-definition/aDecisionDefinitionId/xml
GET /decision-definition/key/aDecisionDefinitionKey/xml
Response
{
"id":"aDecisionDefinitionId",
"dmnXml":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<Definitions xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"
...
<Decision id=\"aDecisionDefinitionKey\" name=\"My Decision\">\r\n
..."
}