Skip to content

Commit

Permalink
fix process TTL
Browse files Browse the repository at this point in the history
  • Loading branch information
zambrovski committed Oct 10, 2023
1 parent ee3c8cb commit ac9cc98
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ class TestDriver(
otherTaskDefinitionKey: String = "another-user-task"
): BpmnModelInstance = Bpmn
.createExecutableProcess(processId)
.camundaHistoryTimeToLive(1)
// start event
.startEvent("start").camundaAsyncAfter(asyncOnStart)
// user task
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ class ProcessDefinitionServiceITest {
val startEventId = "start"
val modelInstance = Bpmn
.createExecutableProcess(processId)
.camundaHistoryTimeToLive(1)
.startEvent(startEventId)
.endEvent("end")
.done().apply {
Expand Down Expand Up @@ -93,6 +94,7 @@ class ProcessDefinitionServiceITest {
val startEventId = "start"
val modelInstance = Bpmn
.createExecutableProcess(processId)
.camundaHistoryTimeToLive(1)
.startEvent(startEventId)
.endEvent("end")
.done().apply {
Expand Down
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" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:modeler="http://camunda.org/schema/modeler/1.0" id="Definitions_0xgy7na" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="5.10.0" modeler:executionPlatform="Camunda Platform" modeler:executionPlatformVersion="7.19.0">
<bpmn:process id="my-id" name="My Process" isExecutable="true" camunda:historyTimeToLive="0">
<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" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:modeler="http://camunda.org/schema/modeler/1.0" id="Definitions_0xgy7na" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="5.6.0" modeler:executionPlatform="Camunda Platform" modeler:executionPlatformVersion="7.19.0">
<bpmn:process id="my-id" name="My Process" isExecutable="true" camunda:historyTimeToLive="1">
<bpmn:endEvent id="Event_0b6e9a9">
<bpmn:incoming>Flow_0rqm55e</bpmn:incoming>
<bpmn:incoming>Flow_1k4xpiz</bpmn:incoming>
Expand Down

0 comments on commit ac9cc98

Please sign in to comment.