You have exchange-pattern="one-way"
, meaning the jdbc outbound call will not return to the main flow. Use exchange-pattern="request-response"
instead to get a return value.
Also <set-payload value="#[message.payload]" doc:name="Set Payload"/>
does not make any sense. You need a transformer of some sort to make the return value readable. You can add a logger to see the returned payload.
UPDATE:
Return value of csv-to-maps-transformer is ArrayList, not Map, so you can not use map-payload:ID. Try splitting the ArrayList, or use #[payload[0].ID]
if you have just a single entry.