public class InboundMessageRoutingServiceImpl extends Object implements InboundMessageRoutingService
Modifier and Type | Field and Description |
---|---|
protected ConversationService |
conversationService |
protected ExternalSystemContentService |
externalSystemContentService |
protected MessageService |
messageService |
Constructor and Description |
---|
InboundMessageRoutingServiceImpl(MessageService messageService,
ConversationService conversationService,
ExternalSystemContentService externalSystemContentService) |
Modifier and Type | Method and Description |
---|---|
protected Map<String,String> |
extractHints(InboundMessage inboundMessage) |
String |
findConversationForUserAccount(com.flowable.core.idm.api.UserAccount userAccount)
Find the conversation id for the given
userAccount . |
protected boolean |
isDuplicateMessage(String externalId) |
void |
routeInboundMessage(InboundMessage inboundMessage,
com.flowable.core.idm.api.UserAccount userAccount)
Route the inbound message to a conversation for the give
userAccount |
protected final MessageService messageService
protected final ConversationService conversationService
protected final ExternalSystemContentService externalSystemContentService
public InboundMessageRoutingServiceImpl(MessageService messageService, ConversationService conversationService, ExternalSystemContentService externalSystemContentService)
public void routeInboundMessage(InboundMessage inboundMessage, com.flowable.core.idm.api.UserAccount userAccount)
InboundMessageRoutingService
userAccount
routeInboundMessage
in interface InboundMessageRoutingService
inboundMessage
- the received message from the external systemuserAccount
- the user account that the message belongs toprotected Map<String,String> extractHints(InboundMessage inboundMessage)
public String findConversationForUserAccount(com.flowable.core.idm.api.UserAccount userAccount)
InboundMessageRoutingService
userAccount
.
The conversation id is the if of the conversation that
can be used to route messages into.findConversationForUserAccount
in interface InboundMessageRoutingService
userAccount
- the user accountnull
protected boolean isDuplicateMessage(String externalId)
Copyright © 2019. All rights reserved.