CorrelationHandler correlationHandler = Context
.getProcessEngineConfiguration()
.getCorrelationHandler();
CorrelationSet correlationSet = new CorrelationSet(businessKey, processInstanceId, correlationKeys);
List<MessageCorrelationResult> correlationResults = correlationHandler
.correlateMessages(commandContext, messageName, correlationSet);
for (MessageCorrelationResult correlationResult : correlationResults) {
if (MessageCorrelationResult.TYPE_EXECUTION.equals(correlationResult.getResultType())) {
triggerExecution(commandContext, correlationResult);