org.camunda.bpm.engine.impl.runtime
Interface CorrelationHandler

All Known Implementing Classes:
DefaultCorrelationHandler

public interface CorrelationHandler

Author:
Thorben Lindhauer, Daniel Meyer, Michael Scholz

Method Summary
 CorrelationHandlerResult correlateMessage(CommandContext commandContext, String messageName, CorrelationSet correlationSet)
          Correlate the given message to either a waiting execution or a process definition with a message start event.
 List<CorrelationHandlerResult> correlateMessages(CommandContext commandContext, String messageName, CorrelationSet correlationSet)
          Correlate the given message to all waiting executions and all process definitions which have a message start event.
 List<CorrelationHandlerResult> correlateStartMessages(CommandContext commandContext, String messageName, CorrelationSet correlationSet)
          Correlate the given message to process definitions with a message start event.
 

Method Detail

correlateMessage

CorrelationHandlerResult correlateMessage(CommandContext commandContext,
                                          String messageName,
                                          CorrelationSet correlationSet)
Correlate the given message to either a waiting execution or a process definition with a message start event.

Parameters:
correlationSet - any of its members may be null
Returns:
the matched correlation target or null if the message could not be correlated.

correlateMessages

List<CorrelationHandlerResult> correlateMessages(CommandContext commandContext,
                                                 String messageName,
                                                 CorrelationSet correlationSet)
Correlate the given message to all waiting executions and all process definitions which have a message start event.

Parameters:
correlationSet - any of its members may be null
Returns:
all matched correlation targets or an empty List if the message could not be correlated.

correlateStartMessages

List<CorrelationHandlerResult> correlateStartMessages(CommandContext commandContext,
                                                      String messageName,
                                                      CorrelationSet correlationSet)
Correlate the given message to process definitions with a message start event.

Parameters:
correlationSet - any of its members may be null
Returns:
the matched correlation targets or an empty list if the message could not be correlated.


Copyright © 2016 camunda services GmbH. All rights reserved.