How to get rule details of decision (Completed!)

Define a decision for a BusinessRuleTask as below, i want get hit rule detail when process executed specific decison after, example i need rule that output equals ‘reject’ lines, i will store that recored to db but only get output result from class org.camunda.bpm.dmn.engine.DmnDecisionResult. After i read doc for camunda i realized that a HistoryService ability to get more information about decision, History of Evaluated Decisions

Below is my decision definition, i just get content with tag equals , i know camunda Cockipt will highlight if a rule hit, but i want restore that to db.

How to do it?


<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="" xmlns:biodi="" xmlns:camunda="" id="Definitions_1azwa73" name="DRD" namespace="" exporter="Camunda Modeler" exporterVersion="3.3.4">
  <decision id="decision1" name="Decision 1">
      <biodi:bounds x="150" y="150" width="180" height="80" />
    <decisionTable id="decisionTable_1" hitPolicy="RULE ORDER">
      <input id="input_1" label="Code" camunda:inputVariable="recored">
        <inputExpression id="inputExpression_1" typeRef="integer">
      <output id="output_1" label="Advice" name="advice" typeRef="string" />
      <rule id="DecisionRule_09e42qn">
        <inputEntry id="UnaryTests_1hfmb4d" expressionLanguage="feel">
        <outputEntry id="LiteralExpression_0mini0s">
      <rule id="DecisionRule_1vv6cjl">
        <inputEntry id="UnaryTests_0k9keoc" expressionLanguage="feel">
          <text>&gt; 404</text>
        <outputEntry id="LiteralExpression_0fexgz6">
      <rule id="DecisionRule_0pyjtfv">
        <inputEntry id="UnaryTests_1uynqnb">
          <text>&gt; 300</text>
        <outputEntry id="LiteralExpression_06jcz2h">

For questions regarding Camunda BPM please head over to the Camunda Forum.

Ok it’s my problem, thank you.

1 Like