Skip to content

Commit

Permalink
Remove Database Migration Factory and related classes (#62)
Browse files Browse the repository at this point in the history
Deleted DatabaseMigrationFactory, DatasourceMigrationJpa, and MigrationDatasourceConfiguration classes as part of the migration to new configuration. Adjusted logging levels and added native reflection configurations for BPMN process support. Updated build scripts and configuration files to reflect these changes.
  • Loading branch information
gjong authored Oct 16, 2024
1 parent 47d390a commit fb725d5
Show file tree
Hide file tree
Showing 27 changed files with 2,200 additions and 137 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

import com.jongsoft.finance.ProcessVariable;
import com.jongsoft.finance.bpmn.camunda.*;
import com.jongsoft.finance.core.DataSourceMigration;
import com.jongsoft.finance.importer.api.TransactionDTO;
import io.micronaut.context.ApplicationContext;
import io.micronaut.context.annotation.Context;
import io.micronaut.context.annotation.Bean;
import io.micronaut.context.annotation.Factory;
import io.micronaut.context.annotation.Requirements;
import io.micronaut.context.annotation.Requires;
import io.micronaut.serde.ObjectMapper;
import lombok.extern.slf4j.Slf4j;
Expand All @@ -23,7 +23,8 @@

@Slf4j
@Factory
@Requires(beans = DataSourceMigration.class, notEnv = "no-camunda")
@Requirements({
@Requires(notEnv = "no-camunda")})
public class ProcessEngineConfiguration {

private final ApplicationContext applicationContext;
Expand All @@ -36,7 +37,7 @@ public ProcessEngineConfiguration(
this.camundaDatasourceConfiguration = camundaDatasourceConfiguration;
}

@Context
@Bean
public ProcessEngine processEngine() throws IOException {
var configuration = new StandaloneProcessEngineConfiguration();

Expand Down Expand Up @@ -68,17 +69,17 @@ public ProcessEngine processEngine() throws IOException {
return processEngine;
}

@Context
@Bean
public HistoryService historyService(ProcessEngine processEngine) {
return processEngine.getHistoryService();
}

@Context
@Bean
public TaskService taskService(ProcessEngine processEngine) {
return processEngine.getTaskService();
}

@Context
@Bean
public RuntimeService runtimeService(ProcessEngine processEngine) {
return processEngine.getRuntimeService();
}
Expand Down
Loading

0 comments on commit fb725d5

Please sign in to comment.