you use the following expression to correlate the message:
${execution.getProcessEngineServices().getRuntimeService().createMessageCorrelation(execution.getVariable("responseMessageName")) .setVariable("result", "12") .correlateWithResult()}
If you use correlateAll() instead of correlateWithResult() then no exception is thrown.
Does this help you?
Best regards,
Philipp