/** * Aggregates <code>oldInputData</code> and <code>newInputData</code>. * The aggregation result is written to body of the message returned by * {@link org.openehealth.ipf.platform.camel.core.util.Exchanges#resultMessage(Exchange)}. * * @param oldExchange original message exchange to write results to. * @param oldInputData original input data * @param newInputData additional input data * @param inputParams input parameters */ protected void doAggregate(Exchange oldExchange, Object oldInputData, Object newInputData, Object... inputParams) { prepareResult(oldExchange).setBody( aggregator.zap(Arrays.asList(oldInputData, newInputData), inputParams)); }