From ca8c9189a9b7ce7e2a056983f819c0fcbe5f04f6 Mon Sep 17 00:00:00 2001 From: Simon Zambrovski Date: Thu, 15 Feb 2024 10:29:18 +0100 Subject: [PATCH 01/10] Update for next development version --- bom/datapool-dependencies/pom.xml | 2 +- bom/parent/pom.xml | 2 +- bom/taskpool-dependencies/pom.xml | 2 +- core/bus-jackson/pom.xml | 2 +- core/datapool/datapool-api/pom.xml | 2 +- core/datapool/datapool-core/pom.xml | 2 +- core/datapool/datapool-event/pom.xml | 2 +- core/datapool/pom.xml | 2 +- core/spring-utils/pom.xml | 2 +- core/taskpool/pom.xml | 2 +- core/taskpool/taskpool-api/pom.xml | 2 +- core/taskpool/taskpool-core/pom.xml | 2 +- core/taskpool/taskpool-event/pom.xml | 2 +- integration/camunda-bpm/engine-client/pom.xml | 2 +- integration/camunda-bpm/pom.xml | 2 +- integration/camunda-bpm/springboot-autoconfigure/pom.xml | 2 +- integration/camunda-bpm/springboot-starter/pom.xml | 2 +- integration/camunda-bpm/taskpool-collector/pom.xml | 2 +- integration/camunda-bpm/taskpool-job-sender/pom.xml | 2 +- integration/common/datapool-sender/pom.xml | 2 +- integration/common/pom.xml | 2 +- integration/common/tasklist-url-resolver/pom.xml | 2 +- integration/common/taskpool-sender/pom.xml | 2 +- integration/common/variable-serializer/pom.xml | 2 +- pom.xml | 2 +- view/form-url-resolver/pom.xml | 2 +- view/jpa/pom.xml | 2 +- view/mongo/pom.xml | 2 +- view/pom.xml | 2 +- view/simple/pom.xml | 2 +- view/view-api-client/pom.xml | 2 +- view/view-api/pom.xml | 2 +- 32 files changed, 32 insertions(+), 32 deletions(-) diff --git a/bom/datapool-dependencies/pom.xml b/bom/datapool-dependencies/pom.xml index 5f744e008..8df5857fd 100644 --- a/bom/datapool-dependencies/pom.xml +++ b/bom/datapool-dependencies/pom.xml @@ -6,7 +6,7 @@ io.holunda.polyflow polyflow-parent - 4.1.2 + 4.1.3-SNAPSHOT ../parent/pom.xml diff --git a/bom/parent/pom.xml b/bom/parent/pom.xml index 1e7ed21b4..e75ee7112 100644 --- a/bom/parent/pom.xml +++ b/bom/parent/pom.xml @@ -6,7 +6,7 @@ io.holunda.polyflow polyflow-root - 4.1.2 + 4.1.3-SNAPSHOT ../../pom.xml diff --git a/bom/taskpool-dependencies/pom.xml b/bom/taskpool-dependencies/pom.xml index 28b6db085..2b33e8126 100644 --- a/bom/taskpool-dependencies/pom.xml +++ b/bom/taskpool-dependencies/pom.xml @@ -6,7 +6,7 @@ io.holunda.polyflow polyflow-parent - 4.1.2 + 4.1.3-SNAPSHOT ../parent/pom.xml diff --git a/core/bus-jackson/pom.xml b/core/bus-jackson/pom.xml index 4c60288ff..211f4e665 100755 --- a/core/bus-jackson/pom.xml +++ b/core/bus-jackson/pom.xml @@ -6,7 +6,7 @@ io.holunda.polyflow polyflow-parent - 4.1.2 + 4.1.3-SNAPSHOT ../../bom/parent/pom.xml diff --git a/core/datapool/datapool-api/pom.xml b/core/datapool/datapool-api/pom.xml index 1f291d66a..0ba33e96c 100755 --- a/core/datapool/datapool-api/pom.xml +++ b/core/datapool/datapool-api/pom.xml @@ -6,7 +6,7 @@ io.holunda.polyflow polyflow-datapool-parent - 4.1.2 + 4.1.3-SNAPSHOT polyflow-datapool-api diff --git a/core/datapool/datapool-core/pom.xml b/core/datapool/datapool-core/pom.xml index 3490b93db..d1a7cad49 100644 --- a/core/datapool/datapool-core/pom.xml +++ b/core/datapool/datapool-core/pom.xml @@ -6,7 +6,7 @@ io.holunda.polyflow polyflow-datapool-parent - 4.1.2 + 4.1.3-SNAPSHOT polyflow-datapool-core diff --git a/core/datapool/datapool-event/pom.xml b/core/datapool/datapool-event/pom.xml index 2d05c720c..ce1181b3a 100755 --- a/core/datapool/datapool-event/pom.xml +++ b/core/datapool/datapool-event/pom.xml @@ -6,7 +6,7 @@ io.holunda.polyflow polyflow-datapool-parent - 4.1.2 + 4.1.3-SNAPSHOT polyflow-datapool-event diff --git a/core/datapool/pom.xml b/core/datapool/pom.xml index 11771f3a7..bea11d49f 100755 --- a/core/datapool/pom.xml +++ b/core/datapool/pom.xml @@ -6,7 +6,7 @@ io.holunda.polyflow polyflow-parent - 4.1.2 + 4.1.3-SNAPSHOT ../../bom/parent/pom.xml diff --git a/core/spring-utils/pom.xml b/core/spring-utils/pom.xml index 4dd4ae15d..91969f8f1 100755 --- a/core/spring-utils/pom.xml +++ b/core/spring-utils/pom.xml @@ -6,7 +6,7 @@ io.holunda.polyflow polyflow-parent - 4.1.2 + 4.1.3-SNAPSHOT ../../bom/parent/pom.xml diff --git a/core/taskpool/pom.xml b/core/taskpool/pom.xml index 98bda5c5c..dec79fb36 100755 --- a/core/taskpool/pom.xml +++ b/core/taskpool/pom.xml @@ -6,7 +6,7 @@ io.holunda.polyflow polyflow-parent - 4.1.2 + 4.1.3-SNAPSHOT ../../bom/parent/pom.xml diff --git a/core/taskpool/taskpool-api/pom.xml b/core/taskpool/taskpool-api/pom.xml index 7e889d527..7ac4b09e4 100755 --- a/core/taskpool/taskpool-api/pom.xml +++ b/core/taskpool/taskpool-api/pom.xml @@ -6,7 +6,7 @@ io.holunda.polyflow polyflow-taskpool-parent - 4.1.2 + 4.1.3-SNAPSHOT polyflow-taskpool-api diff --git a/core/taskpool/taskpool-core/pom.xml b/core/taskpool/taskpool-core/pom.xml index 90090387e..2beb235e3 100755 --- a/core/taskpool/taskpool-core/pom.xml +++ b/core/taskpool/taskpool-core/pom.xml @@ -6,7 +6,7 @@ io.holunda.polyflow polyflow-taskpool-parent - 4.1.2 + 4.1.3-SNAPSHOT polyflow-taskpool-core diff --git a/core/taskpool/taskpool-event/pom.xml b/core/taskpool/taskpool-event/pom.xml index abb01235f..04bcde9c8 100644 --- a/core/taskpool/taskpool-event/pom.xml +++ b/core/taskpool/taskpool-event/pom.xml @@ -6,7 +6,7 @@ io.holunda.polyflow polyflow-taskpool-parent - 4.1.2 + 4.1.3-SNAPSHOT polyflow-taskpool-event diff --git a/integration/camunda-bpm/engine-client/pom.xml b/integration/camunda-bpm/engine-client/pom.xml index 47b8cc6d3..acffbd6e1 100644 --- a/integration/camunda-bpm/engine-client/pom.xml +++ b/integration/camunda-bpm/engine-client/pom.xml @@ -5,7 +5,7 @@ io.holunda.polyflow polyflow-integration-camunda-bpm-engine-parent - 4.1.2 + 4.1.3-SNAPSHOT polyflow-camunda-bpm-engine-client diff --git a/integration/camunda-bpm/pom.xml b/integration/camunda-bpm/pom.xml index 893f72197..bfe7396f2 100644 --- a/integration/camunda-bpm/pom.xml +++ b/integration/camunda-bpm/pom.xml @@ -6,7 +6,7 @@ io.holunda.polyflow polyflow-parent - 4.1.2 + 4.1.3-SNAPSHOT ../../bom/parent/pom.xml diff --git a/integration/camunda-bpm/springboot-autoconfigure/pom.xml b/integration/camunda-bpm/springboot-autoconfigure/pom.xml index a80b1d713..5df05d295 100755 --- a/integration/camunda-bpm/springboot-autoconfigure/pom.xml +++ b/integration/camunda-bpm/springboot-autoconfigure/pom.xml @@ -6,7 +6,7 @@ io.holunda.polyflow polyflow-integration-camunda-bpm-engine-parent - 4.1.2 + 4.1.3-SNAPSHOT polyflow-camunda-bpm-springboot-autoconfigure diff --git a/integration/camunda-bpm/springboot-starter/pom.xml b/integration/camunda-bpm/springboot-starter/pom.xml index 5a522924a..713af9185 100755 --- a/integration/camunda-bpm/springboot-starter/pom.xml +++ b/integration/camunda-bpm/springboot-starter/pom.xml @@ -6,7 +6,7 @@ io.holunda.polyflow polyflow-integration-camunda-bpm-engine-parent - 4.1.2 + 4.1.3-SNAPSHOT polyflow-camunda-bpm-springboot-starter diff --git a/integration/camunda-bpm/taskpool-collector/pom.xml b/integration/camunda-bpm/taskpool-collector/pom.xml index 3ccff3205..6d3840c1c 100755 --- a/integration/camunda-bpm/taskpool-collector/pom.xml +++ b/integration/camunda-bpm/taskpool-collector/pom.xml @@ -6,7 +6,7 @@ io.holunda.polyflow polyflow-integration-camunda-bpm-engine-parent - 4.1.2 + 4.1.3-SNAPSHOT polyflow-camunda-bpm-taskpool-collector diff --git a/integration/camunda-bpm/taskpool-job-sender/pom.xml b/integration/camunda-bpm/taskpool-job-sender/pom.xml index 468b01175..0ecefea09 100755 --- a/integration/camunda-bpm/taskpool-job-sender/pom.xml +++ b/integration/camunda-bpm/taskpool-job-sender/pom.xml @@ -6,7 +6,7 @@ io.holunda.polyflow polyflow-integration-camunda-bpm-engine-parent - 4.1.2 + 4.1.3-SNAPSHOT polyflow-camunda-bpm-taskpool-job-sender diff --git a/integration/common/datapool-sender/pom.xml b/integration/common/datapool-sender/pom.xml index a0cfa39ee..1c5707526 100755 --- a/integration/common/datapool-sender/pom.xml +++ b/integration/common/datapool-sender/pom.xml @@ -6,7 +6,7 @@ io.holunda.polyflow polyflow-integration-common-parent - 4.1.2 + 4.1.3-SNAPSHOT polyflow-datapool-sender diff --git a/integration/common/pom.xml b/integration/common/pom.xml index e232cb9a9..905a47299 100755 --- a/integration/common/pom.xml +++ b/integration/common/pom.xml @@ -6,7 +6,7 @@ io.holunda.polyflow polyflow-parent - 4.1.2 + 4.1.3-SNAPSHOT ../../bom/parent/pom.xml diff --git a/integration/common/tasklist-url-resolver/pom.xml b/integration/common/tasklist-url-resolver/pom.xml index 94022f73e..ae825bb85 100644 --- a/integration/common/tasklist-url-resolver/pom.xml +++ b/integration/common/tasklist-url-resolver/pom.xml @@ -6,7 +6,7 @@ io.holunda.polyflow polyflow-integration-common-parent - 4.1.2 + 4.1.3-SNAPSHOT polyflow-tasklist-url-resolver diff --git a/integration/common/taskpool-sender/pom.xml b/integration/common/taskpool-sender/pom.xml index 51fa7b062..ee1c6c4f7 100755 --- a/integration/common/taskpool-sender/pom.xml +++ b/integration/common/taskpool-sender/pom.xml @@ -6,7 +6,7 @@ io.holunda.polyflow polyflow-integration-common-parent - 4.1.2 + 4.1.3-SNAPSHOT polyflow-taskpool-sender diff --git a/integration/common/variable-serializer/pom.xml b/integration/common/variable-serializer/pom.xml index 865e400b1..837adcbae 100755 --- a/integration/common/variable-serializer/pom.xml +++ b/integration/common/variable-serializer/pom.xml @@ -6,7 +6,7 @@ io.holunda.polyflow polyflow-integration-common-parent - 4.1.2 + 4.1.3-SNAPSHOT polyflow-variable-serializer diff --git a/pom.xml b/pom.xml index ddbe1620a..f50a1b773 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ io.holunda.polyflow polyflow-root - 4.1.2 + 4.1.3-SNAPSHOT pom POM: ${project.artifactId} diff --git a/view/form-url-resolver/pom.xml b/view/form-url-resolver/pom.xml index 958bda03c..dfb54e762 100644 --- a/view/form-url-resolver/pom.xml +++ b/view/form-url-resolver/pom.xml @@ -6,7 +6,7 @@ io.holunda.polyflow polyflow-view-parent - 4.1.2 + 4.1.3-SNAPSHOT polyflow-form-url-resolver diff --git a/view/jpa/pom.xml b/view/jpa/pom.xml index 271752b76..d6b71db2d 100644 --- a/view/jpa/pom.xml +++ b/view/jpa/pom.xml @@ -6,7 +6,7 @@ io.holunda.polyflow polyflow-view-parent - 4.1.2 + 4.1.3-SNAPSHOT polyflow-view-jpa diff --git a/view/mongo/pom.xml b/view/mongo/pom.xml index 204e6b843..155e76a5b 100644 --- a/view/mongo/pom.xml +++ b/view/mongo/pom.xml @@ -6,7 +6,7 @@ io.holunda.polyflow polyflow-view-parent - 4.1.2 + 4.1.3-SNAPSHOT polyflow-view-mongo diff --git a/view/pom.xml b/view/pom.xml index 9ba864f67..f4af7c6ac 100644 --- a/view/pom.xml +++ b/view/pom.xml @@ -6,7 +6,7 @@ io.holunda.polyflow polyflow-parent - 4.1.2 + 4.1.3-SNAPSHOT ../bom/parent/pom.xml diff --git a/view/simple/pom.xml b/view/simple/pom.xml index 84bd56b5a..2bab2822d 100755 --- a/view/simple/pom.xml +++ b/view/simple/pom.xml @@ -6,7 +6,7 @@ io.holunda.polyflow polyflow-view-parent - 4.1.2 + 4.1.3-SNAPSHOT polyflow-view-simple diff --git a/view/view-api-client/pom.xml b/view/view-api-client/pom.xml index 0b1a67bf3..94fab8780 100755 --- a/view/view-api-client/pom.xml +++ b/view/view-api-client/pom.xml @@ -6,7 +6,7 @@ io.holunda.polyflow polyflow-view-parent - 4.1.2 + 4.1.3-SNAPSHOT polyflow-view-api-client diff --git a/view/view-api/pom.xml b/view/view-api/pom.xml index 912e49740..6d86fa2ad 100755 --- a/view/view-api/pom.xml +++ b/view/view-api/pom.xml @@ -6,7 +6,7 @@ io.holunda.polyflow polyflow-view-parent - 4.1.2 + 4.1.3-SNAPSHOT polyflow-view-api From 669dc1986762b60964d366aa793dad5e0d0e74ea Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 21 Feb 2024 16:45:48 +0100 Subject: [PATCH 02/10] chore(deps): bump org.postgresql:postgresql in /view/jpa (#950) Bumps [org.postgresql:postgresql](https://github.com/pgjdbc/pgjdbc) from 42.7.1 to 42.7.2. - [Release notes](https://github.com/pgjdbc/pgjdbc/releases) - [Changelog](https://github.com/pgjdbc/pgjdbc/blob/master/CHANGELOG.md) - [Commits](https://github.com/pgjdbc/pgjdbc/commits) --- updated-dependencies: - dependency-name: org.postgresql:postgresql dependency-type: direct:production ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- view/jpa/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view/jpa/pom.xml b/view/jpa/pom.xml index d6b71db2d..0dbe03c64 100644 --- a/view/jpa/pom.xml +++ b/view/jpa/pom.xml @@ -238,7 +238,7 @@ org.postgresql postgresql - 42.7.1 + 42.7.2 From 6819c6578bff758894f93bdfcc88b70e00943d40 Mon Sep 17 00:00:00 2001 From: Simon Zambrovski Date: Wed, 21 Feb 2024 17:22:46 +0100 Subject: [PATCH 03/10] kill warnings --- .../view/jpa/process/ProcessDefinitionRepository.kt | 2 +- .../polyflow/view/jpa/process/ProcessInstanceRepository.kt | 2 +- .../io/holunda/polyflow/view/jpa/task/TaskRepository.kt | 6 +++++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/view/jpa/src/main/kotlin/io/holunda/polyflow/view/jpa/process/ProcessDefinitionRepository.kt b/view/jpa/src/main/kotlin/io/holunda/polyflow/view/jpa/process/ProcessDefinitionRepository.kt index c503cf6b3..150ef665a 100644 --- a/view/jpa/src/main/kotlin/io/holunda/polyflow/view/jpa/process/ProcessDefinitionRepository.kt +++ b/view/jpa/src/main/kotlin/io/holunda/polyflow/view/jpa/process/ProcessDefinitionRepository.kt @@ -23,6 +23,6 @@ interface ProcessDefinitionRepository : CrudRepository>(ProcessDefinitionEntity::authorizedStarterPrincipals.name) ) } - }) ?: Specification { _, _, _ -> null } + }) } } diff --git a/view/jpa/src/main/kotlin/io/holunda/polyflow/view/jpa/process/ProcessInstanceRepository.kt b/view/jpa/src/main/kotlin/io/holunda/polyflow/view/jpa/process/ProcessInstanceRepository.kt index d542f4c19..95b8437ab 100644 --- a/view/jpa/src/main/kotlin/io/holunda/polyflow/view/jpa/process/ProcessInstanceRepository.kt +++ b/view/jpa/src/main/kotlin/io/holunda/polyflow/view/jpa/process/ProcessInstanceRepository.kt @@ -23,7 +23,7 @@ interface ProcessInstanceRepository : CrudRepository null } + }) } } diff --git a/view/jpa/src/main/kotlin/io/holunda/polyflow/view/jpa/task/TaskRepository.kt b/view/jpa/src/main/kotlin/io/holunda/polyflow/view/jpa/task/TaskRepository.kt index a1a65416e..b1b28b4d5 100644 --- a/view/jpa/src/main/kotlin/io/holunda/polyflow/view/jpa/task/TaskRepository.kt +++ b/view/jpa/src/main/kotlin/io/holunda/polyflow/view/jpa/task/TaskRepository.kt @@ -5,12 +5,15 @@ import io.holunda.polyflow.view.jpa.auth.AuthorizationPrincipal import io.holunda.polyflow.view.jpa.composeOr import io.holunda.polyflow.view.jpa.payload.PayloadAttribute import io.holunda.polyflow.view.jpa.process.SourceReferenceEmbeddable +import jakarta.persistence.Tuple +import jakarta.persistence.criteria.Path import org.springframework.data.jpa.domain.Specification import org.springframework.data.jpa.repository.JpaSpecificationExecutor import org.springframework.data.jpa.repository.Query import org.springframework.data.repository.CrudRepository import java.time.Instant + /** * Repository for accessing tasks. */ @@ -52,7 +55,7 @@ interface TaskRepository : CrudRepository, JpaSpecificationE task.get>(TaskEntity::authorizedPrincipals.name) ) } - }) ?: Specification { _, _, _ -> null } + }) /** * Specification for checking the application name. @@ -269,6 +272,7 @@ interface TaskRepository : CrudRepository, JpaSpecificationE builder.and(pathEquals, valueAnyOf) } + } From 6cb01a92b7e75b83d373c2c60ca3d309fb0fa436 Mon Sep 17 00:00:00 2001 From: Simon Zambrovski Date: Wed, 21 Feb 2024 17:23:03 +0100 Subject: [PATCH 04/10] typo --- .../mongo/task/TaskWithDataEntriesRepositoryExtensionImpl.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view/mongo/src/main/kotlin/io/holunda/polyflow/view/mongo/task/TaskWithDataEntriesRepositoryExtensionImpl.kt b/view/mongo/src/main/kotlin/io/holunda/polyflow/view/mongo/task/TaskWithDataEntriesRepositoryExtensionImpl.kt index c7326c698..6947c65c5 100644 --- a/view/mongo/src/main/kotlin/io/holunda/polyflow/view/mongo/task/TaskWithDataEntriesRepositoryExtensionImpl.kt +++ b/view/mongo/src/main/kotlin/io/holunda/polyflow/view/mongo/task/TaskWithDataEntriesRepositoryExtensionImpl.kt @@ -25,7 +25,7 @@ open class TaskWithDataEntriesRepositoryExtensionImpl( /** - * Retrieves a list of tasks for user matching provided critera. + * Retrieves a list of tasks for user matching provided criteria.
   db.tasks.aggregate([
   { $lookup: {

From 35932d51299f65b6e02015b2a636011bd45b091c Mon Sep 17 00:00:00 2001
From: Simon Zambrovski 
Date: Wed, 21 Feb 2024 17:23:11 +0100
Subject: [PATCH 05/10] kill deprecation warning

---
 .../io/holunda/polyflow/view/simple/service/DataPoolStages.kt   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/view/simple/src/test/kotlin/io/holunda/polyflow/view/simple/service/DataPoolStages.kt b/view/simple/src/test/kotlin/io/holunda/polyflow/view/simple/service/DataPoolStages.kt
index 0e6ae69ba..9675bf907 100644
--- a/view/simple/src/test/kotlin/io/holunda/polyflow/view/simple/service/DataPoolStages.kt
+++ b/view/simple/src/test/kotlin/io/holunda/polyflow/view/simple/service/DataPoolStages.kt
@@ -66,7 +66,7 @@ class DataPoolWhenStage> : DataPoolStage()
   @ProvidedScenarioState(resolution = ScenarioState.Resolution.NAME)
   private var queriedEntries: MutableList = mutableListOf()
 
-  private fun query(sort: String, filters: List) = DataEntriesForUserQuery(User("kermit", setOf()), 1, Integer.MAX_VALUE, sort, filters)
+  private fun query(sort: String, filters: List) = DataEntriesForUserQuery(User("kermit", setOf()), 1, Integer.MAX_VALUE, listOf(sort), filters)
 
   fun data_queried(filters: List) = step {
     queriedEntries.addAll(testee.query(query("+name", filters)).payload.elements)

From 7c60895040f1d78b91398f8d7d91a2fa62ced9cb Mon Sep 17 00:00:00 2001
From: Simon Zambrovski 
Date: Wed, 21 Feb 2024 17:23:22 +0100
Subject: [PATCH 06/10] supply count I-test

---
 .../polyflow/view/jpa/task/TaskRepositoryITest.kt        | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/view/jpa/src/test/kotlin/io/holunda/polyflow/view/jpa/task/TaskRepositoryITest.kt b/view/jpa/src/test/kotlin/io/holunda/polyflow/view/jpa/task/TaskRepositoryITest.kt
index 1e2e3b9e6..08317f89c 100644
--- a/view/jpa/src/test/kotlin/io/holunda/polyflow/view/jpa/task/TaskRepositoryITest.kt
+++ b/view/jpa/src/test/kotlin/io/holunda/polyflow/view/jpa/task/TaskRepositoryITest.kt
@@ -3,6 +3,7 @@ package io.holunda.polyflow.view.jpa.task
 import com.fasterxml.jackson.databind.ObjectMapper
 import io.holunda.camunda.variable.serializer.toJsonPathsWithValues
 import io.holunda.camunda.variable.serializer.toPayloadJson
+import io.holunda.polyflow.view.jpa.CountByApplication
 import io.holunda.polyflow.view.jpa.DbCleaner
 import io.holunda.polyflow.view.jpa.auth.AuthorizationPrincipal.Companion.group
 import io.holunda.polyflow.view.jpa.auth.AuthorizationPrincipal.Companion.user
@@ -27,6 +28,7 @@ import io.holunda.polyflow.view.jpa.task.TaskRepository.Companion.likeName
 import io.holunda.polyflow.view.jpa.task.TaskRepository.Companion.likeProcessName
 import io.holunda.polyflow.view.jpa.task.TaskRepository.Companion.likeTextSearch
 import jakarta.persistence.EntityManager
+import jakarta.persistence.Tuple
 import org.assertj.core.api.Assertions.assertThat
 import org.camunda.bpm.engine.variable.Variables.createVariables
 import org.junit.jupiter.api.AfterEach
@@ -245,4 +247,11 @@ class TaskRepositoryITest {
     assertThat(result).containsExactlyInAnyOrder(task2)
   }
 
+  @Test
+  fun `should count grouped by applications`() {
+    val count = taskRepository.getCountByApplication()
+    assertThat(count).hasSize(2)
+    assertThat(count[0]).isEqualTo(CountByApplication("other-app", 1))
+    assertThat(count[1]).isEqualTo(CountByApplication("test-application", 1))
+  }
 }

From 95bc5ae52df1034770953ee438e714698c97400c Mon Sep 17 00:00:00 2001
From: Simon Zambrovski 
Date: Wed, 21 Feb 2024 17:25:08 +0100
Subject: [PATCH 07/10] remove deprecated methods, fix #952

---
 .../view/jpa/JpaPolyflowViewTaskService.kt    | 23 +------------------
 1 file changed, 1 insertion(+), 22 deletions(-)

diff --git a/view/jpa/src/main/kotlin/io/holunda/polyflow/view/jpa/JpaPolyflowViewTaskService.kt b/view/jpa/src/main/kotlin/io/holunda/polyflow/view/jpa/JpaPolyflowViewTaskService.kt
index be569047d..6160388e5 100644
--- a/view/jpa/src/main/kotlin/io/holunda/polyflow/view/jpa/JpaPolyflowViewTaskService.kt
+++ b/view/jpa/src/main/kotlin/io/holunda/polyflow/view/jpa/JpaPolyflowViewTaskService.kt
@@ -23,6 +23,7 @@ import io.holunda.polyflow.view.jpa.task.toTask
 import io.holunda.polyflow.view.jpa.update.updateTaskQuery
 import io.holunda.polyflow.view.query.PageableSortableQuery
 import io.holunda.polyflow.view.query.task.*
+import io.holunda.polyflow.view.task
 import mu.KLogging
 import org.axonframework.config.ProcessingGroup
 import org.axonframework.eventhandling.EventHandler
@@ -251,18 +252,6 @@ class JpaPolyflowViewTaskService(
     )
   }
 
-
-  /**
-   * Legacy handler to support old query.
-   */
-  @Deprecated("Will be removed in future versions", ReplaceWith("query(query: TaskWithDataEntriesForIdQuery): Optional"))
-  @QueryHandler
-  fun legacyQuery(query: TaskWithDataEntriesForIdQuery): TaskWithDataEntries? {
-    logger.warn { "You are using deprecated API, consider to switch to query(TaskWithDataEntriesForIdQuery): Optional" }
-    return query(query).orElse(null)
-  }
-
-
   @QueryHandler
   override fun query(query: TaskWithDataEntriesForIdQuery): Optional {
     return Optional.ofNullable(taskRepository.findByIdOrNull(query.id)?.let { taskEntity ->
@@ -274,16 +263,6 @@ class JpaPolyflowViewTaskService(
   }
 
 
-  /**
-   * Legacy handler to support old query.
-   */
-  @Deprecated("Will be removed in future versions", ReplaceWith("query(TaskForIdQuery): Optional"))
-  @QueryHandler
-  fun legacyQuery(query: TaskForIdQuery): Task? {
-    logger.warn { "You are using deprecated API, consider to switch to query(TaskForIdQuery): Optional" }
-    return query(query).orElse(null)
-  }
-
   @QueryHandler
   override fun query(query: TaskForIdQuery): Optional {
     return Optional.ofNullable(taskRepository.findByIdOrNull(query.id)?.toTask(objectMapper))

From ad5683d5e8d8bce6e1e91fe8faff5aeb20125fce Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Wed, 21 Feb 2024 18:03:26 +0100
Subject: [PATCH 08/10] chore(deps): bump com.microsoft.sqlserver:mssql-jdbc
 (#951)

Bumps [com.microsoft.sqlserver:mssql-jdbc](https://github.com/Microsoft/mssql-jdbc) from 12.6.0.jre11 to 12.6.1.jre11.
- [Release notes](https://github.com/Microsoft/mssql-jdbc/releases)
- [Changelog](https://github.com/microsoft/mssql-jdbc/blob/main/CHANGELOG.md)
- [Commits](https://github.com/Microsoft/mssql-jdbc/commits)

---
updated-dependencies:
- dependency-name: com.microsoft.sqlserver:mssql-jdbc
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] 
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
---
 view/jpa/pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/view/jpa/pom.xml b/view/jpa/pom.xml
index 0dbe03c64..8830ba905 100644
--- a/view/jpa/pom.xml
+++ b/view/jpa/pom.xml
@@ -233,7 +233,7 @@
               
                 com.microsoft.sqlserver
                 mssql-jdbc
-                12.6.0.jre11
+                12.6.1.jre11
               
               
                 org.postgresql

From fd50485434a0af5abd9df8e357a4a9a91951a70b Mon Sep 17 00:00:00 2001
From: Michael von Bargen <37417767+MichaelVonB@users.noreply.github.com>
Date: Wed, 21 Feb 2024 18:03:43 +0100
Subject: [PATCH 09/10] fix(#948): map COMPLETED state to
 FinishProcessInstanceCommand (#949)

Co-authored-by: Michael von Bargen 
---
 .../process/instance/ProcessInstanceEventCollectorService.kt     | 1 +
 1 file changed, 1 insertion(+)

diff --git a/integration/camunda-bpm/taskpool-collector/src/main/kotlin/io/holunda/polyflow/taskpool/collector/process/instance/ProcessInstanceEventCollectorService.kt b/integration/camunda-bpm/taskpool-collector/src/main/kotlin/io/holunda/polyflow/taskpool/collector/process/instance/ProcessInstanceEventCollectorService.kt
index 7d9021c40..d53db345b 100644
--- a/integration/camunda-bpm/taskpool-collector/src/main/kotlin/io/holunda/polyflow/taskpool/collector/process/instance/ProcessInstanceEventCollectorService.kt
+++ b/integration/camunda-bpm/taskpool-collector/src/main/kotlin/io/holunda/polyflow/taskpool/collector/process/instance/ProcessInstanceEventCollectorService.kt
@@ -93,6 +93,7 @@ class ProcessInstanceEventCollectorService(
         deleteReason = processInstance.deleteReason
       )
     // finish
+    HistoricProcessInstance.STATE_COMPLETED,
     HistoricProcessInstance.STATE_INTERNALLY_TERMINATED ->
       FinishProcessInstanceCommand(
         sourceReference = processInstance.sourceReference(repositoryService, camundaTaskpoolCollectorProperties.applicationName),

From 39a8dbb592433e53930125bd738855c4d4640f56 Mon Sep 17 00:00:00 2001
From: Simon Zambrovski 
Date: Fri, 23 Feb 2024 14:22:52 +0100
Subject: [PATCH 10/10] Update for next development version

---
 bom/datapool-dependencies/pom.xml                        | 2 +-
 bom/parent/pom.xml                                       | 2 +-
 bom/taskpool-dependencies/pom.xml                        | 2 +-
 core/bus-jackson/pom.xml                                 | 2 +-
 core/datapool/datapool-api/pom.xml                       | 2 +-
 core/datapool/datapool-core/pom.xml                      | 2 +-
 core/datapool/datapool-event/pom.xml                     | 2 +-
 core/datapool/pom.xml                                    | 2 +-
 core/spring-utils/pom.xml                                | 2 +-
 core/taskpool/pom.xml                                    | 2 +-
 core/taskpool/taskpool-api/pom.xml                       | 2 +-
 core/taskpool/taskpool-core/pom.xml                      | 2 +-
 core/taskpool/taskpool-event/pom.xml                     | 2 +-
 integration/camunda-bpm/engine-client/pom.xml            | 2 +-
 integration/camunda-bpm/pom.xml                          | 2 +-
 integration/camunda-bpm/springboot-autoconfigure/pom.xml | 2 +-
 integration/camunda-bpm/springboot-starter/pom.xml       | 2 +-
 integration/camunda-bpm/taskpool-collector/pom.xml       | 2 +-
 integration/camunda-bpm/taskpool-job-sender/pom.xml      | 2 +-
 integration/common/datapool-sender/pom.xml               | 2 +-
 integration/common/pom.xml                               | 2 +-
 integration/common/tasklist-url-resolver/pom.xml         | 2 +-
 integration/common/taskpool-sender/pom.xml               | 2 +-
 integration/common/variable-serializer/pom.xml           | 2 +-
 pom.xml                                                  | 2 +-
 view/form-url-resolver/pom.xml                           | 2 +-
 view/jpa/pom.xml                                         | 2 +-
 view/mongo/pom.xml                                       | 2 +-
 view/pom.xml                                             | 2 +-
 view/simple/pom.xml                                      | 2 +-
 view/view-api-client/pom.xml                             | 2 +-
 view/view-api/pom.xml                                    | 2 +-
 32 files changed, 32 insertions(+), 32 deletions(-)

diff --git a/bom/datapool-dependencies/pom.xml b/bom/datapool-dependencies/pom.xml
index 8df5857fd..d10c819f0 100644
--- a/bom/datapool-dependencies/pom.xml
+++ b/bom/datapool-dependencies/pom.xml
@@ -6,7 +6,7 @@
   
     io.holunda.polyflow
     polyflow-parent
-    4.1.3-SNAPSHOT
+    4.1.3
     ../parent/pom.xml
   
 
diff --git a/bom/parent/pom.xml b/bom/parent/pom.xml
index e75ee7112..962e94c58 100644
--- a/bom/parent/pom.xml
+++ b/bom/parent/pom.xml
@@ -6,7 +6,7 @@
   
     io.holunda.polyflow
     polyflow-root
-    4.1.3-SNAPSHOT
+    4.1.3
     ../../pom.xml
   
 
diff --git a/bom/taskpool-dependencies/pom.xml b/bom/taskpool-dependencies/pom.xml
index 2b33e8126..eb9aa67e7 100644
--- a/bom/taskpool-dependencies/pom.xml
+++ b/bom/taskpool-dependencies/pom.xml
@@ -6,7 +6,7 @@
   
     io.holunda.polyflow
     polyflow-parent
-    4.1.3-SNAPSHOT
+    4.1.3
     ../parent/pom.xml
   
 
diff --git a/core/bus-jackson/pom.xml b/core/bus-jackson/pom.xml
index 211f4e665..32d135580 100755
--- a/core/bus-jackson/pom.xml
+++ b/core/bus-jackson/pom.xml
@@ -6,7 +6,7 @@
   
     io.holunda.polyflow
     polyflow-parent
-    4.1.3-SNAPSHOT
+    4.1.3
     ../../bom/parent/pom.xml
   
 
diff --git a/core/datapool/datapool-api/pom.xml b/core/datapool/datapool-api/pom.xml
index 0ba33e96c..e928693eb 100755
--- a/core/datapool/datapool-api/pom.xml
+++ b/core/datapool/datapool-api/pom.xml
@@ -6,7 +6,7 @@
   
     io.holunda.polyflow
     polyflow-datapool-parent
-    4.1.3-SNAPSHOT
+    4.1.3
   
 
   polyflow-datapool-api
diff --git a/core/datapool/datapool-core/pom.xml b/core/datapool/datapool-core/pom.xml
index d1a7cad49..2b85aa4d7 100644
--- a/core/datapool/datapool-core/pom.xml
+++ b/core/datapool/datapool-core/pom.xml
@@ -6,7 +6,7 @@
   
     io.holunda.polyflow
     polyflow-datapool-parent
-    4.1.3-SNAPSHOT
+    4.1.3
   
 
   polyflow-datapool-core
diff --git a/core/datapool/datapool-event/pom.xml b/core/datapool/datapool-event/pom.xml
index ce1181b3a..a934dba3f 100755
--- a/core/datapool/datapool-event/pom.xml
+++ b/core/datapool/datapool-event/pom.xml
@@ -6,7 +6,7 @@
   
     io.holunda.polyflow
     polyflow-datapool-parent
-    4.1.3-SNAPSHOT
+    4.1.3
   
 
   polyflow-datapool-event
diff --git a/core/datapool/pom.xml b/core/datapool/pom.xml
index bea11d49f..e79d3337a 100755
--- a/core/datapool/pom.xml
+++ b/core/datapool/pom.xml
@@ -6,7 +6,7 @@
   
     io.holunda.polyflow
     polyflow-parent
-    4.1.3-SNAPSHOT
+    4.1.3
     ../../bom/parent/pom.xml
   
 
diff --git a/core/spring-utils/pom.xml b/core/spring-utils/pom.xml
index 91969f8f1..74d763e27 100755
--- a/core/spring-utils/pom.xml
+++ b/core/spring-utils/pom.xml
@@ -6,7 +6,7 @@
   
     io.holunda.polyflow
     polyflow-parent
-    4.1.3-SNAPSHOT
+    4.1.3
     ../../bom/parent/pom.xml
   
 
diff --git a/core/taskpool/pom.xml b/core/taskpool/pom.xml
index dec79fb36..ba2d81ddb 100755
--- a/core/taskpool/pom.xml
+++ b/core/taskpool/pom.xml
@@ -6,7 +6,7 @@
   
     io.holunda.polyflow
     polyflow-parent
-    4.1.3-SNAPSHOT
+    4.1.3
     ../../bom/parent/pom.xml
   
 
diff --git a/core/taskpool/taskpool-api/pom.xml b/core/taskpool/taskpool-api/pom.xml
index 7ac4b09e4..3be28a3aa 100755
--- a/core/taskpool/taskpool-api/pom.xml
+++ b/core/taskpool/taskpool-api/pom.xml
@@ -6,7 +6,7 @@
   
     io.holunda.polyflow
     polyflow-taskpool-parent
-    4.1.3-SNAPSHOT
+    4.1.3
   
 
   polyflow-taskpool-api
diff --git a/core/taskpool/taskpool-core/pom.xml b/core/taskpool/taskpool-core/pom.xml
index 2beb235e3..5a4cc2dfb 100755
--- a/core/taskpool/taskpool-core/pom.xml
+++ b/core/taskpool/taskpool-core/pom.xml
@@ -6,7 +6,7 @@
   
     io.holunda.polyflow
     polyflow-taskpool-parent
-    4.1.3-SNAPSHOT
+    4.1.3
   
 
   polyflow-taskpool-core
diff --git a/core/taskpool/taskpool-event/pom.xml b/core/taskpool/taskpool-event/pom.xml
index 04bcde9c8..a4ce55c89 100644
--- a/core/taskpool/taskpool-event/pom.xml
+++ b/core/taskpool/taskpool-event/pom.xml
@@ -6,7 +6,7 @@
   
     io.holunda.polyflow
     polyflow-taskpool-parent
-    4.1.3-SNAPSHOT
+    4.1.3
   
 
   polyflow-taskpool-event
diff --git a/integration/camunda-bpm/engine-client/pom.xml b/integration/camunda-bpm/engine-client/pom.xml
index acffbd6e1..97ca230b0 100644
--- a/integration/camunda-bpm/engine-client/pom.xml
+++ b/integration/camunda-bpm/engine-client/pom.xml
@@ -5,7 +5,7 @@
   
     io.holunda.polyflow
     polyflow-integration-camunda-bpm-engine-parent
-    4.1.3-SNAPSHOT
+    4.1.3
   
 
   polyflow-camunda-bpm-engine-client
diff --git a/integration/camunda-bpm/pom.xml b/integration/camunda-bpm/pom.xml
index bfe7396f2..1ce4c52f0 100644
--- a/integration/camunda-bpm/pom.xml
+++ b/integration/camunda-bpm/pom.xml
@@ -6,7 +6,7 @@
   
     io.holunda.polyflow
     polyflow-parent
-    4.1.3-SNAPSHOT
+    4.1.3
     ../../bom/parent/pom.xml
   
 
diff --git a/integration/camunda-bpm/springboot-autoconfigure/pom.xml b/integration/camunda-bpm/springboot-autoconfigure/pom.xml
index 5df05d295..4e16c164f 100755
--- a/integration/camunda-bpm/springboot-autoconfigure/pom.xml
+++ b/integration/camunda-bpm/springboot-autoconfigure/pom.xml
@@ -6,7 +6,7 @@
   
     io.holunda.polyflow
     polyflow-integration-camunda-bpm-engine-parent
-    4.1.3-SNAPSHOT
+    4.1.3
   
 
   polyflow-camunda-bpm-springboot-autoconfigure
diff --git a/integration/camunda-bpm/springboot-starter/pom.xml b/integration/camunda-bpm/springboot-starter/pom.xml
index 713af9185..8cd654571 100755
--- a/integration/camunda-bpm/springboot-starter/pom.xml
+++ b/integration/camunda-bpm/springboot-starter/pom.xml
@@ -6,7 +6,7 @@
   
     io.holunda.polyflow
     polyflow-integration-camunda-bpm-engine-parent
-    4.1.3-SNAPSHOT
+    4.1.3
   
 
   polyflow-camunda-bpm-springboot-starter
diff --git a/integration/camunda-bpm/taskpool-collector/pom.xml b/integration/camunda-bpm/taskpool-collector/pom.xml
index 6d3840c1c..845a1090f 100755
--- a/integration/camunda-bpm/taskpool-collector/pom.xml
+++ b/integration/camunda-bpm/taskpool-collector/pom.xml
@@ -6,7 +6,7 @@
   
     io.holunda.polyflow
     polyflow-integration-camunda-bpm-engine-parent
-    4.1.3-SNAPSHOT
+    4.1.3
   
 
   polyflow-camunda-bpm-taskpool-collector
diff --git a/integration/camunda-bpm/taskpool-job-sender/pom.xml b/integration/camunda-bpm/taskpool-job-sender/pom.xml
index 0ecefea09..31b96ec66 100755
--- a/integration/camunda-bpm/taskpool-job-sender/pom.xml
+++ b/integration/camunda-bpm/taskpool-job-sender/pom.xml
@@ -6,7 +6,7 @@
   
     io.holunda.polyflow
     polyflow-integration-camunda-bpm-engine-parent
-    4.1.3-SNAPSHOT
+    4.1.3
   
 
   polyflow-camunda-bpm-taskpool-job-sender
diff --git a/integration/common/datapool-sender/pom.xml b/integration/common/datapool-sender/pom.xml
index 1c5707526..14a007301 100755
--- a/integration/common/datapool-sender/pom.xml
+++ b/integration/common/datapool-sender/pom.xml
@@ -6,7 +6,7 @@
   
     io.holunda.polyflow
     polyflow-integration-common-parent
-    4.1.3-SNAPSHOT
+    4.1.3
   
 
   polyflow-datapool-sender
diff --git a/integration/common/pom.xml b/integration/common/pom.xml
index 905a47299..eb4443fd3 100755
--- a/integration/common/pom.xml
+++ b/integration/common/pom.xml
@@ -6,7 +6,7 @@
   
     io.holunda.polyflow
     polyflow-parent
-    4.1.3-SNAPSHOT
+    4.1.3
     ../../bom/parent/pom.xml
   
 
diff --git a/integration/common/tasklist-url-resolver/pom.xml b/integration/common/tasklist-url-resolver/pom.xml
index ae825bb85..52fef6121 100644
--- a/integration/common/tasklist-url-resolver/pom.xml
+++ b/integration/common/tasklist-url-resolver/pom.xml
@@ -6,7 +6,7 @@
   
     io.holunda.polyflow
     polyflow-integration-common-parent
-    4.1.3-SNAPSHOT
+    4.1.3
   
 
   polyflow-tasklist-url-resolver
diff --git a/integration/common/taskpool-sender/pom.xml b/integration/common/taskpool-sender/pom.xml
index ee1c6c4f7..da0eabd77 100755
--- a/integration/common/taskpool-sender/pom.xml
+++ b/integration/common/taskpool-sender/pom.xml
@@ -6,7 +6,7 @@
   
     io.holunda.polyflow
     polyflow-integration-common-parent
-    4.1.3-SNAPSHOT
+    4.1.3
   
 
   polyflow-taskpool-sender
diff --git a/integration/common/variable-serializer/pom.xml b/integration/common/variable-serializer/pom.xml
index 837adcbae..c0d227369 100755
--- a/integration/common/variable-serializer/pom.xml
+++ b/integration/common/variable-serializer/pom.xml
@@ -6,7 +6,7 @@
   
     io.holunda.polyflow
     polyflow-integration-common-parent
-    4.1.3-SNAPSHOT
+    4.1.3
   
 
   polyflow-variable-serializer
diff --git a/pom.xml b/pom.xml
index f50a1b773..8b1011da9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
 
   io.holunda.polyflow
   polyflow-root
-  4.1.3-SNAPSHOT
+  4.1.3
   pom
 
   POM: ${project.artifactId}
diff --git a/view/form-url-resolver/pom.xml b/view/form-url-resolver/pom.xml
index dfb54e762..9836abcc3 100644
--- a/view/form-url-resolver/pom.xml
+++ b/view/form-url-resolver/pom.xml
@@ -6,7 +6,7 @@
   
     io.holunda.polyflow
     polyflow-view-parent
-    4.1.3-SNAPSHOT
+    4.1.3
   
 
   polyflow-form-url-resolver
diff --git a/view/jpa/pom.xml b/view/jpa/pom.xml
index 8830ba905..444ae2e0f 100644
--- a/view/jpa/pom.xml
+++ b/view/jpa/pom.xml
@@ -6,7 +6,7 @@
   
     io.holunda.polyflow
     polyflow-view-parent
-    4.1.3-SNAPSHOT
+    4.1.3
   
 
   polyflow-view-jpa
diff --git a/view/mongo/pom.xml b/view/mongo/pom.xml
index 155e76a5b..444714960 100644
--- a/view/mongo/pom.xml
+++ b/view/mongo/pom.xml
@@ -6,7 +6,7 @@
   
     io.holunda.polyflow
     polyflow-view-parent
-    4.1.3-SNAPSHOT
+    4.1.3
   
 
   polyflow-view-mongo
diff --git a/view/pom.xml b/view/pom.xml
index f4af7c6ac..0a2ace6e2 100644
--- a/view/pom.xml
+++ b/view/pom.xml
@@ -6,7 +6,7 @@
   
     io.holunda.polyflow
     polyflow-parent
-    4.1.3-SNAPSHOT
+    4.1.3
     ../bom/parent/pom.xml
   
 
diff --git a/view/simple/pom.xml b/view/simple/pom.xml
index 2bab2822d..aea0f89fb 100755
--- a/view/simple/pom.xml
+++ b/view/simple/pom.xml
@@ -6,7 +6,7 @@
   
     io.holunda.polyflow
     polyflow-view-parent
-    4.1.3-SNAPSHOT
+    4.1.3
   
 
   polyflow-view-simple
diff --git a/view/view-api-client/pom.xml b/view/view-api-client/pom.xml
index 94fab8780..a6b38119b 100755
--- a/view/view-api-client/pom.xml
+++ b/view/view-api-client/pom.xml
@@ -6,7 +6,7 @@
   
     io.holunda.polyflow
     polyflow-view-parent
-    4.1.3-SNAPSHOT
+    4.1.3
   
 
   polyflow-view-api-client
diff --git a/view/view-api/pom.xml b/view/view-api/pom.xml
index 6d86fa2ad..0cdb3f592 100755
--- a/view/view-api/pom.xml
+++ b/view/view-api/pom.xml
@@ -6,7 +6,7 @@
   
     io.holunda.polyflow
     polyflow-view-parent
-    4.1.3-SNAPSHOT
+    4.1.3
   
 
   polyflow-view-api