org.camunda.bpm.engine.impl.runtime
Class DefaultCorrelationHandler

java.lang.Object
  extended by org.camunda.bpm.engine.impl.runtime.DefaultCorrelationHandler
All Implemented Interfaces:
CorrelationHandler

public class DefaultCorrelationHandler
extends Object
implements CorrelationHandler

Author:
Thorben Lindhauer, Daniel Meyer, Michael Scholz

Constructor Summary
DefaultCorrelationHandler()
           
 
Method Summary
 MessageCorrelationResult correlateMessage(CommandContext commandContext, String messageName, CorrelationSet correlationSet)
          Correlate the given message and return the MessageCorrelationResult that matches it.
 List<MessageCorrelationResult> correlateMessages(CommandContext commandContext, String messageName, CorrelationSet correlationSet)
          Correlate all given messages and return a List of MessageCorrelationResults that matches them.
protected  List<MessageCorrelationResult> correlateMessageToExecutions(CommandContext commandContext, String messageName, CorrelationSet correlationSet)
           
protected  MessageCorrelationResult tryCorrelateMessageToProcessDefinition(CommandContext commandContext, String messageName, CorrelationSet correlationSet)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultCorrelationHandler

public DefaultCorrelationHandler()
Method Detail

correlateMessage

public MessageCorrelationResult correlateMessage(CommandContext commandContext,
                                                 String messageName,
                                                 CorrelationSet correlationSet)
Description copied from interface: CorrelationHandler
Correlate the given message and return the MessageCorrelationResult that matches it. Return null if the message could not be correlated.

Specified by:
correlateMessage in interface CorrelationHandler
correlationSet - any of its members may be null
Returns:

correlateMessages

public List<MessageCorrelationResult> correlateMessages(CommandContext commandContext,
                                                        String messageName,
                                                        CorrelationSet correlationSet)
Description copied from interface: CorrelationHandler
Correlate all given messages and return a List of MessageCorrelationResults that matches them. Return any empty List if no message could not be correlated.

Specified by:
correlateMessages in interface CorrelationHandler
correlationSet - any of its members may be null
Returns:

correlateMessageToExecutions

protected List<MessageCorrelationResult> correlateMessageToExecutions(CommandContext commandContext,
                                                                      String messageName,
                                                                      CorrelationSet correlationSet)

tryCorrelateMessageToProcessDefinition

protected MessageCorrelationResult tryCorrelateMessageToProcessDefinition(CommandContext commandContext,
                                                                          String messageName,
                                                                          CorrelationSet correlationSet)


Copyright © 2016 camunda services GmbH. All rights reserved.