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 voidafterPersist(CommandContext commandContext, MessageEntity entity) protected voidbeforePersist(CommandContext commandContext, MessageEntity entity) protected voidcheckActionInstanceExists(String actionInstanceId, CommandContext commandContext) protected voidcheckReplyToMessageIdExists(String replyToMessageId, CommandContext commandContext) protected ActionInstancecreateActionInstance(CommandContext commandContext, ActionDefinition actionDefinition, MessageBuilderImpl messageBuilder, String tenantId) protected MessageEntitycreateEntity(CommandContext commandContext) protected MessageEntitycreateMessage(CommandContext commandContext, MessageBuilderImpl messageBuilder, Conversation conversation) execute(CommandContext commandContext) protected ActionDefinitionfindActionDefinition(CommandContext commandContext, String actionDefinitionId, String actionDefinitionKey, String tenantId) protected MessageEntityManagergetMessageEntityManager(CommandContext commandContext) protected StringgetOrRenderMainContent(CommandContext commandContext, Conversation conversation, MessageBuilderImpl messageBuilder) protected ConversationEntityretrieveConversation(String conversationId, CommandContext commandContext) protected void
-
Field Details
-
messageBuilder
-
-
Constructor Details
-
BaseSendMessageCmd
-
-
Method Details
-
execute
- Specified by:
executein 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
-