Class InboundMessageRoutingServiceImpl
java.lang.Object
com.flowable.engage.external.system.service.InboundMessageRoutingServiceImpl
- All Implemented Interfaces:
InboundMessageRoutingService
public class InboundMessageRoutingServiceImpl
extends Object
implements InboundMessageRoutingService
- Author:
- Filip Hrisafov
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected final ConversationServicestatic final Stringprotected final EventRegistryprotected final ExternalSystemContentServiceprotected final InboundMessageEventPayloadExtractorprotected final MessageServicestatic final String -
Constructor Summary
ConstructorsConstructorDescriptionInboundMessageRoutingServiceImpl(MessageService messageService, ConversationService conversationService, ExternalSystemContentService externalSystemContentService, EventRegistry eventRegistry, InboundMessageEventPayloadExtractor inboundMessageEventPayloadExtractor) -
Method Summary
Modifier and TypeMethodDescriptionprotected Collection<EventPayloadInstance>extractEventPayload(InboundMessage inboundMessage, UserAccount userAccount, Message message) extractHints(InboundMessage inboundMessage) findConversationForUserAccount(UserAccount userAccount) Find the conversation id for the givenuserAccount.protected MessagegetReplyToMessage(String externalSystemId, String replyToExternalMessageId) booleanprotected booleanisDuplicateMessage(String externalId) voidrouteInboundMessage(InboundMessage inboundMessage, UserAccount userAccount) Route the inbound message to a conversation for the giveuserAccountvoidsetAlwaysSendSystemEvent(boolean alwaysSendSystemEvent)
-
Field Details
-
EVENT_KEY_EXTERNAL_MESSAGE_RECEIVED
- See Also:
-
SYSTEM_TYPE
- See Also:
-
messageService
-
conversationService
-
externalSystemContentService
-
eventRegistry
-
inboundMessageEventPayloadExtractor
-
alwaysSendSystemEvent
protected boolean alwaysSendSystemEvent
-
-
Constructor Details
-
InboundMessageRoutingServiceImpl
public InboundMessageRoutingServiceImpl(MessageService messageService, ConversationService conversationService, ExternalSystemContentService externalSystemContentService, EventRegistry eventRegistry, InboundMessageEventPayloadExtractor inboundMessageEventPayloadExtractor)
-
-
Method Details
-
routeInboundMessage
Description copied from interface:InboundMessageRoutingServiceRoute the inbound message to a conversation for the giveuserAccount- Specified by:
routeInboundMessagein interfaceInboundMessageRoutingService- Parameters:
inboundMessage- the received message from the external systemuserAccount- the user account that the message belongs to
-
extractEventPayload
protected Collection<EventPayloadInstance> extractEventPayload(InboundMessage inboundMessage, UserAccount userAccount, Message message) -
extractHints
-
findConversationForUserAccount
Description copied from interface:InboundMessageRoutingServiceFind the conversation id for the givenuserAccount. The conversation id is the if of the conversation that can be used to route messages into.- Specified by:
findConversationForUserAccountin interfaceInboundMessageRoutingService- Parameters:
userAccount- the user account- Returns:
- the id of the conversation, never
null
-
isDuplicateMessage
-
getReplyToMessage
-
isAlwaysSendSystemEvent
public boolean isAlwaysSendSystemEvent() -
setAlwaysSendSystemEvent
public void setAlwaysSendSystemEvent(boolean alwaysSendSystemEvent)
-