@@ -3,10 +3,10 @@ title: Process Engine Worker
33---
44
55Process Engine Worker is an independent component built on top of Process Engine API in order to accelerate the development of agnostic workers
6- for any process engine supported by Process Engine API in Spring Boot ecosystem. By doing so, it abstracts from specific worker clients and
6+ for any process engine supported by Process Engine API in Spring Boot ecosystem. By doing so, it abstracts from specific worker clients and
77API and allows to build universal workers.
88
9- First of all add the Process Engine Worker dependency to your projects classpath. In Maven add the following to you ` pom.xml ` :
9+ First of all add the Process Engine Worker dependency to your projects classpath. In Maven add the following to your ` pom.xml ` :
1010
1111``` xml
1212<dependency >
@@ -72,9 +72,22 @@ is a checked exception, in order to comply with Spring behavior of not rolling b
7272
7373The worker method can be marked transactional by adding Spring or Jakarta EE transactional annotations to the method or to the worker class.
7474If the annotation ` @org.springframework.transaction.annotation.Transactional ` with propagation ` REQUIRES ` , ` REQUIRES_NEW ` , ` SUPPORTS ` and ` MANDATORY `
75- is used, the library will execute the worker method and the completion of the external task via API in the same transaction. This will lead to
75+ is used, the library will execute the worker method and the completion of the external task via API in the same transaction. This will lead to
7676a transaction rollback, if the external task can't be completed (e.g. due to a network error).
7777
78+ ## Configuration
79+
80+ You can configure the Process Engine Worker by adding the following properties to your ` application.properties ` or ` application.yml ` :
81+
82+ ``` yaml
83+ dev :
84+ bpm-crafters :
85+ process-api :
86+ worker :
87+ registerProcessWorkers : true # Enable or disable automatic worker registration
88+ completeTasksBeforeCommit : false # Determines whether tasks are completed before transaction commit
89+ ` ` `
90+
7891
7992
8093
0 commit comments