Class BaseEventRegistryEventConsumer
java.lang.Object
org.flowable.eventregistry.impl.consumer.BaseEventRegistryEventConsumer
- All Implemented Interfaces:
EventRegistryEventConsumer
- Direct Known Subclasses:
BpmnEventRegistryEventConsumer
,CmmnEventRegistryEventConsumer
public abstract class BaseEventRegistryEventConsumer
extends Object
implements EventRegistryEventConsumer
- Author:
- Joram Barrez, Filip Hrisafov
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBaseEventRegistryEventConsumer
(AbstractEngineConfiguration engingeConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract EventSubscriptionQuery
eventReceived
(EventRegistryEvent event) protected abstract EventRegistryProcessingInfo
eventReceived
(EventInstance eventInstance) protected List<EventSubscription>
findEventSubscriptions
(String scopeType, EventInstance eventInstance, Collection<CorrelationKey> correlationKeys) protected String
generateCorrelationKey
(Collection<EventPayloadInstance> correlationParameterInstances) protected Collection<CorrelationKey>
generateCorrelationKeys
(Collection<EventPayloadInstance> correlationParameterInstances) Generates all possible correlation keys for the given correlation parameters.protected CorrelationKey
getCorrelationKeyWithAllParameters
(Collection<CorrelationKey> correlationKeys, EventInstance eventInstance) protected EventRegistry
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.flowable.eventregistry.api.EventRegistryEventConsumer
getConsumerKey
-
Field Details
-
engingeConfiguration
-
commandExecutor
-
-
Constructor Details
-
BaseEventRegistryEventConsumer
-
-
Method Details
-
eventReceived
- Specified by:
eventReceived
in interfaceEventRegistryEventConsumer
-
eventReceived
-
generateCorrelationKeys
protected Collection<CorrelationKey> generateCorrelationKeys(Collection<EventPayloadInstance> correlationParameterInstances) Generates all possible correlation keys for the given correlation parameters. The first element in the list will only have used one parameter. The last element in the list has included all parameters. -
generateCorrelationKey
protected String generateCorrelationKey(Collection<EventPayloadInstance> correlationParameterInstances) -
getEventRegistry
-
getCorrelationKeyWithAllParameters
protected CorrelationKey getCorrelationKeyWithAllParameters(Collection<CorrelationKey> correlationKeys, EventInstance eventInstance) -
findEventSubscriptions
protected List<EventSubscription> findEventSubscriptions(String scopeType, EventInstance eventInstance, Collection<CorrelationKey> correlationKeys) -
createEventSubscriptionQuery
-