Skip to content

Commit

Permalink
Merge branch 'release/4.1.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
zambrovski committed Mar 4, 2024
2 parents e7e8226 + ec5d83b commit 4f20ca6
Show file tree
Hide file tree
Showing 34 changed files with 57 additions and 43 deletions.
2 changes: 1 addition & 1 deletion bom/datapool-dependencies/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.holunda.polyflow</groupId>
<artifactId>polyflow-parent</artifactId>
<version>4.1.3</version>
<version>4.1.4</version>
<relativePath>../parent/pom.xml</relativePath>
</parent>

Expand Down
4 changes: 2 additions & 2 deletions bom/parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.holunda.polyflow</groupId>
<artifactId>polyflow-root</artifactId>
<version>4.1.3</version>
<version>4.1.4</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand All @@ -21,7 +21,7 @@
<springboot.version>3.1.5</springboot.version>
<camunda-commons-typed-values.version>7.20.0</camunda-commons-typed-values.version>

<axon-bom.version>4.9.3</axon-bom.version>
<axon-bom.version>4.9.4</axon-bom.version>
<axon-kotlin.version>4.9.0</axon-kotlin.version>
<axon-gateway-extension.version>2.0.0</axon-gateway-extension.version>

Expand Down
2 changes: 1 addition & 1 deletion bom/taskpool-dependencies/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.holunda.polyflow</groupId>
<artifactId>polyflow-parent</artifactId>
<version>4.1.3</version>
<version>4.1.4</version>
<relativePath>../parent/pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion core/bus-jackson/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.holunda.polyflow</groupId>
<artifactId>polyflow-parent</artifactId>
<version>4.1.3</version>
<version>4.1.4</version>
<relativePath>../../bom/parent/pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion core/datapool/datapool-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.holunda.polyflow</groupId>
<artifactId>polyflow-datapool-parent</artifactId>
<version>4.1.3</version>
<version>4.1.4</version>
</parent>

<artifactId>polyflow-datapool-api</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion core/datapool/datapool-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.holunda.polyflow</groupId>
<artifactId>polyflow-datapool-parent</artifactId>
<version>4.1.3</version>
<version>4.1.4</version>
</parent>

<artifactId>polyflow-datapool-core</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion core/datapool/datapool-event/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.holunda.polyflow</groupId>
<artifactId>polyflow-datapool-parent</artifactId>
<version>4.1.3</version>
<version>4.1.4</version>
</parent>

<artifactId>polyflow-datapool-event</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion core/datapool/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.holunda.polyflow</groupId>
<artifactId>polyflow-parent</artifactId>
<version>4.1.3</version>
<version>4.1.4</version>
<relativePath>../../bom/parent/pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion core/spring-utils/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.holunda.polyflow</groupId>
<artifactId>polyflow-parent</artifactId>
<version>4.1.3</version>
<version>4.1.4</version>
<relativePath>../../bom/parent/pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion core/taskpool/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.holunda.polyflow</groupId>
<artifactId>polyflow-parent</artifactId>
<version>4.1.3</version>
<version>4.1.4</version>
<relativePath>../../bom/parent/pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion core/taskpool/taskpool-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.holunda.polyflow</groupId>
<artifactId>polyflow-taskpool-parent</artifactId>
<version>4.1.3</version>
<version>4.1.4</version>
</parent>

<artifactId>polyflow-taskpool-api</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion core/taskpool/taskpool-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.holunda.polyflow</groupId>
<artifactId>polyflow-taskpool-parent</artifactId>
<version>4.1.3</version>
<version>4.1.4</version>
</parent>

<artifactId>polyflow-taskpool-core</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion core/taskpool/taskpool-event/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.holunda.polyflow</groupId>
<artifactId>polyflow-taskpool-parent</artifactId>
<version>4.1.3</version>
<version>4.1.4</version>
</parent>

<artifactId>polyflow-taskpool-event</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion integration/camunda-bpm/engine-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>io.holunda.polyflow</groupId>
<artifactId>polyflow-integration-camunda-bpm-engine-parent</artifactId>
<version>4.1.3</version>
<version>4.1.4</version>
</parent>

<artifactId>polyflow-camunda-bpm-engine-client</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion integration/camunda-bpm/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.holunda.polyflow</groupId>
<artifactId>polyflow-parent</artifactId>
<version>4.1.3</version>
<version>4.1.4</version>
<relativePath>../../bom/parent/pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion integration/camunda-bpm/springboot-autoconfigure/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.holunda.polyflow</groupId>
<artifactId>polyflow-integration-camunda-bpm-engine-parent</artifactId>
<version>4.1.3</version>
<version>4.1.4</version>
</parent>

<artifactId>polyflow-camunda-bpm-springboot-autoconfigure</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion integration/camunda-bpm/springboot-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.holunda.polyflow</groupId>
<artifactId>polyflow-integration-camunda-bpm-engine-parent</artifactId>
<version>4.1.3</version>
<version>4.1.4</version>
</parent>

<artifactId>polyflow-camunda-bpm-springboot-starter</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion integration/camunda-bpm/taskpool-collector/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.holunda.polyflow</groupId>
<artifactId>polyflow-integration-camunda-bpm-engine-parent</artifactId>
<version>4.1.3</version>
<version>4.1.4</version>
</parent>

<artifactId>polyflow-camunda-bpm-taskpool-collector</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion integration/camunda-bpm/taskpool-job-sender/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.holunda.polyflow</groupId>
<artifactId>polyflow-integration-camunda-bpm-engine-parent</artifactId>
<version>4.1.3</version>
<version>4.1.4</version>
</parent>

<artifactId>polyflow-camunda-bpm-taskpool-job-sender</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion integration/common/datapool-sender/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.holunda.polyflow</groupId>
<artifactId>polyflow-integration-common-parent</artifactId>
<version>4.1.3</version>
<version>4.1.4</version>
</parent>

<artifactId>polyflow-datapool-sender</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion integration/common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.holunda.polyflow</groupId>
<artifactId>polyflow-parent</artifactId>
<version>4.1.3</version>
<version>4.1.4</version>
<relativePath>../../bom/parent/pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion integration/common/tasklist-url-resolver/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.holunda.polyflow</groupId>
<artifactId>polyflow-integration-common-parent</artifactId>
<version>4.1.3</version>
<version>4.1.4</version>
</parent>

<artifactId>polyflow-tasklist-url-resolver</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion integration/common/taskpool-sender/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.holunda.polyflow</groupId>
<artifactId>polyflow-integration-common-parent</artifactId>
<version>4.1.3</version>
<version>4.1.4</version>
</parent>

<artifactId>polyflow-taskpool-sender</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion integration/common/variable-serializer/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.holunda.polyflow</groupId>
<artifactId>polyflow-integration-common-parent</artifactId>
<version>4.1.3</version>
<version>4.1.4</version>
</parent>

<artifactId>polyflow-variable-serializer</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>io.holunda.polyflow</groupId>
<artifactId>polyflow-root</artifactId>
<version>4.1.3</version>
<version>4.1.4</version>
<packaging>pom</packaging>

<name>POM: ${project.artifactId}</name>
Expand Down
2 changes: 1 addition & 1 deletion view/form-url-resolver/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.holunda.polyflow</groupId>
<artifactId>polyflow-view-parent</artifactId>
<version>4.1.3</version>
<version>4.1.4</version>
</parent>

<artifactId>polyflow-form-url-resolver</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion view/jpa/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.holunda.polyflow</groupId>
<artifactId>polyflow-view-parent</artifactId>
<version>4.1.3</version>
<version>4.1.4</version>
</parent>

<artifactId>polyflow-view-jpa</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,9 @@ class JpaPolyflowViewTaskService(
)
}

val page = taskRepository.findAll(specification.and(userQuery), pageRequest).map { taskEntity -> taskEntity.toTask(objectMapper) }
val page = taskRepository
.findAll(specification.and(userQuery), pageRequest)
.map { taskEntity -> taskEntity.toTask(objectMapper) }

return TaskQueryResult(
elements = page.toList(),
Expand All @@ -202,7 +204,9 @@ class JpaPolyflowViewTaskService(
}.mapTaskSort()
val pageRequest = pageRequest(query.page, query.size, sort)

val page = taskRepository.findAll(taskSpecification.and(authorizationSpecification), pageRequest).map { taskEntity -> taskEntity.toTask(objectMapper) }
val page = taskRepository
.findAll(taskSpecification.and(authorizationSpecification), pageRequest)
.map { taskEntity -> taskEntity.toTask(objectMapper) }

return TaskQueryResult(
elements = page.toList(),
Expand All @@ -229,7 +233,9 @@ class JpaPolyflowViewTaskService(
}.mapTaskSort()
val pageRequest = pageRequest(query.page, query.size, sort)

val page = taskRepository.findAll(taskSpecification.and(authorizationSpecification), pageRequest).map { taskEntity -> taskEntity.toTask(objectMapper) }
val page = taskRepository
.findAll(taskSpecification.and(authorizationSpecification), pageRequest)
.map { taskEntity -> taskEntity.toTask(objectMapper) }

return TaskQueryResult(
elements = page.toList(),
Expand Down Expand Up @@ -307,7 +313,7 @@ class JpaPolyflowViewTaskService(
emitTaskUpdate(updated)

}.ifPresent { entity ->
logger.debug("Cannot create task '${event.id}' because it already exists in the database")
logger.warn { "Will not create task '${event.id}' because it already exists in the database"}
emitTaskUpdate(entity)
}
}
Expand All @@ -326,7 +332,7 @@ class JpaPolyflowViewTaskService(
taskRepository
.findById(event.id)
.ifEmpty {
logger.warn("Cannot update task '${event.id}' because it does not exist in the database")
logger.warn { "Cannot update task '${event.id}' because it does not exist in the database" }
}.ifPresent { entity ->
entity.assignee = event.assignee
val updated = taskRepository.save(entity)
Expand All @@ -347,7 +353,9 @@ class JpaPolyflowViewTaskService(

taskRepository
.findById(event.id)
.ifEmpty { "Cannot complete task '${event.id}' because it does not exist in the database" }
.ifEmpty {
logger.warn { "Cannot complete task '${event.id}' because it does not exist in the database" }
}
.ifPresent { entity ->
taskRepository.delete(entity)
emitTaskUpdate(entity, deleted = true)
Expand All @@ -367,7 +375,9 @@ class JpaPolyflowViewTaskService(

taskRepository
.findById(event.id)
.ifEmpty { "Cannot delete task '${event.id}' because it does not exist in the database" }
.ifEmpty {
logger.warn { "Cannot delete task '${event.id}' because it does not exist in the database" }
}
.ifPresent { entity ->
taskRepository.delete(entity)
emitTaskUpdate(entity, deleted = true)
Expand All @@ -387,7 +397,9 @@ class JpaPolyflowViewTaskService(

taskRepository
.findById(event.id)
.ifEmpty { "Cannot update task '${event.id}' because it does not exist in the database" }
.ifEmpty {
logger.warn { "Cannot update task '${event.id}' because it does not exist in the database" }
}
.ifPresent { entity ->

val updated = taskRepository.save(
Expand Down Expand Up @@ -416,7 +428,7 @@ class JpaPolyflowViewTaskService(
taskRepository
.findById(event.id)
.ifEmpty {
logger.warn("Cannot update task '${event.id}' because it does not exist in the database")
logger.warn { "Cannot update task '${event.id}' because it does not exist in the database"}
}.ifPresent { entity ->
when (event.assignmentUpdateType) {
CamundaTaskEventType.CANDIDATE_GROUP_ADD -> entity.authorizedPrincipals.add(group(event.groupId).toString())
Expand All @@ -441,7 +453,7 @@ class JpaPolyflowViewTaskService(
taskRepository
.findById(event.id)
.ifEmpty {
logger.warn("Cannot update task '${event.id}' because it does not exist in the database")
logger.warn { "Cannot update task '${event.id}' because it does not exist in the database" }
}
.ifPresent { entity ->

Expand Down
2 changes: 1 addition & 1 deletion view/mongo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.holunda.polyflow</groupId>
<artifactId>polyflow-view-parent</artifactId>
<version>4.1.3</version>
<version>4.1.4</version>
</parent>

<artifactId>polyflow-view-mongo</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,8 @@ internal class TaskChangeTrackerTest {
private fun publisher() = TestPublisher.create<ChangeStreamEvent<TaskDocument>>()

private fun TestPublisher<ChangeStreamEvent<TaskDocument>>.returnForResumeToken(resumeToken: Int?) = apply {

//whenever(taskRepository.getTaskUpdates(anyOrNull())).thenReturn(this.flux())
whenever(taskRepository.getTaskUpdates(resumeToken?.let { resumeToken(it) })).thenReturn(this.flux())
}

Expand Down
2 changes: 1 addition & 1 deletion view/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.holunda.polyflow</groupId>
<artifactId>polyflow-parent</artifactId>
<version>4.1.3</version>
<version>4.1.4</version>
<relativePath>../bom/parent/pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion view/simple/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.holunda.polyflow</groupId>
<artifactId>polyflow-view-parent</artifactId>
<version>4.1.3</version>
<version>4.1.4</version>
</parent>

<artifactId>polyflow-view-simple</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion view/view-api-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.holunda.polyflow</groupId>
<artifactId>polyflow-view-parent</artifactId>
<version>4.1.3</version>
<version>4.1.4</version>
</parent>

<artifactId>polyflow-view-api-client</artifactId>
Expand Down
Loading

0 comments on commit 4f20ca6

Please sign in to comment.