Deploying DMN Tables to Operaton

Hi guys,

first of all a big shoutout to the project team. I can’t tell you how much I appreciate your work :folded_hands:

Now coming to my problem. I have a running Operaton instance and I am able to model and deploy BPM processes with the Camunda modeler. That works like a charm. Now I want to use a DMN table in my process and I cannot really deploy the table to Operaton. Is the DMN deployment via REST not supported or is there maybe something wrong with my DMN table itself? I am getting the following error:

ENGINE-22004 Unable to transform DMN resource 'evaluateErrorCode.dmn'. [ deploy-error ]

The DMN looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="https://www.omg.org/spec/DMN/20191111/MODEL/" xmlns:dmndi="https://www.omg.org/spec/DMN/20191111/DMNDI/" xmlns:dc="http://www.omg.org/spec/DMN/20180521/DC/" xmlns:modeler="http://camunda.org/schema/modeler/1.0" xmlns:camunda="http://camunda.org/schema/1.0/dmn" id="Definitions_0kdyy1m" name="DRD" namespace="http://camunda.org/schema/1.0/dmn" exporter="Camunda Modeler" exporterVersion="5.35.0" modeler:executionPlatform="Camunda Platform" modeler:executionPlatformVersion="7.23.0">
  <decision id="evaluateErrorCode" name="EvaluateErrorCode">
    <decisionTable id="DecisionTable_0w4axlz" hitPolicy="FIRST">
      <input id="Input_1" label="Error Code" camunda:inputVariable="error_code">
        <inputExpression id="InputExpression_1" typeRef="string">
          <text>error_code</text>
        </inputExpression>
      </input>
      <output id="Output_1" label="Output" name="error_code_severity" typeRef="string" />
      <rule id="DecisionRule_0lufk3c">
        <description>Anlage in Betrieb</description>
        <inputEntry id="UnaryTests_1pzb37m">
          <text>"0.0"</text>
        </inputEntry>
        <outputEntry id="LiteralExpression_0ucodhf">
          <text>"info"</text>
        </outputEntry>
      </rule>
      <rule id="DecisionRule_0d6x1jg">
        <description>Anlage startet</description>
        <inputEntry id="UnaryTests_01o0z7h">
          <text>"0.1"</text>
        </inputEntry>
        <outputEntry id="LiteralExpression_0bf1pir">
          <text>"info"</text>
        </outputEntry>
      </rule>
      <rule id="DecisionRule_1bxyoe5">
        <description>Anlage bereit</description>
        <inputEntry id="UnaryTests_0vwduxr">
          <text>"0.2"</text>
        </inputEntry>
        <outputEntry id="LiteralExpression_03bm9zy">
          <text>"info"</text>
        </outputEntry>
      </rule>
      <rule id="DecisionRule_1wrhinz">
        <description>Startvorbereitung</description>
        <inputEntry id="UnaryTests_0erivje">
          <text>"0.3"</text>
        </inputEntry>
        <outputEntry id="LiteralExpression_0280365">
          <text>"info"</text>
        </outputEntry>
      </rule>
      <rule id="DecisionRule_1fo9i6p">
        <description>Anlage während Wartung in Betrieb</description>
        <inputEntry id="UnaryTests_1tkz0nr">
          <text>"0.8"</text>
        </inputEntry>
        <outputEntry id="LiteralExpression_18y0ti8">
          <text>"info"</text>
        </outputEntry>
      </rule>
      <rule id="DecisionRule_02vbasv">
        <description>Windgeschwindigkeit zu niedrig</description>
        <inputEntry id="UnaryTests_1jtrdrc">
          <text>"2.1"</text>
        </inputEntry>
        <outputEntry id="LiteralExpression_0y4ped7">
          <text>"info"</text>
        </outputEntry>
      </rule>
      <rule id="DecisionRule_1gci12t">
        <description>Wartung</description>
        <inputEntry id="UnaryTests_0px0ttj">
          <text>"8.0"</text>
        </inputEntry>
        <outputEntry id="LiteralExpression_05igw6w">
          <text>"info"</text>
        </outputEntry>
      </rule>
      <rule id="DecisionRule_1f6vxkk">
        <description>Kein Bekannter Statuscode - Check</description>
        <inputEntry id="UnaryTests_0fdyke4">
          <text></text>
        </inputEntry>
        <outputEntry id="LiteralExpression_02x9q82">
          <text>"check"</text>
        </outputEntry>
      </rule>
    </decisionTable>
  </decision>
  <dmndi:DMNDI>
    <dmndi:DMNDiagram id="DMNDiagram_1qvh8fc">
      <dmndi:DMNShape id="DMNShape_02wiqw4" dmnElementRef="evaluateErrorCode">
        <dc:Bounds height="80" width="180" x="160" y="100" />
      </dmndi:DMNShape>
    </dmndi:DMNDiagram>
  </dmndi:DMNDI>
</definitions>

Thanks in advance.

Hi,

which version of Operaton do you use? We had a bug in beta-1 that prevented DMN deployments from working.

It’s working fine for us since beta-2.

Did you also check that you set the History Cleanup Time to live in your decision?

Cheers,

Julian

2 Likes

Just checked it - I am running Operaton: (v1.0.0-beta-4-SNAPSHOT)

How can I set the History Cleanup Time?

1 Like

Thank you so much Julian - that solved the problem, I am able to deploy the DMN now :raising_hands:

4 Likes