Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfix: add missing @bean to polyflow connector starter #1053

Merged
merged 1 commit into from
Nov 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
import io.holunda.polyflow.taskpool.sender.SenderConfiguration;
import jakarta.annotation.PostConstruct;
import lombok.extern.slf4j.Slf4j;
import org.axonframework.common.jpa.EntityManagerProvider;
import org.axonframework.common.transaction.TransactionManager;
import org.axonframework.eventsourcing.eventstore.EventStorageEngine;
import org.axonframework.eventsourcing.eventstore.jpa.JpaEventStorageEngine;
import org.axonframework.serialization.Serializer;
import org.axonframework.springboot.autoconfig.AxonAutoConfiguration;
import org.axonframework.springboot.autoconfig.ObjectMapperAutoConfiguration;
import org.springframework.beans.factory.annotation.Qualifier;
Expand All @@ -16,7 +21,6 @@
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

// Client integration components

Expand Down Expand Up @@ -73,4 +77,19 @@
public TaskManagementProperties.AssignmentProperties assignmentProperties(TaskManagementProperties properties) {
return properties.getAssignment();
}

@Bean
public EventStorageEngine jpaStorageEngine(
EntityManagerProvider entityManagerProvider,
TransactionManager transactionManager,
@Qualifier("eventSerializer")
Serializer eventSerializer
) {
return JpaEventStorageEngine
.builder()
.entityManagerProvider(entityManagerProvider)
.transactionManager(transactionManager)
.eventSerializer(eventSerializer)
.build();

Check warning on line 93 in digiwf-task/digiwf-polyflow-connector-starter/src/main/java/de/muenchen/oss/digiwf/task/PolyflowConnectorAutoConfiguration.java

View check run for this annotation

Codecov / codecov/patch

digiwf-task/digiwf-polyflow-connector-starter/src/main/java/de/muenchen/oss/digiwf/task/PolyflowConnectorAutoConfiguration.java#L88-L93

Added lines #L88 - L93 were not covered by tests
}
}
Loading