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