Class WhatsAppExternalMessageBuilder
java.lang.Object
com.flowable.engage.external.system.common.BaseExternalMessageBuilder
com.flowable.engage.external.system.whatsapp.WhatsAppExternalMessageBuilder
- All Implemented Interfaces:
ExternalMessageBuilder
public class WhatsAppExternalMessageBuilder extends BaseExternalMessageBuilder
- Author:
- Filip Hrisafov
-
Field Summary
Fields Modifier and Type Field Description protected WhatsAppJmsExternalConversationSystemAdapter
whatsAppJmsExternalConversationSystemAdapter
Fields inherited from class com.flowable.engage.external.system.common.BaseExternalMessageBuilder
businessAccountId, externalUserId, message, messageId
-
Constructor Summary
Constructors Constructor Description WhatsAppExternalMessageBuilder(WhatsAppJmsExternalConversationSystemAdapter whatsAppJmsExternalConversationSystemAdapter)
-
Method Summary
Modifier and Type Method Description protected void
sendOutboundMessage(OutboundMessageDto outboundMessage)
protected java.lang.String
validateAndCreateMessageContent(java.lang.String type)
This method is invoked when the content for the outbound message is create.Methods inherited from class com.flowable.engage.external.system.common.BaseExternalMessageBuilder
businessAccountId, checkBeforeSend, createOutboundMessage, externalUserId, message, messageId, sendMediaMessage, sendMessage
-
Field Details
-
whatsAppJmsExternalConversationSystemAdapter
protected final WhatsAppJmsExternalConversationSystemAdapter whatsAppJmsExternalConversationSystemAdapter
-
-
Constructor Details
-
WhatsAppExternalMessageBuilder
public WhatsAppExternalMessageBuilder(WhatsAppJmsExternalConversationSystemAdapter whatsAppJmsExternalConversationSystemAdapter)
-
-
Method Details
-
sendOutboundMessage
- Specified by:
sendOutboundMessage
in classBaseExternalMessageBuilder
-
validateAndCreateMessageContent
protected java.lang.String validateAndCreateMessageContent(java.lang.String type)Description copied from class:BaseExternalMessageBuilder
This method is invoked when the content for the outbound message is create. It can be used to perform validations and to modify the content if it is required. By default this methods appends the display name to the message.- Overrides:
validateAndCreateMessageContent
in classBaseExternalMessageBuilder
- Parameters:
type
- the type of the message for which the content is being created- Returns:
- the content that should be used to send the message
-