Class AbstractTicketCmd<T>
java.lang.Object
com.flowable.engage.engine.impl.desk.cmd.AbstractDeskCmd<T>
com.flowable.engage.engine.impl.desk.cmd.AbstractTicketCmd<T>
- All Implemented Interfaces:
org.flowable.common.engine.impl.interceptor.Command<T>
- Direct Known Subclasses:
HandleUnassignedTicketMessageCmd
,InitializeTicketConversationCmd
,SwitchToDeskTeamCmd
,SwitchToDeskTeamMemberCmd
public abstract class AbstractTicketCmd<T> extends AbstractDeskCmd<T>
An abstract base class for ticket based commands.
- Author:
- Micha Kiener
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
deskConversationId
protected java.lang.String
digitalAssistantUserId
protected boolean
isNewTicket
protected java.lang.String
ticketConversationId
Fields inherited from class com.flowable.engage.engine.impl.desk.cmd.AbstractDeskCmd
SPLITTING_CHARS
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractTicketCmd(java.lang.String deskConversationId, java.lang.String ticketConversationId, java.lang.String digitalAssistantUserId, boolean isNewTicket)
-
Method Summary
Modifier and Type Method Description protected java.util.Map<java.lang.String,java.lang.Object>
createAndInitializeTicketPayload(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
Conversation
getDeskConversation(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
java.lang.String
getDeskConversationId()
java.lang.String
getDigitalAssistantUserId()
Conversation
getTicketConversation(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
java.lang.String
getTicketConversationId()
protected java.lang.String
getUserDisplayName(java.lang.String userId, java.lang.String tenantId, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
boolean
isNewTicket()
protected void
removeStickyMessages(java.lang.String conversationId, java.lang.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.Methods inherited from class com.flowable.engage.engine.impl.desk.cmd.AbstractDeskCmd
extractWordsWithMaxSize, getConversationParticipants, getConversationService, getDeskService, getIdentityService, getMessageService, isSplittingChar
-
Field Details
-
deskConversationId
protected final java.lang.String deskConversationId -
ticketConversationId
protected final java.lang.String ticketConversationId -
digitalAssistantUserId
protected final java.lang.String digitalAssistantUserId -
isNewTicket
protected final boolean isNewTicket
-
-
Constructor Details
-
AbstractTicketCmd
protected AbstractTicketCmd(java.lang.String deskConversationId, java.lang.String ticketConversationId, java.lang.String digitalAssistantUserId, boolean isNewTicket)
-
-
Method Details
-
createAndInitializeTicketPayload
protected java.util.Map<java.lang.String,java.lang.Object> createAndInitializeTicketPayload(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) -
removeStickyMessages
protected void removeStickyMessages(java.lang.String conversationId, java.lang.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.- Parameters:
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 function
-
getUserDisplayName
protected java.lang.String getUserDisplayName(java.lang.String userId, java.lang.String tenantId, org.flowable.common.engine.impl.interceptor.CommandContext commandContext) -
getDeskConversationId
public java.lang.String getDeskConversationId() -
getTicketConversationId
public java.lang.String getTicketConversationId() -
getDigitalAssistantUserId
public java.lang.String getDigitalAssistantUserId() -
getDeskConversation
public Conversation getDeskConversation(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) -
getTicketConversation
public Conversation getTicketConversation(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) -
isNewTicket
public boolean isNewTicket()
-