Class ConfiguredInboundMessageTenantExtractor
java.lang.Object
com.flowable.engage.external.system.service.ConfiguredInboundMessageTenantExtractor
- All Implemented Interfaces:
InboundMessageTenantExtractor
public class ConfiguredInboundMessageTenantExtractor
extends Object
implements InboundMessageTenantExtractor
This default implementation simply returns a configured, fixed tenant id regardless of the content of the inbound message. 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.
- Author:
- Micha Kiener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
The tenant id to be used to send the no account system event to if no user account yet mapped on a new inbound message. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionextractTenantId
(InboundMessage inboundMessage) Extracts the tenant id out of the provided new inbound message which is not yet mapped to a user account object and hence no direct tenant is yet available.void
setNoAccountTenantId
(String noAccountTenantId)
-
Field Details
-
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 message.
-
-
Constructor Details
-
ConfiguredInboundMessageTenantExtractor
-
-
Method Details
-
extractTenantId
Description copied from interface:InboundMessageTenantExtractor
Extracts the tenant id out of the provided new inbound message which is not yet mapped to a user account object and hence no direct tenant is yet available. Most likely, the tenant is somehow encoded within the message content or indirectly using an activation code pointing to a user object or case instance running the onboarding process.- Specified by:
extractTenantId
in interfaceInboundMessageTenantExtractor
- Parameters:
inboundMessage
- the inbound message to extract the tenant id from (most likely encoded within the message content or a default one)- Returns:
- the tenant id extracted out of the inbound message
-
getNoAccountTenantId
-
setNoAccountTenantId
-