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 Details

    • EVENT_KEY_NO_ACCOUNT_AND_TENANT

      public static final String EVENT_KEY_NO_ACCOUNT_AND_TENANT
      See Also:
    • EVENT_KEY_NO_ACCOUNT

      public static final String EVENT_KEY_NO_ACCOUNT
      See Also:
    • EVENT_KEY_INACTIVE_ACCOUNT

      public static final String EVENT_KEY_INACTIVE_ACCOUNT
      See Also:
    • eventRegistry

      protected final org.flowable.eventregistry.api.EventRegistry eventRegistry
    • tenantExtractorService

      protected final InboundReactionTenantExtractor tenantExtractorService
    • defaultTenantProvider

      protected final org.flowable.common.engine.impl.DefaultTenantProvider defaultTenantProvider
    • inboundReactionEventPayloadExtractor

      protected final InboundReactionEventPayloadExtractor 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

      public void reactionReceivedNoAccount(InboundReaction inboundReaction)
      Description copied from interface: InboundReactionAccountService
      A new inbound reaction has been received, and it is not linked with an account
      Specified by:
      reactionReceivedNoAccount in interface InboundReactionAccountService
      Parameters:
      inboundReaction - the received inbound reaction
    • reactionReceivedInactiveAccount

      public void reactionReceivedInactiveAccount(InboundReaction inboundReaction, UserAccount userAccount)
      Description copied from interface: InboundReactionAccountService
      A new inbound reaction has been received and the user account is not active
      Specified by:
      reactionReceivedInactiveAccount in interface InboundReactionAccountService
      Parameters:
      inboundReaction - the received inbound reaction
      userAccount - the account of the user that send the reaction (never null)
    • extractTenantId

      protected String extractTenantId(InboundReaction inboundReaction)
      Internal hook method extracting the tenant id out of the given inbound reaction. This default implementation only delegates it to the InboundReactionTenantExtractor.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 payload
      userAccount - the user account to turn into the event payload
      Returns:
      the list of event payload instances with the inbound reaction data and user account