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
Fields Modifier and Type Field Description 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 message.
-
Constructor Summary
Constructors Constructor Description ConfiguredInboundMessageTenantExtractor(String noAccountTenantId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.String
getNoAccountTenantId()
void
setNoAccountTenantId(String noAccountTenantId)
-
-
-
Field Detail
-
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 message.
-
-
Constructor Detail
-
ConfiguredInboundMessageTenantExtractor
public ConfiguredInboundMessageTenantExtractor(String noAccountTenantId)
-
-
Method Detail
-
extractTenantId
public String extractTenantId(InboundMessage inboundMessage)
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 String getNoAccountTenantId()
-
setNoAccountTenantId
public void setNoAccountTenantId(String noAccountTenantId)
-
-