From e527a1df037359ce83d44ee2dc32ce99f7763b42 Mon Sep 17 00:00:00 2001 From: Christophe Date: Fri, 3 Mar 2023 09:58:58 +0100 Subject: [PATCH] new version for 8.1.7 to get flowNodeId --- README.md | 2 +- build.gradle | 4 ++-- .../io/camunda/operate/dto/FlownodeInstance.java | 7 +++++++ .../operate/search/FlownodeInstanceFilter.java | 16 ++++++++++++++++ 4 files changed, 26 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 115d91b..ed326a4 100644 --- a/README.md +++ b/README.md @@ -140,7 +140,7 @@ You can import it to your maven or gradle project as a dependency io.camunda camunda-operate-client-java - 1.3.8 + 8.1.7.0 ``` diff --git a/build.gradle b/build.gradle index ef96b81..97ea54b 100644 --- a/build.gradle +++ b/build.gradle @@ -6,7 +6,7 @@ plugins { } group = 'io.camunda' -version = '1.3.8' +version = '8.1.7.0' sourceCompatibility = '8' repositories { @@ -16,7 +16,7 @@ repositories { dependencies { def apolloVersion = "3.2.1" def httpClientVersion = "5.1.3" - def zeebeBpmnVersion = "8.1.0" + def zeebeBpmnVersion = "8.1.7" api "org.apache.httpcomponents.client5:httpclient5:${httpClientVersion}" api "org.apache.httpcomponents.client5:httpclient5-fluent:${httpClientVersion}" diff --git a/src/main/java/io/camunda/operate/dto/FlownodeInstance.java b/src/main/java/io/camunda/operate/dto/FlownodeInstance.java index 7c6a6ec..7d0df96 100644 --- a/src/main/java/io/camunda/operate/dto/FlownodeInstance.java +++ b/src/main/java/io/camunda/operate/dto/FlownodeInstance.java @@ -7,6 +7,7 @@ public class FlownodeInstance { private Long processInstanceKey; private Date startDate; private Date endDate; + private String flowNodeId; private Long incidentKey; private String type; private FlownodeInstanceState state; @@ -35,6 +36,12 @@ public Date getEndDate() { public void setEndDate(Date endDate) { this.endDate = endDate; } + public String getFlowNodeId() { + return flowNodeId; + } + public void setFlowNodeId(String flowNodeId) { + this.flowNodeId = flowNodeId; + } public Long getIncidentKey() { return incidentKey; } diff --git a/src/main/java/io/camunda/operate/search/FlownodeInstanceFilter.java b/src/main/java/io/camunda/operate/search/FlownodeInstanceFilter.java index 63f998d..13308cb 100644 --- a/src/main/java/io/camunda/operate/search/FlownodeInstanceFilter.java +++ b/src/main/java/io/camunda/operate/search/FlownodeInstanceFilter.java @@ -11,6 +11,7 @@ public class FlownodeInstanceFilter implements Filter { private Long processInstanceKey; private Long incidentKey; private String type; + private String flowNodeId; private DateFilter startDate; private DateFilter endDate; private FlownodeInstanceState state; @@ -56,6 +57,14 @@ public void setEndDate(DateFilter endDate) { this.endDate = endDate; } + public String getFlowNodeId() { + return flowNodeId; + } + + public void setFlowNodeId(String flowNodeId) { + this.flowNodeId = flowNodeId; + } + public FlownodeInstanceState getState() { return state; } @@ -78,6 +87,7 @@ public static class Builder { private String type; private DateFilter startDate; private DateFilter endDate; + private String flowNodeId; private FlownodeInstanceState state; private Boolean incident; @@ -109,6 +119,11 @@ public Builder endDate(DateFilter endDate) { this.endDate = endDate; return this; } + + public Builder flowNodeId(String flowNodeId) { + this.flowNodeId = flowNodeId; + return this; + } public Builder state(FlownodeInstanceState state) { this.state = state; @@ -127,6 +142,7 @@ public FlownodeInstanceFilter build() throws OperateException { processInstanceFilter.type = type; processInstanceFilter.startDate = startDate; processInstanceFilter.endDate = endDate; + processInstanceFilter.flowNodeId = flowNodeId; processInstanceFilter.state = state; processInstanceFilter.incident = incident; return processInstanceFilter;