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
An abstract base class for ticket based commands.
- Author:
- Micha Kiener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final String
protected final String
protected final boolean
protected final String
Fields inherited from class com.flowable.engage.engine.impl.desk.cmd.AbstractDeskCmd
SPLITTING_CHARS
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractTicketCmd
(String deskConversationId, String ticketConversationId, String digitalAssistantUserId, boolean isNewTicket) -
Method Summary
Modifier and TypeMethodDescriptioncreateAndInitializeTicketPayload
(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) getDeskConversation
(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) getTicketConversation
(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) protected String
getUserDisplayName
(String userId, String tenantId, org.flowable.common.engine.impl.interceptor.CommandContext commandContext) boolean
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.Methods inherited from class com.flowable.engage.engine.impl.desk.cmd.AbstractDeskCmd
extractWordsWithMaxSize, getConversationParticipants, getConversationService, getDeskService, getIdentityService, getMessageService, isSplittingChar
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.flowable.common.engine.impl.interceptor.Command
execute
-
Field Details
-
deskConversationId
-
ticketConversationId
-
digitalAssistantUserId
-
isNewTicket
protected final boolean isNewTicket
-
-
Constructor Details
-
AbstractTicketCmd
-
-
Method Details
-
createAndInitializeTicketPayload
-
removeStickyMessages
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.- 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
-
getDeskConversationId
-
getTicketConversationId
-
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()
-