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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
sendOutboundMessage(OutboundMessageDto outboundMessage)
protected String
validateAndCreateMessageContent(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, newOutboundMessageDto, sendMediaMessage, sendMessage
-
-
-
-
Field Detail
-
whatsAppJmsExternalConversationSystemAdapter
protected final WhatsAppJmsExternalConversationSystemAdapter whatsAppJmsExternalConversationSystemAdapter
-
-
Constructor Detail
-
WhatsAppExternalMessageBuilder
public WhatsAppExternalMessageBuilder(WhatsAppJmsExternalConversationSystemAdapter whatsAppJmsExternalConversationSystemAdapter)
-
-
Method Detail
-
sendOutboundMessage
protected void sendOutboundMessage(OutboundMessageDto outboundMessage)
- Specified by:
sendOutboundMessage
in classBaseExternalMessageBuilder
-
validateAndCreateMessageContent
protected String validateAndCreateMessageContent(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
-
-