Class EventRegistryInboundReactionAccountService
java.lang.Object
com.flowable.engage.external.system.service.EventRegistryInboundReactionAccountService
- All Implemented Interfaces:
InboundReactionAccountService
public class EventRegistryInboundReactionAccountService
extends Object
implements InboundReactionAccountService
An inbound reaction account service creating internal system events from inbound reaction not having a mapped account or an inactive account or user so any
listeners (like a case or process instance) might picking it up and processing it.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.flowable.common.engine.impl.DefaultTenantProviderstatic final Stringstatic final Stringstatic final Stringprotected final org.flowable.eventregistry.api.EventRegistryprotected final InboundReactionEventPayloadExtractorprotected final InboundReactionTenantExtractor -
Constructor Summary
ConstructorsConstructorDescriptionEventRegistryInboundReactionAccountService(org.flowable.eventregistry.api.EventRegistry eventRegistry, InboundReactionTenantExtractor tenantExtractorService, org.flowable.common.engine.impl.DefaultTenantProvider defaultTenantProvider, InboundReactionEventPayloadExtractor inboundReactionEventPayloadExtractor) -
Method Summary
Modifier and TypeMethodDescriptionprotected Collection<org.flowable.eventregistry.api.runtime.EventPayloadInstance> extractEventPayload(InboundReaction inboundReaction) Internal hook method extracting the data of the inbound reaction and adding them as payload to the event instance.protected Collection<org.flowable.eventregistry.api.runtime.EventPayloadInstance> extractEventPayload(InboundReaction inboundReaction, UserAccount userAccount) Internal hook method extracting the data of the inbound reaction as well as the user account and adding them as payload to the event instance.protected StringextractTenantId(InboundReaction inboundReaction) Internal hook method extracting the tenant id out of the given inbound reaction.voidreactionReceivedInactiveAccount(InboundReaction inboundReaction, UserAccount userAccount) A new inbound reaction has been received and the user account is not activevoidreactionReceivedNoAccount(InboundReaction inboundReaction) A new inbound reaction has been received, and it is not linked with an account
-
Field Details
-
EVENT_KEY_NO_ACCOUNT_AND_TENANT
- See Also:
-
EVENT_KEY_NO_ACCOUNT
- See Also:
-
EVENT_KEY_INACTIVE_ACCOUNT
- See Also:
-
eventRegistry
protected final org.flowable.eventregistry.api.EventRegistry eventRegistry -
tenantExtractorService
-
defaultTenantProvider
protected final org.flowable.common.engine.impl.DefaultTenantProvider defaultTenantProvider -
inboundReactionEventPayloadExtractor
-
-
Constructor Details
-
EventRegistryInboundReactionAccountService
public EventRegistryInboundReactionAccountService(org.flowable.eventregistry.api.EventRegistry eventRegistry, InboundReactionTenantExtractor tenantExtractorService, org.flowable.common.engine.impl.DefaultTenantProvider defaultTenantProvider, InboundReactionEventPayloadExtractor inboundReactionEventPayloadExtractor)
-
-
Method Details
-
reactionReceivedNoAccount
Description copied from interface:InboundReactionAccountServiceA new inbound reaction has been received, and it is not linked with an account- Specified by:
reactionReceivedNoAccountin interfaceInboundReactionAccountService- Parameters:
inboundReaction- the received inbound reaction
-
reactionReceivedInactiveAccount
public void reactionReceivedInactiveAccount(InboundReaction inboundReaction, UserAccount userAccount) Description copied from interface:InboundReactionAccountServiceA new inbound reaction has been received and the user account is not active- Specified by:
reactionReceivedInactiveAccountin interfaceInboundReactionAccountService- Parameters:
inboundReaction- the received inbound reactionuserAccount- the account of the user that send the reaction (nevernull)
-
extractTenantId
Internal hook method extracting the tenant id out of the given inbound reaction. This default implementation only delegates it to theInboundReactionTenantExtractor.extractTenantId(InboundReaction)method.- Parameters:
inboundReaction- the inbound reaction to extract the tenant id from- Returns:
- the tenant id extracted out of the inbound reaction
-
extractEventPayload
protected Collection<org.flowable.eventregistry.api.runtime.EventPayloadInstance> extractEventPayload(InboundReaction inboundReaction) Internal hook method extracting the data of the inbound reaction and adding them as payload to the event instance.- Parameters:
inboundReaction- the inbound reaction to turn into event payload- Returns:
- the list of event payload instances with the inbound reaction data
-
extractEventPayload
protected Collection<org.flowable.eventregistry.api.runtime.EventPayloadInstance> extractEventPayload(InboundReaction inboundReaction, UserAccount userAccount) Internal hook method extracting the data of the inbound reaction as well as the user account and adding them as payload to the event instance.- Parameters:
inboundReaction- the inbound reaction to turn into event payloaduserAccount- the user account to turn into the event payload- Returns:
- the list of event payload instances with the inbound reaction data and user account
-