Class BaseEventRegistryEventConsumer
- java.lang.Object
-
- org.flowable.eventregistry.impl.consumer.BaseEventRegistryEventConsumer
-
- All Implemented Interfaces:
EventRegistryEventConsumer
public abstract class BaseEventRegistryEventConsumer extends Object implements EventRegistryEventConsumer
- Author:
- Joram Barrez, Filip Hrisafov
-
-
Field Summary
Fields Modifier and Type Field Description protected CommandExecutorcommandExecutorprotected AbstractEngineConfigurationengingeConfiguration
-
Constructor Summary
Constructors Constructor Description BaseEventRegistryEventConsumer(AbstractEngineConfiguration engingeConfiguration)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract EventSubscriptionQuerycreateEventSubscriptionQuery()EventRegistryProcessingInfoeventReceived(EventRegistryEvent event)protected abstract EventRegistryProcessingInfoeventReceived(EventInstance eventInstance)protected List<EventSubscription>findEventSubscriptions(String scopeType, EventInstance eventInstance, Collection<CorrelationKey> correlationKeys)protected StringgenerateCorrelationKey(Collection<EventPayloadInstance> correlationParameterInstances)protected Collection<CorrelationKey>generateCorrelationKeys(Collection<EventPayloadInstance> correlationParameterInstances)Generates all possible correlation keys for the given correlation parameters.protected CorrelationKeygetCorrelationKeyWithAllParameters(Collection<CorrelationKey> correlationKeys)protected EventRegistrygetEventRegistry()-
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 Detail
-
engingeConfiguration
protected AbstractEngineConfiguration engingeConfiguration
-
commandExecutor
protected CommandExecutor commandExecutor
-
-
Constructor Detail
-
BaseEventRegistryEventConsumer
public BaseEventRegistryEventConsumer(AbstractEngineConfiguration engingeConfiguration)
-
-
Method Detail
-
eventReceived
public EventRegistryProcessingInfo eventReceived(EventRegistryEvent event)
- Specified by:
eventReceivedin interfaceEventRegistryEventConsumer
-
eventReceived
protected abstract EventRegistryProcessingInfo eventReceived(EventInstance eventInstance)
-
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
protected EventRegistry getEventRegistry()
-
getCorrelationKeyWithAllParameters
protected CorrelationKey getCorrelationKeyWithAllParameters(Collection<CorrelationKey> correlationKeys)
-
findEventSubscriptions
protected List<EventSubscription> findEventSubscriptions(String scopeType, EventInstance eventInstance, Collection<CorrelationKey> correlationKeys)
-
createEventSubscriptionQuery
protected abstract EventSubscriptionQuery createEventSubscriptionQuery()
-
-