Skip to content

Commit

Permalink
feat(bpmn): set default ttl to 6 months
Browse files Browse the repository at this point in the history
closes #3701
  • Loading branch information
marstamm committed Jul 11, 2023
1 parent d507372 commit 798519f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions client/src/app/tabs/bpmn/__tests__/DiagramSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,16 @@ describe('tabs/bpmn', function() {
expect(contents).to.contain('id="Process_{{ ID:process }}"');
});


it('should contain defaults', function() {

// when
const contents = require('../diagram.bpmn');

// then
expect(contents).to.contain('camunda:historyTimeToLive="180"');
});

});

});
4 changes: 2 additions & 2 deletions client/src/app/tabs/bpmn/diagram.bpmn
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" id="Definitions_{{ ID }}" targetNamespace="http://bpmn.io/schema/bpmn" xmlns:modeler="http://camunda.org/schema/modeler/1.0" exporter="{{ EXPORTER_NAME }}" exporterVersion="{{ EXPORTER_VERSION }}" modeler:executionPlatform="Camunda Platform" modeler:executionPlatformVersion="{{ CAMUNDA_PLATFORM_VERSION }}">
<bpmn:process id="Process_{{ ID:process }}" isExecutable="true">
<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" id="Definitions_{{ ID }}" targetNamespace="http://bpmn.io/schema/bpmn" xmlns:modeler="http://camunda.org/schema/modeler/1.0" exporter="{{ EXPORTER_NAME }}" exporterVersion="{{ EXPORTER_VERSION }}" modeler:executionPlatform="Camunda Platform" modeler:executionPlatformVersion="{{ CAMUNDA_PLATFORM_VERSION }}">
<bpmn:process id="Process_{{ ID:process }}" isExecutable="true" camunda:historyTimeToLive="180">
<bpmn:startEvent id="StartEvent_1" />
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
Expand Down

0 comments on commit 798519f

Please sign in to comment.