Class DefaultCorrelationHandler
java.lang.Object
org.camunda.bpm.engine.impl.runtime.DefaultCorrelationHandler
- All Implemented Interfaces:
CorrelationHandler
- Author:
- Thorben Lindhauer, Daniel Meyer, Michael Scholz
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncorrelateMessage
(CommandContext commandContext, String messageName, CorrelationSet correlationSet) Correlate the given message to either a waiting execution or a process definition with a message start event.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.protected List<CorrelationHandlerResult>
correlateMessageToExecutions
(CommandContext commandContext, String messageName, CorrelationSet correlationSet) protected List<CorrelationHandlerResult>
correlateStartMessageByEventSubscription
(CommandContext commandContext, String messageName, CorrelationSet correlationSet) protected CorrelationHandlerResult
correlateStartMessageByProcessDefinitionId
(CommandContext commandContext, String messageName, String processDefinitionId) correlateStartMessages
(CommandContext commandContext, String messageName, CorrelationSet correlationSet) Correlate the given message to process definitions with a message start event.protected List<EventSubscriptionEntity>
findMessageStartEventSubscriptions
(CommandContext commandContext, String messageName, CorrelationSet correlationSet) protected String
findStartActivityIdByMessage
(ProcessDefinitionEntity processDefinition, String messageName) protected boolean
isMessageStartEventWithName
(EventSubscriptionDeclaration declaration, String messageName)
-
Constructor Details
-
DefaultCorrelationHandler
public DefaultCorrelationHandler()
-
-
Method Details
-
correlateMessage
public CorrelationHandlerResult correlateMessage(CommandContext commandContext, String messageName, CorrelationSet correlationSet) Description copied from interface:CorrelationHandler
Correlate the given message to either a waiting execution or a process definition with a message start event.- Specified by:
correlateMessage
in interfaceCorrelationHandler
correlationSet
- any of its members may benull
- Returns:
- the matched correlation target or
null
if the message could not be correlated.
-
correlateMessages
public List<CorrelationHandlerResult> correlateMessages(CommandContext commandContext, String messageName, CorrelationSet correlationSet) Description copied from interface:CorrelationHandler
Correlate the given message to all waiting executions and all process definitions which have a message start event.- Specified by:
correlateMessages
in interfaceCorrelationHandler
correlationSet
- any of its members may benull
- Returns:
- all matched correlation targets or an empty List if the message could not be correlated.
-
correlateMessageToExecutions
protected List<CorrelationHandlerResult> correlateMessageToExecutions(CommandContext commandContext, String messageName, CorrelationSet correlationSet) -
correlateStartMessages
public List<CorrelationHandlerResult> correlateStartMessages(CommandContext commandContext, String messageName, CorrelationSet correlationSet) Description copied from interface:CorrelationHandler
Correlate the given message to process definitions with a message start event.- Specified by:
correlateStartMessages
in interfaceCorrelationHandler
correlationSet
- any of its members may benull
- Returns:
- the matched correlation targets or an empty list if the message could not be correlated.
-
correlateStartMessageByEventSubscription
protected List<CorrelationHandlerResult> correlateStartMessageByEventSubscription(CommandContext commandContext, String messageName, CorrelationSet correlationSet) -
findMessageStartEventSubscriptions
protected List<EventSubscriptionEntity> findMessageStartEventSubscriptions(CommandContext commandContext, String messageName, CorrelationSet correlationSet) -
correlateStartMessageByProcessDefinitionId
protected CorrelationHandlerResult correlateStartMessageByProcessDefinitionId(CommandContext commandContext, String messageName, String processDefinitionId) -
findStartActivityIdByMessage
protected String findStartActivityIdByMessage(ProcessDefinitionEntity processDefinition, String messageName) -
isMessageStartEventWithName
protected boolean isMessageStartEventWithName(EventSubscriptionDeclaration declaration, String messageName)
-