Class BaseSendMessageCmd

java.lang.Object
com.flowable.engage.engine.impl.cmd.BaseSendMessageCmd
All Implemented Interfaces:
org.flowable.common.engine.impl.interceptor.Command<MessageEntity>
Direct Known Subclasses:
SendActionMessageToConversationCmd, SendMediaMessageToConversationCmd, SendMessageToConversationCmd

public abstract class BaseSendMessageCmd extends Object implements org.flowable.common.engine.impl.interceptor.Command<MessageEntity>
Author:
Filip Hrisafov, Joram Barrez
  • Field Details

  • Constructor Details

  • Method Details

    • execute

      public MessageEntity execute(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
      Specified by:
      execute in interface org.flowable.common.engine.impl.interceptor.Command<MessageEntity>
    • beforePersist

      protected void beforePersist(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, MessageEntity entity)
    • afterPersist

      protected void afterPersist(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, MessageEntity entity)
    • retrieveConversation

      protected ConversationEntity retrieveConversation(String conversationId, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
    • createMessage

      protected MessageEntity createMessage(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, MessageBuilderImpl messageBuilder, Conversation conversation)
    • getOrRenderMainContent

      protected String getOrRenderMainContent(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, Conversation conversation, MessageBuilderImpl messageBuilder)
    • checkActionInstanceExists

      protected void checkActionInstanceExists(String actionInstanceId, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
    • checkReplyToMessageIdExists

      protected void checkReplyToMessageIdExists(String replyToMessageId, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
    • findActionDefinition

      protected ActionDefinition findActionDefinition(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, String actionDefinitionId, String actionDefinitionKey, String tenantId)
    • createActionInstance

      protected ActionInstance createActionInstance(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, ActionDefinition actionDefinition, MessageBuilderImpl messageBuilder, String tenantId)
    • validateCommand

      protected void validateCommand()
    • getMessageEntityManager

      protected MessageEntityManager getMessageEntityManager(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
    • createEntity

      protected MessageEntity createEntity(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
    • getMessageBuilder

      public MessageBuilderImpl getMessageBuilder()