I want to create a IntegrationFlow flow for the below flow.
- From Start to Deliver is the Sync flow.
- How to extract / fork a async end node from Build Items and Validate Items.
@Bean
public IntegrationFlow buildCart() {
return f -> f.handle(validate, "buildPreCheck")
.handle(preProcessProcessor)
.handle(getOffersProcessor)
.handle(buildItems)
**.wireTap(log())**
.handle(validateItems)
.handle(deliver);
}
EDIT:
Hi Artem, I added Wire Tap as in the below code. Still its excuting the WireTap node as Sequencal and waiting for that node.
Please help in making it a Aysnc node.
@Bean
public IntegrationFlow log() {
return f -> f.handle(auditProcessor).channel("nullChannel");
}
@ServiceActivator
@Description("Call and get the Offers Request")
public void getDetails(Message<Context> message) throws InterruptedException {
log.info("getDetails-Sleep-Start");
Thread.sleep(3000);
log.info("getDetails-Sleep-End");
}