Skip to content

Commit

Permalink
Merge branch 'release/3.1.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
zambrovski committed Sep 1, 2021
2 parents 8d9da5c + 8c7b963 commit d070517
Show file tree
Hide file tree
Showing 62 changed files with 233 additions and 92 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>3.1.2</version>
<version>3.1.3</version>
<relativePath>../parent/pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion 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>3.1.2</version>
<version>3.1.3</version>
<relativePath>../../pom.xml</relativePath>
</parent>

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>3.1.2</version>
<version>3.1.3</version>
<relativePath>../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 @@ -5,7 +5,7 @@
<parent>
<groupId>io.holunda.polyflow</groupId>
<artifactId>polyflow-datapool-parent</artifactId>
<version>3.1.2</version>
<version>3.1.3</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 @@ -5,7 +5,7 @@
<parent>
<groupId>io.holunda.polyflow</groupId>
<artifactId>polyflow-datapool-parent</artifactId>
<version>3.1.2</version>
<version>3.1.3</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>3.1.2</version>
<version>3.1.3</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 @@ -5,7 +5,7 @@
<parent>
<groupId>io.holunda.polyflow</groupId>
<artifactId>polyflow-parent</artifactId>
<version>3.1.2</version>
<version>3.1.3</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 @@ -5,7 +5,7 @@
<parent>
<groupId>io.holunda.polyflow</groupId>
<artifactId>polyflow-parent</artifactId>
<version>3.1.2</version>
<version>3.1.3</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>3.1.2</version>
<version>3.1.3</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>3.1.2</version>
<version>3.1.3</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>3.1.2</version>
<version>3.1.3</version>
</parent>

<artifactId>polyflow-taskpool-event</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion docs/getting-started/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ to your `pom.xml`:

## Activate Polyflow Support

Now, find your SpringBoot application class and add an additional annotation to it:
Now, find your SpringBoot application class and add an annotation to it:


``` java
Expand Down
6 changes: 3 additions & 3 deletions docs/reference-guide/components/core-datapool.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ and activate its configuration by adding the following to a Spring configuration

```kotlin
@Configuration
@EnableDataPool
@EnablePolyflowDataPool
class MyConfiguration
```

Expand All @@ -39,7 +39,7 @@ activate the correlation provider by putting the following code snippet in the a

```kotlin
@Configuration
@EnableDataPool
@EnablePolyflowDataPool
class MyConfiguration {

@Bean
Expand All @@ -56,5 +56,5 @@ class MyConfiguration {
```

By doing so, if a command is sending revision information, it will be passed to the resulting event and will be received by the projection, so the
latter will deliver revision information in query results. The use of `RevisionAwareQueryGateway` will allow to query for specific revisions in the data entry
latter will deliver revision information in query results. The use of `RevisionAwareQueryGateway` will allow querying for specific revisions in the data entry
projection, see documentation of `axon-gateway-extension` project.
25 changes: 11 additions & 14 deletions docs/reference-guide/components/view-jpa.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,27 +60,23 @@ configuration of this indexing process by the following configuration options:
```yml
polyflow.view.jpa:
payload-attribute-level-limit: 2
stored-items: task, data-entry, process-instance, process-definition
data-entry-filter:
include: myProperty2.myOtherEmbeddedProperty3, myProperty2.myOtherEmbeddedProperty2
# exclude: myProperty
```

In the example below you see the configuration of the limit of keying depth and usage of include/exclude filters of the keys.
In addition, the `stored-items` property is holding a set of items to be persisted to the database. The possible values of
stored items are: `task`, `data-entry`, `process-instance` and `process-definition`. By setting this property, you can disable
storage of items not required by your application and save space consumption of your database. The property defaults to `data-entry`.

### Entity Scan

The events consumed by the JPA view change data inside the database. In addition, the view sends
updates to subscription queries using the standard Axon Query Event Update Emitter mechanism. Since your
application may use transactions, you might want to configure the moment when the events are sent using the
following configuration options:
```yml
polyflow.view.jpa:
event-emitting-type: AFTER_COMMIT # or DIRECT or BEFORE_COMMIT
```

The `DIRECT` option sends the events directly without any transaction synchronization,
the default `AFTER_COMMIT` option sends updates after the commit and `BEFORE_COMMIT` option
sends updates before the commit of the transaction, delivering the events.

The JPA View utilizes Spring Data repositories and Hibernate entities inside the persistence layer. As a result, it declares a `@EntityScan`
and `@EnableJpaRepositories` annotations pointing at the corresponding locations. If you are using Spring Data JPA on your own, you will
need to add the `@EntityScan` and `@EnableJpaRepositores` annotation pointing at your packages. In addition, please check
[Persistence configuration](../configuration/persistence.md).


### Logging
Expand All @@ -89,7 +85,8 @@ The view implementation provides runtime details using standard logging facility
want to increase the logging level, please setup it e.g. in your `application.yaml`:

```yml
logging.level.io.holunda.polyflow.view.jpa: DEBUG
logging.level:
io.holunda.polyflow.view.jpa: DEBUG
```

### DB Tables
Expand Down
17 changes: 17 additions & 0 deletions docs/reference-guide/configuration/persistence.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
## Persistence

If you use relational databases for your Event Store of the [DataPool](../components/core-datapool.md) or [TaskPool](../components/core-taskpool.md) or your view,
using the [JPA View](../components/view-jpa.md), Axon Framework, used as a component of Polyflow will detect and autoconfigure itself. Especially, if you use
Spring Data JPA or Spring JDBC, Axon auto-configuration will try to reuse it.

If you are using `@EntityScan` annotation, you need to add Axon entities to the scan. To do so, please the following code on top of a class marked with `@Configuration`.

```kotlin
@Configuration
@EntityScan(
basePackageClasses = [
TokenEntry::class, DomainEventEntry::class, SagaEntry::class
]
)
class MyConfiguration
```
2 changes: 1 addition & 1 deletion examples/components/process-backend/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-examples-parent</artifactId>
<version>3.1.2</version>
<version>3.1.3</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion examples/components/process-forms/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-examples-parent</artifactId>
<version>3.1.2</version>
<version>3.1.3</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion examples/components/tasklist-angular/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-examples-parent</artifactId>
<version>3.1.2</version>
<version>3.1.3</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
4 changes: 2 additions & 2 deletions examples/components/tasklist-backend/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-examples-parent</artifactId>
<version>3.1.2</version>
<version>3.1.3</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down Expand Up @@ -109,7 +109,7 @@
<dependency>
<groupId>io.holunda.polyflow</groupId>
<artifactId>polyflow-example-tasklist-reactive-backend</artifactId>
<version>3.1.2</version>
<version>3.1.3</version>
<scope>compile</scope>
</dependency>

Expand Down
2 changes: 1 addition & 1 deletion examples/components/tasklist-reactive-backend/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-examples-parent</artifactId>
<version>3.1.2</version>
<version>3.1.3</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion examples/components/users/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>io.holunda.polyflow</groupId>
<artifactId>polyflow-examples-parent</artifactId>
<version>3.1.2</version>
<version>3.1.3</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion examples/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>3.1.2</version>
<version>3.1.3</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.holunda.polyflow</groupId>
<artifactId>polyflow-example-cockpit-root</artifactId>
<version>3.1.2</version>
<version>3.1.3</version>
</parent>

<artifactId>polyflow-example-cockpit</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.holunda.polyflow</groupId>
<artifactId>polyflow-example-cockpit-root</artifactId>
<version>3.1.2</version>
<version>3.1.3</version>
</parent>

<artifactId>polyflow-example-cockpit-backend</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.holunda.polyflow</groupId>
<artifactId>polyflow-example-cockpit-root</artifactId>
<version>3.1.2</version>
<version>3.1.3</version>
</parent>

<artifactId>polyflow-example-cockpit-frontend</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.holunda.polyflow</groupId>
<artifactId>polyflow-example-scenario-distributed-axon-server</artifactId>
<version>3.1.2</version>
<version>3.1.3</version>
</parent>

<artifactId>polyflow-example-cockpit-root</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion examples/scenarios/distributed-axon-server/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-example-scenario-root</artifactId>
<version>3.1.2</version>
<version>3.1.3</version>
</parent>

<artifactId>polyflow-example-scenario-distributed-axon-server</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.holunda.polyflow</groupId>
<artifactId>polyflow-example-scenario-distributed-axon-server</artifactId>
<version>3.1.2</version>
<version>3.1.3</version>
</parent>

<artifactId>example-distributed-axon-server-process-application</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.holunda.polyflow</groupId>
<artifactId>polyflow-example-scenario-distributed-axon-server</artifactId>
<version>3.1.2</version>
<version>3.1.3</version>
</parent>

<artifactId>example-distributed-axon-server-taskpool-application</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion examples/scenarios/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-examples-parent</artifactId>
<version>3.1.2</version>
<version>3.1.3</version>
</parent>

<artifactId>polyflow-example-scenario-root</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion examples/scenarios/single-node/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-example-scenario-root</artifactId>
<version>3.1.2</version>
<version>3.1.3</version>
</parent>

<artifactId>polyflow-example-scenario-single-node</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 @@ -4,7 +4,7 @@
<parent>
<groupId>io.holunda.polyflow</groupId>
<artifactId>polyflow-integration-camunda-bpm-engine-parent</artifactId>
<version>3.1.2</version>
<version>3.1.3</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 @@ -5,7 +5,7 @@
<parent>
<groupId>io.holunda.polyflow</groupId>
<artifactId>polyflow-parent</artifactId>
<version>3.1.2</version>
<version>3.1.3</version>
<relativePath>../../bom/parent/pom.xml</relativePath>
</parent>

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>3.1.2</version>
<version>3.1.3</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>3.1.2</version>
<version>3.1.3</version>
</parent>

<artifactId>polyflow-camunda-bpm-taskpool-collector</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 @@ -5,7 +5,7 @@
<parent>
<groupId>io.holunda.polyflow</groupId>
<artifactId>polyflow-integration-common-parent</artifactId>
<version>3.1.2</version>
<version>3.1.3</version>
</parent>

<artifactId>polyflow-datapool-sender</artifactId>
Expand Down
Loading

0 comments on commit d070517

Please sign in to comment.