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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidafterPersist(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, MessageEntity entity) protected voidbeforePersist(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, MessageEntity entity) protected voidcheckActionInstanceExists(String actionInstanceId, org.flowable.common.engine.impl.interceptor.CommandContext commandContext) protected voidcheckReplyToMessageIdExists(String replyToMessageId, org.flowable.common.engine.impl.interceptor.CommandContext commandContext) protected ActionInstancecreateActionInstance(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, ActionDefinition actionDefinition, MessageBuilderImpl messageBuilder, String tenantId) protected MessageEntitycreateEntity(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) protected MessageEntitycreateMessage(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, MessageBuilderImpl messageBuilder, Conversation conversation) execute(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) protected ActionDefinitionfindActionDefinition(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, String actionDefinitionId, String actionDefinitionKey, String tenantId) protected MessageEntityManagergetMessageEntityManager(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) protected StringgetOrRenderMainContent(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, Conversation conversation, MessageBuilderImpl messageBuilder) protected ConversationEntityretrieveConversation(String conversationId, org.flowable.common.engine.impl.interceptor.CommandContext commandContext) protected void
-
Field Details
-
messageBuilder
-
-
Constructor Details
-
BaseSendMessageCmd
-
-
Method Details
-
execute
public MessageEntity execute(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) - Specified by:
executein interfaceorg.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
-