Class WeChatTemplateMessageBuilderImpl
java.lang.Object
com.flowable.engage.external.system.wechat.WeChatTemplateMessageBuilderImpl
- All Implemented Interfaces:
WeChatTemplateMessageBuilder
public class WeChatTemplateMessageBuilderImpl
extends Object
implements WeChatTemplateMessageBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final WeChatOutboundTemplateMessageDtoprotected final WeChatJmsExternalConversationSystemAdapter -
Constructor Summary
ConstructorsConstructorDescriptionWeChatTemplateMessageBuilderImpl(WeChatJmsExternalConversationSystemAdapter weChatJmsExternalConversationSystemAdapter) -
Method Summary
Modifier and TypeMethodDescriptionaddTemplateTextParameter(String key, String value) Add text parameter to the body.addTemplateTextParameters(Map<String, String> parameters) Add text parameters to the body.businessAccountId(String businessAccountId) The id of the business account that should be used when sending out the message.externalUserId(String externalUserId) The id of the recipient of the message.The id of the reference message within the Engage system.voidsend()Perform the send of the template message.templateId(String templateId) The id of the template that is registered on the WeChat side
-
Field Details
-
weChatJmsExternalConversationSystemAdapter
protected final WeChatJmsExternalConversationSystemAdapter weChatJmsExternalConversationSystemAdapter -
templateMessage
-
-
Constructor Details
-
WeChatTemplateMessageBuilderImpl
public WeChatTemplateMessageBuilderImpl(WeChatJmsExternalConversationSystemAdapter weChatJmsExternalConversationSystemAdapter)
-
-
Method Details
-
externalUserId
Description copied from interface:WeChatTemplateMessageBuilderThe id of the recipient of the message. This is the id of the user within the WeChat system.- Specified by:
externalUserIdin interfaceWeChatTemplateMessageBuilder
-
addTemplateTextParameters
Description copied from interface:WeChatTemplateMessageBuilderAdd text parameters to the body.- Specified by:
addTemplateTextParametersin interfaceWeChatTemplateMessageBuilder
-
addTemplateTextParameter
Description copied from interface:WeChatTemplateMessageBuilderAdd text parameter to the body.- Specified by:
addTemplateTextParameterin interfaceWeChatTemplateMessageBuilder- Parameters:
key- the key of the placeholder which is used within the template messagevalue- the value of the placeholder
-
templateId
Description copied from interface:WeChatTemplateMessageBuilderThe id of the template that is registered on the WeChat side- Specified by:
templateIdin interfaceWeChatTemplateMessageBuilder
-
messageId
Description copied from interface:WeChatTemplateMessageBuilderThe id of the reference message within the Engage system. It is used in order to correlate the WeChat message and the Engage message.- Specified by:
messageIdin interfaceWeChatTemplateMessageBuilder
-
businessAccountId
Description copied from interface:WeChatTemplateMessageBuilderThe id of the business account that should be used when sending out the message.- Specified by:
businessAccountIdin interfaceWeChatTemplateMessageBuilder
-
send
public void send()Description copied from interface:WeChatTemplateMessageBuilderPerform the send of the template message.- Specified by:
sendin interfaceWeChatTemplateMessageBuilder
-