File tree Expand file tree Collapse file tree
src/main/java/org/mifos/processor/bulk/camel/routes Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -128,8 +128,12 @@ public void configure() throws Exception {
128128 int index = exchange .getProperty (Exchange .LOOP_INDEX , Integer .class );
129129 List <Transaction > transactionList = exchange .getProperty (TRANSACTION_LIST , List .class );
130130 Transaction transaction = transactionList .get (index );
131+ exchange .setProperty (REQUEST_ID , transaction .getRequestId ());
132+ logger .info ("REQUEST_ID: {}" , transaction .getRequestId ());
131133 exchange .setProperty (TRANSACTION_LIST_ELEMENT , transaction );
132- }).setHeader ("Platform-TenantId" , exchangeProperty (TENANT_NAME )).to ("direct:dynamic-payload-setter" )
134+ }).setHeader ("Platform-TenantId" , exchangeProperty (TENANT_NAME ))
135+ .setHeader ("X-CorrelationID" , exchangeProperty (REQUEST_ID ))
136+ .to ("direct:dynamic-payload-setter" )
133137 .to ("direct:external-api-call" ).to ("direct:external-api-response-handler" ).end () // end loop block
134138 .endChoice ();
135139
You can’t perform that action at this time.
0 commit comments