From 9daa4c43a23aec48fd7451a4f171ba3c80ef4956 Mon Sep 17 00:00:00 2001 From: Stephan Pelikan Date: Wed, 19 Jun 2024 14:00:30 +0200 Subject: [PATCH] Try to run C8 aspect within TX aspect --- .../io/vanillabp/camunda8/Camunda8AdapterConfiguration.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spring-boot/src/main/java/io/vanillabp/camunda8/Camunda8AdapterConfiguration.java b/spring-boot/src/main/java/io/vanillabp/camunda8/Camunda8AdapterConfiguration.java index 033ed65..c947d8d 100644 --- a/spring-boot/src/main/java/io/vanillabp/camunda8/Camunda8AdapterConfiguration.java +++ b/spring-boot/src/main/java/io/vanillabp/camunda8/Camunda8AdapterConfiguration.java @@ -35,6 +35,8 @@ import org.springframework.context.ApplicationEventPublisher; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Scope; +import org.springframework.core.Ordered; +import org.springframework.core.annotation.Order; import org.springframework.data.repository.CrudRepository; @AutoConfigurationPackage(basePackageClasses = Camunda8AdapterConfiguration.class) @@ -79,6 +81,7 @@ public void init() { } @Bean + @Order(Ordered.LOWEST_PRECEDENCE) public Camunda8TransactionAspect camunda8TransactionAspect() { return new Camunda8TransactionAspect(eventPublisher);