You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`topic`|`String`|`""`| Topic name to subscribe this worker for. Alias for `value`. |
45
-
|`autoComplete`|`boolean`|`true`| Flag indicating if the task should be automatically completed after the worker execution. If the return type is `Map<String, Any>`, it will overrule this setting and auto-complete with the returned payload. |
46
-
|`completion`|`enum`|`DEFAULT`| Configures when the worker completes a task if `autoComplete` is active. Possible values are `DEFAULT`, `BEFORE_COMMIT`, and `AFTER_COMMIT`. Has no effect if the worker is not transactional. |
47
-
|`lockDuration`|`long`|`-1`| Optional lock duration in milliseconds for this worker. If set to `-1` (default), the global configuration of the process engine adapter will be used. (Available since `0.8.0`) |
|`topic`|`String`|`"__unset"`| Topic name to subscribe this worker for. Alias for `value`. |
47
+
|`autoComplete`|`boolean`|`true`| Flag indicating if the task should be automatically completed after the worker execution. If the return type is `Map<String, Any>`, it will overrule this setting and auto-complete with the returned payload. |
48
+
|`completion`|`enum`|`DEFAULT`| Configures when the worker completes a task if `autoComplete` is active. Possible values are `DEFAULT`, `BEFORE_COMMIT`, and `AFTER_COMMIT`. Has no effect if the worker is not transactional. |
49
+
|`lockDuration`|`long`|`-1`| Optional lock duration in milliseconds for this worker. If set to `-1` (default), the global configuration of the process engine adapter will be used. (Available since `0.8.0`) |
50
+
|`tenantId`|`String`|`""`| Optional tenant id to be used for current worker during the registration. Any non-blank value will be considered. If the value is empty, the value from the property will be used. |
48
51
49
52
## Method parameter resolution
50
53
51
54
Parameter resolution of the method annotated with `ProcessEngineWorker` is based on a set of strategies
52
55
registered by the `ParameterResolver` bean. Currently, the following parameters are resolved:
Copy file name to clipboardExpand all lines: itest/spring-boot-starter-integration-test/src/test/kotlin/dev/bpmcrafters/processengine/worker/fixture/TestApplication.kt
0 commit comments