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

Add local profile legal entity bootstrap task #412

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
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
@@ -1,15 +1,23 @@
package com.backbase.stream;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import reactor.core.publisher.Hooks;


@Slf4j
@SpringBootApplication
public class SetupLegalEntityHierarchyTaskApplication {

public static void main(String[] args) {

if (log.isDebugEnabled()) {
Hooks.onOperatorDebug();
}

SpringApplication springApplication = new SpringApplication(SetupLegalEntityHierarchyTaskApplication.class);
springApplication.setWebApplicationType(WebApplicationType.NONE);
springApplication.run(args);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ private void run(String... args) {
Flux.fromIterable(aggregates)
.map(LegalEntityTask::new)
.flatMap(legalEntitySaga::executeTask)
.doOnNext(LegalEntityTask::logSummary)
.collectList()
.block();

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
logging:
level:
root: INFO
com.backbase: DEBUG
com.backbase.stream: DEBUG
org.springframework: INFO
org.springframework.web.reactive: INFO

eureka:
client:
enabled: false
# Stream config
spring:
cloud:
loadbalancer:
enabled: false
config:
enabled: false
discovery:
enabled: true
security:
oauth2:
client:
registration:
bb:
authorization-grant-type: client_credentials
client-id: bb-client
client-secret: bb-secret
provider:
bb:
token-uri: http://localhost:7779/oauth/token
datasource:
url: jdbc:h2:mem:backbase_stream:security_permission;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE

backbase:
communication:
services:
access-control:
direct-uri: http://localhost:8040
usermanager:
direct-uri: http://localhost:8060
identity:
integration:
direct-uri: http://localhost:8070
arrangement:
manager:
direct-uri: http://localhost:8050


Loading