Skip to content

DMN Deployment failed because HistoryTimeToLife is not set #463

@antonAtGit

Description

@antonAtGit

Describe the bug
A DecisionTable created with the Camunda modeller cannot be deployed because the historytimeToLife field is supposedly not set.
However, the field is set. In the XML, camunda must first be manually replaced with operaton to enable deployment.

To Reproduce
Steps to reproduce the behavior:

  1. Create a DMN
  2. Set the HistoryTimeToLife value
  3. Deploy the DMN
  4. See error

Expected behavior

  1. Create a DMN in Camunda Modeller
  2. Deploy
  3. Make Decisions ;-)
    Screenshots
Image

Desktop (please complete the following information):

  • Operaton-Version: 1.0.0-beta-1

Additional context
Broken DMN
<?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_1mji5bg" name="DRD" namespace="http://camunda.org/schema/1.0/dmn" exporter="Camunda Modeler" exporterVersion="5.17.0" modeler:executionPlatform="Camunda Platform" modeler:executionPlatformVersion="7.20.0"> <decision id="Decision_0j4vkd9" name="Decision" camunda:historyTimeToLive="P180D"> <decisionTable id="DecisionTable_147fgwv"> <input id="InputClause_13pp7ge" label="Input"> <inputExpression id="LiteralExpression_0dvz4pg" typeRef="string" /> </input> <output id="OutputClause_0mf8yva" label="Outpu" typeRef="string" /> <rule id="DecisionRule_0915kz7"> <inputEntry id="UnaryTests_0mx2h2n"> <text>"1"</text> </inputEntry> <outputEntry id="LiteralExpression_1in6032"> <text>"yes"</text> </outputEntry> </rule> <rule id="DecisionRule_0grd5hg"> <inputEntry id="UnaryTests_0dxrzas"> <text>"2"</text> </inputEntry> <outputEntry id="LiteralExpression_1qrdzar"> <text>"no"</text> </outputEntry> </rule> </decisionTable> </decision> <dmndi:DMNDI> <dmndi:DMNDiagram> <dmndi:DMNShape id="DMNShape_1icafc9" dmnElementRef="Decision_0j4vkd9"> <dc:Bounds height="80" width="180" x="160" y="80" /> </dmndi:DMNShape> </dmndi:DMNDiagram> </dmndi:DMNDI> </definitions>

Working DMN
<?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://operaton.org/schema/modeler/1.0" xmlns:operaton="http://operaton.org/schema/1.0/dmn" id="Definitions_1mji5bg" name="DRD" namespace="http://operaton.org/schema/1.0/dmn" exporter="operaton Modeler" exporterVersion="5.17.0" modeler:executionPlatform="operaton Platform" modeler:executionPlatformVersion="7.20.0"> <decision id="Decision_0j4vkd9" name="Decision" operaton:historyTimeToLive="P180D"> <decisionTable id="DecisionTable_147fgwv"> <input id="InputClause_13pp7ge" label="Input"> <inputExpression id="LiteralExpression_0dvz4pg" typeRef="string" /> </input> <output id="OutputClause_0mf8yva" label="Outpu" typeRef="string" /> <rule id="DecisionRule_0915kz7"> <inputEntry id="UnaryTests_0mx2h2n"> <text>"1"</text> </inputEntry> <outputEntry id="LiteralExpression_1in6032"> <text>"yes"</text> </outputEntry> </rule> <rule id="DecisionRule_0grd5hg"> <inputEntry id="UnaryTests_0dxrzas"> <text>"2"</text> </inputEntry> <outputEntry id="LiteralExpression_1qrdzar"> <text>"no"</text> </outputEntry> </rule> </decisionTable> </decision> <dmndi:DMNDI> <dmndi:DMNDiagram> <dmndi:DMNShape id="DMNShape_1icafc9" dmnElementRef="Decision_0j4vkd9"> <dc:Bounds height="80" width="180" x="160" y="80" /> </dmndi:DMNShape> </dmndi:DMNDiagram> </dmndi:DMNDI> </definitions>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions