HistoricDecisionInstance and has the event type evaluate.
For details about the history mechanism as such, refer to the History and Audit
Event Log.
History LevelHistory level FULL is required. Otherwise, no history
for decisions is created.
Query for evaluated Decisions
The History Service can be used to query forHistoricDecisionInstances. For
example, use the following query to get all history entries for a decision
definition with key checkOrder ordered by the time when the decision was
evaluated.
includeInputs() and includeOutputs() on
the query to retrieve the inputs and outputs from the result.
The Historic Decision Instance
The HistoricDecisionInstance contains information about a single evaluation of a decision.HistoricDecisionInstance. The same applies for decisions evaluated from
a case, where the history instance will reference the corresponding case
instances.
Additionally, if the decision is a decision table with hit policy collect and
an aggregator function, then the result of the aggregation can be retrieved by
the getCollectResultValue() method.
For more information on supported hit policies please see the DMN 1.3
reference.
Historic Decision Input Instance
The HistoricDecisionInputInstance represents one input of an evaluated decision (e.g., an input clause of a decision table).Historic Decision Output Instance
The HistoricDecisionOutputInstance represents one output entry of an evaluated decision. If the decision is implemented as decision table, theHistoricDecisionInstance contains one HistoricDecisionOutputInstance
for each output clause and matched rule.