}
// mapping the message to the correct flow node id is done via
// the corresponding header (it could also be done via the
// flowNodeIdIntegrationMap or the routeId)
IntegrationMessage integrationMessage = new IntegrationMessage(
ex.getIn().getHeader("processId",
String.class), ex.getIn()
.getHeader("uniqueFlowNodeId",
String.class), ex
.getIn().getHeader(
"processInstanceId",
String.class), ex
.getIn().getBody());
if (integrationMessage.getUniqueFlowNodeId() == null) {
integrationMessage.setUniqueFlowNodeId(uniqueFlowNodeId);
}
receive(integrationMessage,
metaDataValues);