Class ConfiguredInboundMessageTenantExtractor
java.lang.Object
com.flowable.engage.external.system.service.ConfiguredInboundMessageTenantExtractor
- All Implemented Interfaces:
InboundMessageTenantExtractor
public class ConfiguredInboundMessageTenantExtractor extends java.lang.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
Fields Modifier and Type Field Description protected java.lang.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 message. -
Constructor Summary
Constructors Constructor Description ConfiguredInboundMessageTenantExtractor(java.lang.String noAccountTenantId)
-
Method Summary
Modifier and Type Method Description java.lang.String
extractTenantId(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.java.lang.String
getNoAccountTenantId()
void
setNoAccountTenantId(java.lang.String noAccountTenantId)
-
Field Details
-
noAccountTenantId
protected java.lang.String noAccountTenantIdThe 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
public ConfiguredInboundMessageTenantExtractor(java.lang.String noAccountTenantId)
-
-
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
public java.lang.String getNoAccountTenantId() -
setNoAccountTenantId
public void setNoAccountTenantId(java.lang.String noAccountTenantId)
-