Class WeChatJmsExternalConversationSystemAdapter
java.lang.Object
com.flowable.engage.external.system.wechat.WeChatJmsExternalConversationSystemAdapter
- All Implemented Interfaces:
ExternalConversationSystemAdapter
public class WeChatJmsExternalConversationSystemAdapter extends java.lang.Object implements ExternalConversationSystemAdapter
- Author:
- Filip Hrisafov
-
Field Summary
Fields Modifier and Type Field Description protected org.springframework.jms.core.JmsMessageOperations
jmsMessagingOperations
protected int
maximumMessageSize
protected java.lang.String
outboundMessageDestination
protected WechatEmojiConverter
wechatEmojiConverter
-
Constructor Summary
Constructors Constructor Description WeChatJmsExternalConversationSystemAdapter(org.springframework.jms.core.JmsMessageOperations jmsMessagingOperations, java.lang.String outboundMessageDestination, int maximumMessageSize, WechatEmojiConverter wechatEmojiConverter)
-
Method Summary
Modifier and Type Method Description protected boolean
checkMessageSize(java.lang.String content)
java.lang.String
convertAndCheckMessageSize(java.lang.String message)
ExternalMessageBuilder
createMessageBuilder()
Creates theExternalMessageBuilder
that is responsible for constructing the external message for the give external user id.java.lang.String
getExternalSystemId()
Returns the id of the external system implemented by this adapter.void
sendMessageDuringCommitting(OutboundMessageDto outboundMessage)
void
sendOutboundMessage(OutboundMessageDto outboundMessage)
void
validateMessageContent(java.lang.String messageContent)
Validates the content of the message.
-
Field Details
-
jmsMessagingOperations
protected final org.springframework.jms.core.JmsMessageOperations jmsMessagingOperations -
outboundMessageDestination
protected final java.lang.String outboundMessageDestination -
maximumMessageSize
protected final int maximumMessageSize -
wechatEmojiConverter
-
-
Constructor Details
-
WeChatJmsExternalConversationSystemAdapter
public WeChatJmsExternalConversationSystemAdapter(org.springframework.jms.core.JmsMessageOperations jmsMessagingOperations, java.lang.String outboundMessageDestination, int maximumMessageSize, WechatEmojiConverter wechatEmojiConverter)
-
-
Method Details
-
getExternalSystemId
public java.lang.String getExternalSystemId()Description copied from interface:ExternalConversationSystemAdapter
Returns the id of the external system implemented by this adapter.- Specified by:
getExternalSystemId
in interfaceExternalConversationSystemAdapter
- Returns:
- the external system id implemented by this adapter
-
createMessageBuilder
Description copied from interface:ExternalConversationSystemAdapter
Creates theExternalMessageBuilder
that is responsible for constructing the external message for the give external user id. This is invoked by the engage system when sending out outbound messages.- Specified by:
createMessageBuilder
in interfaceExternalConversationSystemAdapter
- Returns:
- the
ExternalMessageBuilder
-
validateMessageContent
public void validateMessageContent(java.lang.String messageContent)Description copied from interface:ExternalConversationSystemAdapter
Validates the content of the message. If the content is invalid an exception should be thrown.- Specified by:
validateMessageContent
in interfaceExternalConversationSystemAdapter
- Parameters:
messageContent
- the content of the message that should be validated
-
convertAndCheckMessageSize
public java.lang.String convertAndCheckMessageSize(java.lang.String message) -
checkMessageSize
protected boolean checkMessageSize(java.lang.String content) -
sendOutboundMessage
-
sendMessageDuringCommitting
-