Decision Server REST API - decisiontraces Resource - GET Method

Returns all the Decision Warehouse traces that match the optional selection filters from the repository.

Sample Method Invocation

GET /api/v1/decisiontraces[?rulesetpath={string}][&start={string}][&end={string}][&offset={string}][&limit={string}][&parts={string}]

Parameters

The method has the following parameters:
Name Value Type Use Description
rulesetpath string optional The ruleset path for which traces should be included. Wildcard characters '*' (for any sequence of characters) and '.' (for any character) will be taken into account if the Trace DAO supports it. And if so, these characters will be escaped if preceded by a backslash character.
start string optional The start date to include traces. To be specified as an epoch time stamp in milliseconds.
end string optional The last date to include traces. To be specified as an epoch time stamp in milliseconds.
offset string optional The offset where to start including results from.
limit string optional The maximum number of results to be included in the response.
parts string optional The 'parts' URI query parameter, which is an optional parameter. Clients can use it to specify a list of one or more parts to be returned in the response data for a particular request. The value of the parts parameter is a "|"-delimited list of part names. In addition to specific part names, you can specify "all" or "none". If the parts parameter is not specified, the default value "all" is used.
Value Description
all Default value. All the information in the decision trace response (executionId, ruleset, execution, environment) is included, if they are available.
executionId The execution identifier information of the decision trace.
ruleset The ruleset information of the decision trace.
ruleset_properties The ruleset properties information of the decision trace.
rules The rules information of the decision trace.
rules_information The rules information details of the decision trace.
tasks The tasks information of the decision trace.
tasks_information The tasks information details of the decision trace.
execution The execution information of the decision trace.
execution_date The execution date information of the decision trace.
execution_duration The execution duration information of the decision trace.
execution_total_rules_fired The total number of rules fired information of the decision trace.
execution_total_rules_not_fired The total number of rules not fired information of the decision trace.
execution_total_tasks_executed The total number of tasks executed information of the decision trace.
execution_total_tasks_not_executed The total number of tasks not executed information of the decision trace.
execution_request The execution request information of the decision trace.
execution_request_path The execution request path information of the decision trace.
execution_request_user_data The user data information of the decision trace.
execution_request_parameters The execution request parameters information of the decision trace.
execution_response The execution response information of the decision trace.
execution_response_path The execution response path information of the decision trace.
execution_response_output The execution output information of the decision trace.
execution_response_parameters The execution response parameters information of the decision trace.
execution_events The execution events information of the decision trace.
working_memory The working memory information of the decision trace.
bound_objects The bound objects information of the decision trace.
execution_rules_not_fired The rules not fired information of the decision trace.
execution_tasks_not_executed The tasks not executed information of the decision trace.
environment The environment information of the decision trace.
endpoint_ip The execution endpoint IP information of the decision trace.
system_properties The system properties information of the decision trace.

Request Content

None.

Response Content

The default content-type is application/xml.

MIME Type: application/json

(Schema to go here)
+ View Example
[ {
  "executionId" : "{execution identifier}"
} ]

MIME Type: application/xml

+ View Schema
<?xml version="1.0" encoding="UTF-8"?><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="" version="1.0">

  <xs:element name="decisionTrace" type="trace"/>

  <xs:element name="decisionTraces" type="traces"/>

  <xs:element name="details" type="elementInfo"/>

  <xs:element name="environment" type="environment"/>

  <xs:element name="event" type="executionEventInfo"/>

  <xs:element name="execution" type="execution"/>

  <xs:element name="parameter" type="parameter"/>

  <xs:element name="properties" type="elementProperties"/>

  <xs:element name="property" type="property"/>

  <xs:element name="request" type="executionRequest"/>

  <xs:element name="response" type="executionResponse"/>

  <xs:element name="ruleEvent" type="ruleExecutionEvent"/>

  <xs:element name="rules" nillable="true" type="xs:anyType"/>

  <xs:element name="taskEvent" type="taskExecutionEvent"/>

  <xs:element name="tasks" nillable="true" type="xs:anyType"/>

  <xs:complexType name="traces">
    <xs:sequence>
      <xs:element maxOccurs="unbounded" minOccurs="0" ref="decisionTrace"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="trace">
    <xs:sequence>
      <xs:element minOccurs="0" name="executionId" type="xs:string"/>
      <xs:element minOccurs="0" name="ruleset" type="rulesetDetails"/>
      <xs:element minOccurs="0" ref="execution"/>
      <xs:element minOccurs="0" ref="environment"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="rulesetDetails">
    <xs:sequence>
      <xs:element minOccurs="0" ref="properties"/>
      <xs:element minOccurs="0" ref="rules"/>
      <xs:element minOccurs="0" name="rulesInformation" type="rules"/>
      <xs:element minOccurs="0" ref="tasks"/>
      <xs:element minOccurs="0" name="tasksInformation" type="tasks"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="elementProperties">
    <xs:sequence>
      <xs:element maxOccurs="unbounded" minOccurs="0" ref="property"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="property">
    <xs:simpleContent>
      <xs:extension base="xs:string">
        <xs:attribute name="name" type="xs:string"/>
      </xs:extension>
    </xs:simpleContent>
  </xs:complexType>

  <xs:complexType name="rulesList">
    <xs:sequence>
      <xs:element maxOccurs="unbounded" minOccurs="0" name="rule" type="elementName"/>
    </xs:sequence>
    <xs:attribute name="count" type="xs:long"/>
  </xs:complexType>

  <xs:complexType name="elementName">
    <xs:sequence/>
    <xs:attribute name="name" type="xs:string"/>
  </xs:complexType>

  <xs:complexType name="rules">
    <xs:sequence>
      <xs:element maxOccurs="unbounded" minOccurs="0" name="rule" type="elementInfo"/>
    </xs:sequence>
    <xs:attribute name="count" type="xs:long"/>
  </xs:complexType>

  <xs:complexType name="elementInfo">
    <xs:sequence>
      <xs:element minOccurs="0" name="uuid" type="xs:string"/>
      <xs:element minOccurs="0" name="businessName" type="xs:string"/>
      <xs:element minOccurs="0" ref="properties"/>
      <xs:element minOccurs="0" name="action" type="xs:string"/>
    </xs:sequence>
    <xs:attribute name="name" type="xs:string"/>
  </xs:complexType>

  <xs:complexType name="tasksList">
    <xs:sequence>
      <xs:element maxOccurs="unbounded" minOccurs="0" name="task" type="elementName"/>
    </xs:sequence>
    <xs:attribute name="count" type="xs:long"/>
  </xs:complexType>

  <xs:complexType name="tasks">
    <xs:sequence>
      <xs:element maxOccurs="unbounded" minOccurs="0" name="task" type="elementInfo"/>
    </xs:sequence>
    <xs:attribute name="count" type="xs:long"/>
  </xs:complexType>

  <xs:complexType name="execution">
    <xs:sequence>
      <xs:element minOccurs="0" name="date" type="xs:long"/>
      <xs:element minOccurs="0" name="duration" type="xs:long"/>
      <xs:element minOccurs="0" name="totalRulesFired" type="xs:long"/>
      <xs:element minOccurs="0" name="totalRulesNotFired" type="xs:long"/>
      <xs:element minOccurs="0" name="totalTasksExecuted" type="xs:long"/>
      <xs:element minOccurs="0" name="totalTasksNotExecuted" type="xs:long"/>
      <xs:element minOccurs="0" ref="request"/>
      <xs:element minOccurs="0" ref="response"/>
      <xs:element minOccurs="0" name="rulesNotFired" type="rulesList"/>
      <xs:element minOccurs="0" name="tasksNotExecuted" type="tasksList"/>
      <xs:element minOccurs="0" name="events">
        <xs:complexType>
          <xs:sequence>
            <xs:any maxOccurs="unbounded" minOccurs="0" namespace="##other" processContents="skip"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element minOccurs="0" name="workingMemory">
        <xs:complexType>
          <xs:sequence>
            <xs:element maxOccurs="unbounded" minOccurs="0" name="object" type="xs:string"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="executionRequest">
    <xs:sequence>
      <xs:element minOccurs="0" name="parameters">
        <xs:complexType>
          <xs:sequence>
            <xs:element maxOccurs="unbounded" minOccurs="0" ref="parameter"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element minOccurs="0" name="userData" type="xs:string"/>
    </xs:sequence>
    <xs:attribute name="rulesetPath" type="xs:string"/>
  </xs:complexType>

  <xs:complexType name="parameter">
    <xs:simpleContent>
      <xs:extension base="xs:string">
        <xs:attribute name="name" type="xs:string"/>
      </xs:extension>
    </xs:simpleContent>
  </xs:complexType>

  <xs:complexType name="executionResponse">
    <xs:sequence>
      <xs:element minOccurs="0" name="parameters">
        <xs:complexType>
          <xs:sequence>
            <xs:element maxOccurs="unbounded" minOccurs="0" ref="parameter"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element minOccurs="0" name="output" type="xs:string"/>
    </xs:sequence>
    <xs:attribute name="rulesetPath" type="xs:string"/>
  </xs:complexType>

  <xs:complexType name="ruleExecutionEvent">
    <xs:sequence>
      <xs:element minOccurs="0" name="start" type="xs:long"/>
      <xs:element minOccurs="0" name="end" type="xs:long"/>
      <xs:element minOccurs="0" name="objects">
        <xs:complexType>
          <xs:sequence>
            <xs:element maxOccurs="unbounded" minOccurs="0" name="object" type="xs:string"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="name" type="xs:string"/>
  </xs:complexType>

  <xs:complexType name="taskExecutionEvent">
    <xs:sequence>
      <xs:element minOccurs="0" name="start" type="xs:long"/>
      <xs:element minOccurs="0" name="end" type="xs:long"/>
      <xs:element minOccurs="0" name="events">
        <xs:complexType>
          <xs:sequence>
            <xs:any maxOccurs="unbounded" minOccurs="0" namespace="##other" processContents="skip"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="name" type="xs:string"/>
  </xs:complexType>

  <xs:complexType name="executionEventInfo">
    <xs:sequence>
      <xs:element minOccurs="0" name="objects">
        <xs:complexType>
          <xs:sequence>
            <xs:element maxOccurs="unbounded" minOccurs="0" name="object" type="xs:string"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element minOccurs="0" name="events">
        <xs:complexType>
          <xs:sequence>
            <xs:element maxOccurs="unbounded" minOccurs="0" ref="event"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="type" type="xs:string"/>
    <xs:attribute name="name" type="xs:string"/>
  </xs:complexType>

  <xs:complexType name="environment">
    <xs:sequence>
      <xs:element minOccurs="0" name="executionEndpointIP" type="xs:string"/>
      <xs:element minOccurs="0" name="systemProperties" type="elementProperties"/>
    </xs:sequence>
  </xs:complexType>
</xs:schema>
+ View Example
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<decisionTraces>
    <decisionTrace>
        <executionId>{execution identifier}</executionId>
    </decisionTrace>
</decisionTraces>

Status Codes

The method returns one of the following status codes:
Code Description
200 Successful completion.
204 Successful completion, no content available.
400 The parameters are not valid or they are missing.
401 The caller is not authorized for this request.
403 The caller is not allowed to complete this request.
404 The resource does not exist.
406 The requested content type or content encoding is not supported.
500 A severe problem has occurred, programmer's details are provided.

Available Since

8.8.1

Parent Topic: decisiontraces Resource