Get DMN XML
Retrieves the DMN XML of a decision requirements definition.
Method
GET /decision-requirements-definition/{id}/xml
GET /decision-requirements-definition/key/{key}/xml
(returns the XML for the latest version of the decision requirements definition which belongs to no tenant)
GET /decision-requirements-definition/key/{key}/tenant-id/{tenant-id}/xml
(returns the XML of the latest version of the decision requirements definition for tenant)
Parameters
Path Parameters
Name | Description |
---|---|
id | The id of the decision requirements definition. |
key | The key of the decision requirements definition (the latest version thereof) to be retrieved. |
tenant-id | The id of the tenant to which the decision requirements definition belongs to. |
Result
A JSON object containing the id of the decision requirements definition and the DMN 1.3 XML.
Name | Type | Description |
---|---|---|
id | String | The id of the decision requirements definition. |
dmnXml | String | An escaped XML string containing the XML that this decision requirements 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 requirements definition with given id or key does not exist. See the Introduction for the error response format. |
Example
Request
GET /decision-requirements-definition/invoice:1:9f86d61f-9ee5-11e3-be3b-606720b6f99c/xml
GET /decision-requirements-definition/key/invoiceKey/xml
Response
{
"id":"invoice:1:9f86d61f-9ee5-11e3-be3b-606720b6f99c",
"dmnXml":"<?xml version=\"1.1\" encoding=\"UTF-8\"?>\r\n
...
<definitions id=\"dish\" name=\"Dish\" namespace=\"test-drg\"
...
"
}