Get DMN 1.0 XML

Retrieves the DMN 1.0 XML of this decision definition.

Method

GET /decision-definition/{id}/xml

GET /decision-definition/key/{key}/xml (returns the XML for the latest version of decision definition)

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.

Result

A JSON object containing the id of the decision definition and the DMN 1.0 XML.

Name Value 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.
400 application/json The path parameter "key" has no value. See the Introduction for the error response format.
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
  ..."
}

On this Page: