Interface CorrelationHandler
-
- All Known Implementing Classes:
DefaultCorrelationHandler
public interface CorrelationHandler
- Author:
- Thorben Lindhauer, Daniel Meyer, Michael Scholz
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CorrelationHandlerResult
correlateMessage(CommandContext commandContext, java.lang.String messageName, CorrelationSet correlationSet)
Correlate the given message to either a waiting execution or a process definition with a message start event.java.util.List<CorrelationHandlerResult>
correlateMessages(CommandContext commandContext, java.lang.String messageName, CorrelationSet correlationSet)
Correlate the given message to all waiting executions and all process definitions which have a message start event.java.util.List<CorrelationHandlerResult>
correlateStartMessages(CommandContext commandContext, java.lang.String messageName, CorrelationSet correlationSet)
Correlate the given message to process definitions with a message start event.
-
-
-
Method Detail
-
correlateMessage
CorrelationHandlerResult correlateMessage(CommandContext commandContext, java.lang.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 benull
- Returns:
- the matched correlation target or
null
if the message could not be correlated.
-
correlateMessages
java.util.List<CorrelationHandlerResult> correlateMessages(CommandContext commandContext, java.lang.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 benull
- Returns:
- all matched correlation targets or an empty List if the message could not be correlated.
-
correlateStartMessages
java.util.List<CorrelationHandlerResult> correlateStartMessages(CommandContext commandContext, java.lang.String messageName, CorrelationSet correlationSet)
Correlate the given message to process definitions with a message start event.- Parameters:
correlationSet
- any of its members may benull
- Returns:
- the matched correlation targets or an empty list if the message could not be correlated.
-
-