Class BaseSendMessageCmd
- java.lang.Object
-
- com.flowable.engage.engine.impl.cmd.BaseSendMessageCmd
-
- All Implemented Interfaces:
Command<MessageEntity>
- Direct Known Subclasses:
SendActionMessageToConversationCmd
,SendMediaMessageToConversationCmd
,SendMessageToConversationCmd
public abstract class BaseSendMessageCmd extends Object implements 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
-
-
-
Field Detail
-
messageBuilder
protected MessageBuilderImpl messageBuilder
-
-
Constructor Detail
-
BaseSendMessageCmd
protected BaseSendMessageCmd(MessageBuilderImpl messageBuilder)
-
-
Method Detail
-
execute
public MessageEntity execute(CommandContext commandContext)
- Specified by:
execute
in interfaceCommand<MessageEntity>
-
beforePersist
protected void beforePersist(CommandContext commandContext, MessageEntity entity)
-
afterPersist
protected void afterPersist(CommandContext commandContext, MessageEntity entity)
-
retrieveConversation
protected ConversationEntity retrieveConversation(String conversationId, CommandContext commandContext)
-
createMessage
protected MessageEntity createMessage(CommandContext commandContext, MessageBuilderImpl messageBuilder, Conversation conversation)
-
getOrRenderMainContent
protected String getOrRenderMainContent(CommandContext commandContext, Conversation conversation, MessageBuilderImpl messageBuilder)
-
checkActionInstanceExists
protected void checkActionInstanceExists(String actionInstanceId, CommandContext commandContext)
-
checkReplyToMessageIdExists
protected void checkReplyToMessageIdExists(String replyToMessageId, CommandContext commandContext)
-
findActionDefinition
protected ActionDefinition findActionDefinition(CommandContext commandContext, String actionDefinitionId, String actionDefinitionKey, String tenantId)
-
createActionInstance
protected ActionInstance createActionInstance(CommandContext commandContext, ActionDefinition actionDefinition, MessageBuilderImpl messageBuilder, String tenantId)
-
validateCommand
protected void validateCommand()
-
getMessageEntityManager
protected MessageEntityManager getMessageEntityManager(CommandContext commandContext)
-
createEntity
protected MessageEntity createEntity(CommandContext commandContext)
-
getMessageBuilder
public MessageBuilderImpl getMessageBuilder()
-
-