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
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
-
weChatJmsExternalConversationSystemAdapter
protected final WeChatJmsExternalConversationSystemAdapter weChatJmsExternalConversationSystemAdapter
-
-
Constructor Detail
-
WeChatExternalMessageBuilder
public WeChatExternalMessageBuilder(WeChatJmsExternalConversationSystemAdapter weChatJmsExternalConversationSystemAdapter)
-
-
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
-
-