public abstract class AbstractTicketCmd<T> extends AbstractDeskCmd<T>
| Modifier and Type | Field and Description |
|---|---|
protected String |
deskConversationId |
protected String |
digitalAssistantUserId |
protected boolean |
isNewTicket |
protected String |
ticketConversationId |
SPLITTING_CHARS| Modifier | Constructor and Description |
|---|---|
protected |
AbstractTicketCmd(String deskConversationId,
String ticketConversationId,
String digitalAssistantUserId,
boolean isNewTicket) |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Object> |
createAndInitializeTicketPayload(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) |
Conversation |
getDeskConversation(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) |
String |
getDeskConversationId() |
com.flowable.core.idm.api.PlatformUser |
getDigitalAssistantUser(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) |
String |
getDigitalAssistantUserId() |
Conversation |
getTicketConversation(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) |
String |
getTicketConversationId() |
boolean |
isNewTicket() |
protected void |
removeStickyMessages(String conversationId,
String userId,
org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
Removes sticky messages of the given conversation, optionally only, if private and recipient is the given user.
|
extractWordsWithMaxSize, getConversationParticipants, getConversationService, getDeskService, getIdentityService, getMessageService, isSplittingCharprotected final String deskConversationId
protected final String ticketConversationId
protected final String digitalAssistantUserId
protected final boolean isNewTicket
protected Map<String,Object> createAndInitializeTicketPayload(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
protected void removeStickyMessages(String conversationId, String userId, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
conversationId - the id of the conversation to remove sticky messagesuserId - the optional if of the recipient to remove its private messagescommandContext - the command context under which to run this functionpublic String getDeskConversationId()
public String getTicketConversationId()
public String getDigitalAssistantUserId()
public Conversation getDeskConversation(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
public Conversation getTicketConversation(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
public com.flowable.core.idm.api.PlatformUser getDigitalAssistantUser(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
public boolean isNewTicket()
Copyright © 2019. All rights reserved.