Class WeChatExternalMessageBuilder
java.lang.Object
com.flowable.engage.external.system.common.BaseExternalMessageBuilder
com.flowable.engage.external.system.wechat.WeChatExternalMessageBuilder
- All Implemented Interfaces:
ExternalMessageBuilder
public class WeChatExternalMessageBuilder extends BaseExternalMessageBuilder
- Author:
- Filip Hrisafov
-
Field Summary
Fields Modifier and Type Field Description protected WeChatJmsExternalConversationSystemAdapter
weChatJmsExternalConversationSystemAdapter
Fields inherited from class com.flowable.engage.external.system.common.BaseExternalMessageBuilder
businessAccountId, externalUserId, message, messageId
-
Constructor Summary
Constructors Constructor Description WeChatExternalMessageBuilder(WeChatJmsExternalConversationSystemAdapter weChatJmsExternalConversationSystemAdapter)
-
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
-
weChatJmsExternalConversationSystemAdapter
protected final WeChatJmsExternalConversationSystemAdapter weChatJmsExternalConversationSystemAdapter
-
-
Constructor Details
-
WeChatExternalMessageBuilder
public WeChatExternalMessageBuilder(WeChatJmsExternalConversationSystemAdapter weChatJmsExternalConversationSystemAdapter)
-
-
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
-