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 java.lang.Object
implements org.flowable.common.engine.impl.interceptor.Command<MessageEntity>
Author:
Filip Hrisafov, Joram Barrez
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected MessageBuilderImpl messageBuilder  
  • Constructor Summary

    Constructors 
    Modifier Constructor Description
    protected BaseSendMessageCmd​(MessageBuilderImpl messageBuilder)  
  • Method Summary

    Modifier and Type Method Description
    protected void afterPersist​(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, MessageEntity entity)  
    protected void beforePersist​(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, MessageEntity entity)  
    protected void checkActionInstanceExists​(java.lang.String actionInstanceId, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)  
    protected void checkReplyToMessageIdExists​(java.lang.String replyToMessageId, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)  
    protected com.flowable.action.api.runtime.ActionInstance createActionInstance​(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, com.flowable.action.api.repository.ActionDefinition actionDefinition, MessageBuilderImpl messageBuilder, java.lang.String tenantId)  
    protected MessageEntity createEntity​(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)  
    protected MessageEntity createMessage​(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, MessageBuilderImpl messageBuilder, Conversation conversation)  
    MessageEntity execute​(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)  
    protected com.flowable.action.api.repository.ActionDefinition findActionDefinition​(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, java.lang.String actionDefinitionId, java.lang.String actionDefinitionKey, java.lang.String tenantId)  
    MessageBuilderImpl getMessageBuilder()  
    protected MessageEntityManager getMessageEntityManager​(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)  
    protected java.lang.String getOrRenderMainContent​(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, Conversation conversation, MessageBuilderImpl messageBuilder)  
    protected ConversationEntity retrieveConversation​(java.lang.String conversationId, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)  
    protected void validateCommand()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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​(java.lang.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 java.lang.String getOrRenderMainContent​(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, Conversation conversation, MessageBuilderImpl messageBuilder)
    • checkActionInstanceExists

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

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

      protected com.flowable.action.api.repository.ActionDefinition findActionDefinition​(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, java.lang.String actionDefinitionId, java.lang.String actionDefinitionKey, java.lang.String tenantId)
    • createActionInstance

      protected com.flowable.action.api.runtime.ActionInstance createActionInstance​(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, com.flowable.action.api.repository.ActionDefinition actionDefinition, MessageBuilderImpl messageBuilder, java.lang.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()