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

Calling single service with Mono #38

Open
srinivasvadla opened this issue Dec 23, 2020 · 0 comments
Open

Calling single service with Mono #38

srinivasvadla opened this issue Dec 23, 2020 · 0 comments

Comments

@srinivasvadla
Copy link

Hi ,
I would like to call one service using Mono zip () , Genrally mono.zip takes multipple service call response and give the mono response . but i need to call one service and get the result and return the result back .
Please see the below code

Mono initiateWalletBPMRespnoseMono = service1.invokeCJCMAPI(data, intent,processorStep);
Mono customerProfileGQLResponseMono = servic2.invokeCustomerProfileCXPAPI(data);
return Mono.zip(initiateWalletBPMRespnoseMono, customerProfileGQLResponseMono).flatMap(tuple -> {
BPMResponse walletBpmResponse = tuple.getT1();
CustomerProfileGQLResponse paymentCxpInfo = tuple.getT2();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant