public class WeChatTemplateMessageBot extends Object implements com.flowable.action.api.bot.BotService
| Modifier and Type | Field and Description | 
|---|---|
| protected ConversationPermissionService | conversationPermissionService | 
| protected ConversationService | conversationService | 
| protected org.springframework.jms.core.JmsMessageOperations | jmsMessagingOperations | 
| protected MessageService | messageService | 
| protected com.flowable.core.idm.api.PlatformIdentityService | platformIdentityService | 
| protected com.flowable.template.api.TemplateService | templateService | 
| protected com.flowable.core.idm.api.UserAccountService | userAccountService | 
| static String | WECHAT_TEMPLATE_ACTION_DEFINITION_KEY | 
| static String | WECHAT_TEMPLATE_KEY | 
| protected WeChatProperties | weChatProperties | 
| Constructor and Description | 
|---|
| WeChatTemplateMessageBot(com.flowable.template.api.TemplateService templateService,
                        ConversationService conversationService,
                        ConversationPermissionService conversationPermissionService,
                        MessageService messageService,
                        com.flowable.core.idm.api.PlatformIdentityService platformIdentityService,
                        org.springframework.jms.core.JmsMessageOperations jmsMessageOperations,
                        WeChatProperties weChatProperties,
                        com.flowable.core.idm.api.UserAccountService userAccountService) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | checkTemplateParametersSize(Map<String,String> templateParameters)Check if the total size of all the template parameters do not exceed the maximum allowed size which is given by WeChat. | 
| protected Map<String,String> | extractTemplateParameters(List<com.flowable.template.api.repository.TemplateParameter> templateParameters,
                         Map<String,Object> payload)Extract all the template parameters from the payload. | 
| String | getDescription() | 
| String | getKey() | 
| String | getName() | 
| com.flowable.action.api.bot.BotActionResult | invokeBot(com.flowable.action.api.history.HistoricActionInstance actionInstance,
         com.flowable.action.api.repository.ActionDefinition actionDefinition,
         Map<String,Object> payload) | 
public static final String WECHAT_TEMPLATE_KEY
public static final String WECHAT_TEMPLATE_ACTION_DEFINITION_KEY
protected final com.flowable.template.api.TemplateService templateService
protected final ConversationService conversationService
protected final ConversationPermissionService conversationPermissionService
protected final MessageService messageService
protected final com.flowable.core.idm.api.PlatformIdentityService platformIdentityService
protected final org.springframework.jms.core.JmsMessageOperations jmsMessagingOperations
protected final WeChatProperties weChatProperties
protected final com.flowable.core.idm.api.UserAccountService userAccountService
public WeChatTemplateMessageBot(com.flowable.template.api.TemplateService templateService,
                                ConversationService conversationService,
                                ConversationPermissionService conversationPermissionService,
                                MessageService messageService,
                                com.flowable.core.idm.api.PlatformIdentityService platformIdentityService,
                                org.springframework.jms.core.JmsMessageOperations jmsMessageOperations,
                                WeChatProperties weChatProperties,
                                com.flowable.core.idm.api.UserAccountService userAccountService)
public String getKey()
getKey in interface com.flowable.action.api.bot.BotServicepublic String getName()
getName in interface com.flowable.action.api.bot.BotServicepublic String getDescription()
getDescription in interface com.flowable.action.api.bot.BotServicepublic com.flowable.action.api.bot.BotActionResult invokeBot(com.flowable.action.api.history.HistoricActionInstance actionInstance,
                                                             com.flowable.action.api.repository.ActionDefinition actionDefinition,
                                                             Map<String,Object> payload)
invokeBot in interface com.flowable.action.api.bot.BotServiceprotected Map<String,String> extractTemplateParameters(List<com.flowable.template.api.repository.TemplateParameter> templateParameters, Map<String,Object> payload)
templateParameters - payload - Copyright © 2019. All rights reserved.