Class ConfiguredInboundReactionTenantExtractor

java.lang.Object
com.flowable.engage.external.system.service.ConfiguredInboundReactionTenantExtractor
All Implemented Interfaces:
InboundReactionTenantExtractor

public class ConfiguredInboundReactionTenantExtractor extends Object implements InboundReactionTenantExtractor
This default implementation simply returns a configured, fixed tenant id regardless of the content of the inbound reaction. This might be useful for a single tenant environment as well as with a multi tenant environment where the initial process starting the onboarding case would run as a process in a default, generic tenant.
  • Field Details

    • noAccountTenantId

      protected String noAccountTenantId
      The tenant id to be used to send the no account system event to if no user account yet mapped on a new inbound reaction.
  • Constructor Details

    • ConfiguredInboundReactionTenantExtractor

      public ConfiguredInboundReactionTenantExtractor(String noAccountTenantId)
  • Method Details

    • extractTenantId

      public String extractTenantId(InboundReaction inboundReaction)
      Description copied from interface: InboundReactionTenantExtractor
      Extracts the tenant id out of the provided new inbound reaction which is not yet mapped to a user account object and hence no direct tenant is yet available.
      Specified by:
      extractTenantId in interface InboundReactionTenantExtractor
      Parameters:
      inboundReaction - the inbound reaction to extract the tenant id from
      Returns:
      the tenant id extracted out of the inbound reaction