From 927f688aeca51e12fb78bf330b82d0db7975d686 Mon Sep 17 00:00:00 2001 From: Adam Boczek Date: Mon, 9 Dec 2024 10:28:13 +0100 Subject: [PATCH] add versionTag property to process definition (#160) --- .../java/io/camunda/operate/model/ProcessDefinition.java | 9 +++++++++ .../operate/search/ProcessDefinitionFilterBuilder.java | 5 +++++ 2 files changed, 14 insertions(+) diff --git a/extension/java-client-operate/src/main/java/io/camunda/operate/model/ProcessDefinition.java b/extension/java-client-operate/src/main/java/io/camunda/operate/model/ProcessDefinition.java index 00f264f..4f3fbdc 100644 --- a/extension/java-client-operate/src/main/java/io/camunda/operate/model/ProcessDefinition.java +++ b/extension/java-client-operate/src/main/java/io/camunda/operate/model/ProcessDefinition.java @@ -6,6 +6,7 @@ public class ProcessDefinition { private Long version; private String bpmnProcessId; private String tenantId; + private String versionTag; public Long getKey() { return key; @@ -46,4 +47,12 @@ public String getTenantId() { public void setTenantId(String tenantId) { this.tenantId = tenantId; } + + public String getVersionTag() { + return versionTag; + } + + public void setVersionTag(String versionTag) { + this.versionTag = versionTag; + } } diff --git a/extension/java-client-operate/src/main/java/io/camunda/operate/search/ProcessDefinitionFilterBuilder.java b/extension/java-client-operate/src/main/java/io/camunda/operate/search/ProcessDefinitionFilterBuilder.java index be3e3ee..9db074c 100644 --- a/extension/java-client-operate/src/main/java/io/camunda/operate/search/ProcessDefinitionFilterBuilder.java +++ b/extension/java-client-operate/src/main/java/io/camunda/operate/search/ProcessDefinitionFilterBuilder.java @@ -33,6 +33,11 @@ public ProcessDefinitionFilterBuilder tenantId(String tenantId) { return this; } + public ProcessDefinitionFilterBuilder versionTag(String versionTag) { + filter.setVersionTag(versionTag); + return this; + } + public ProcessDefinitionFilter build() { return filter; }