Class WeChatInboundMessageEventHandlerImpl
java.lang.Object
com.flowable.engage.external.system.wechat.WeChatInboundMessageEventHandlerImpl
- All Implemented Interfaces:
WeChatInboundMessageEventHandler
public class WeChatInboundMessageEventHandlerImpl extends java.lang.Object implements WeChatInboundMessageEventHandler
- Author:
- Filip Hrisafov
-
Field Summary
Fields Modifier and Type Field Description protected ExternalConversationService
externalConversationService
protected InboundMessageHandler
inboundMessageHandler
protected org.slf4j.Logger
logger
protected static java.lang.String
SUBSCRIBE
protected static java.lang.String
TEMPLATE_SEND_JOB_FINISH
protected com.flowable.template.api.TemplateService
templateService
-
Constructor Summary
Constructors Constructor Description WeChatInboundMessageEventHandlerImpl(InboundMessageHandler inboundMessageHandler, ExternalConversationService externalConversationService, com.flowable.template.api.TemplateService templateService)
-
Method Summary
Modifier and Type Method Description void
handleEvent(InboundMessageDto inboundMessage)
Handles an event message received from WeChatprotected void
handleSubscribeEvent(InboundMessageDto inboundMessage)
protected void
handleTemplateSendJobFinishEvent(InboundMessageDto inboundMessage)
protected void
handleUnsupportedEvent(InboundMessageDto inboundMessage)
-
Field Details
-
logger
protected final org.slf4j.Logger logger -
SUBSCRIBE
protected static final java.lang.String SUBSCRIBE- See Also:
- Constant Field Values
-
TEMPLATE_SEND_JOB_FINISH
protected static final java.lang.String TEMPLATE_SEND_JOB_FINISH- See Also:
- Constant Field Values
-
inboundMessageHandler
-
externalConversationService
-
templateService
protected final com.flowable.template.api.TemplateService templateService
-
-
Constructor Details
-
WeChatInboundMessageEventHandlerImpl
public WeChatInboundMessageEventHandlerImpl(InboundMessageHandler inboundMessageHandler, ExternalConversationService externalConversationService, com.flowable.template.api.TemplateService templateService)
-
-
Method Details
-
handleEvent
Description copied from interface:WeChatInboundMessageEventHandler
Handles an event message received from WeChat- Specified by:
handleEvent
in interfaceWeChatInboundMessageEventHandler
- Parameters:
inboundMessage
- the received message
-
handleSubscribeEvent
-
handleTemplateSendJobFinishEvent
-
handleUnsupportedEvent
-