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 EventSubscriptionQueryeventReceived(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, EventInstance eventInstance) protected EventRegistryMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.flowable.eventregistry.api.EventRegistryEventConsumer
getConsumerKey
-
Field Details
-
engingeConfiguration
-
commandExecutor
-
-
Constructor Details
-
BaseEventRegistryEventConsumer
-
-
Method Details
-
eventReceived
- Specified by:
eventReceivedin 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
-