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 Details

  • 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 messages
      userId - the optional if of the recipient to remove its private messages
      commandContext - 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()