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 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
(String actionInstanceId, org.flowable.common.engine.impl.interceptor.CommandContext commandContext) protected void
checkReplyToMessageIdExists
(String replyToMessageId, org.flowable.common.engine.impl.interceptor.CommandContext commandContext) protected ActionInstance
createActionInstance
(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, ActionDefinition actionDefinition, MessageBuilderImpl messageBuilder, 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) execute
(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) protected ActionDefinition
findActionDefinition
(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, String actionDefinitionId, String actionDefinitionKey, String tenantId) protected MessageEntityManager
getMessageEntityManager
(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) protected String
getOrRenderMainContent
(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, Conversation conversation, MessageBuilderImpl messageBuilder) protected ConversationEntity
retrieveConversation
(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:
execute
in 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
-