@Bean public IntegrationFlow enricherFlow3() { return IntegrationFlows.from("enricherInput3", true) .enrich(e -> e.requestChannel("enrichChannel") .requestPayload(Message::getPayload) .shouldClonePayload(false) .<Map<String, String>>headerFunction("foo", m -> m.getPayload().get("name"))) .get(); }
@Bean public IntegrationFlow enricherFlow2() { return IntegrationFlows.from("enricherInput2", true) .enrich(e -> e.requestChannel("enrichChannel") .requestPayloadExpression("payload") .shouldClonePayload(false) .propertyExpression("name", "payload['name']") .propertyExpression("date", "new java.util.Date()") ) .get(); }
@Bean public IntegrationFlow enricherFlow() { return IntegrationFlows.from("enricherInput", true) .enrich(e -> e.requestChannel("enrichChannel") .errorChannel(enricherErrorChannel()) .requestPayloadExpression("payload") .shouldClonePayload(false) .propertyExpression("name", "payload['name']") .propertyFunction("date", m -> new Date()) .headerExpression("foo", "payload['name']") ) .logAndReply(); }
@Bean public IntegrationFlow enricherFlow3() { return IntegrationFlows.from("enricherInput3", true) .enrich(e -> e.requestChannel("enrichChannel") .requestPayload(Message::getPayload) .shouldClonePayload(false) .<Map<String, String>>headerFunction("foo", m -> m.getPayload().get("name"))) .get(); }
@Bean public IntegrationFlow enricherFlow() { return IntegrationFlows.from("enricherInput", true) .enrich(e -> e.requestChannel("enrichChannel") .requestPayloadExpression("payload") .shouldClonePayload(false) .propertyExpression("name", "payload['name']") .propertyFunction("date", m -> new Date()) .headerExpression("foo", "payload['name']") ) .get(); }
@Bean public IntegrationFlow enricherFlow2() { return IntegrationFlows.from("enricherInput2", true) .enrich(e -> e.requestChannel("enrichChannel") .requestPayloadExpression("payload") .shouldClonePayload(false) .propertyExpression("name", "payload['name']") .propertyExpression("date", "new java.util.Date()") ) .get(); }