Class InboundMessageBuilderImpl
java.lang.Object
com.flowable.engage.external.system.service.InboundMessageBuilderImpl
- All Implemented Interfaces:
InboundMessage,InboundMessageBuilder
public class InboundMessageBuilderImpl
extends Object
implements InboundMessageBuilder, InboundMessage
- Author:
- Filip Hrisafov
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected final InboundMessageHandlerImplprotected Stringprotected Stringprotected Stringprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbusinessAccountId(String businessAccountId) The id of the business account that has received the message.The content of the messagecontentType(String contentType) The type of the content for the message.dynamicProperties(Map<String, Object> dynamicProperties) possible extra information about the message.externalId(String externalId) The optional external id of the message in the external system.externalMediaId(String externalMediaId) The id of the external media.externalMediaMimeType(String externalMediaMimeType) The mime type of the external media.externalMediaName(String externalMediaName) The name of the external media.externalSenderId(String externalSenderId) The external id of the user that send the messageexternalSenderName(String externalSenderName) externalSystemId(String externalSystemId) The id of the system that the message originates from.An interactive event outcome value.interactiveOutcome(String interactiveOutcome) An interactive event outcome value.messageSubType(String messageSubType) messageType(String messageType) replyToExternalId(String replyToExternalId) The optional reply to external id of the message in the external system.voidsend()Perform the actual message send to the engage platformvoidPerform sending the message as an unsupported type.
-
Field Details
-
inboundMessageHandler
-
externalSenderName
-
externalSenderId
-
externalSystemId
-
businessAccountId
-
externalId
-
replyToExternalId
-
externalMediaId
-
externalMediaName
-
externalMediaMimeType
-
messageType
-
messageSubType
-
-
contentType
-
interactiveOutcome
-
dynamicProperties
-
-
Constructor Details
-
InboundMessageBuilderImpl
-
-
Method Details
-
getExternalSenderName
- Specified by:
getExternalSenderNamein interfaceInboundMessage
-
externalSenderName
- Specified by:
externalSenderNamein interfaceInboundMessageBuilder
-
getExternalSenderId
- Specified by:
getExternalSenderIdin interfaceInboundMessage
-
externalSenderId
Description copied from interface:InboundMessageBuilderThe external id of the user that send the message- Specified by:
externalSenderIdin interfaceInboundMessageBuilder- Parameters:
externalSenderId- the external id of the sender
-
getExternalSystemId
- Specified by:
getExternalSystemIdin interfaceInboundMessage
-
externalSystemId
Description copied from interface:InboundMessageBuilderThe id of the system that the message originates from.- Specified by:
externalSystemIdin interfaceInboundMessageBuilder- Parameters:
externalSystemId- the system id- See Also:
-
getBusinessAccountId
- Specified by:
getBusinessAccountIdin interfaceInboundMessage
-
businessAccountId
Description copied from interface:InboundMessageBuilderThe id of the business account that has received the message. (e.g. WhatsApp business number, WeChat official account, etc)- Specified by:
businessAccountIdin interfaceInboundMessageBuilder- Parameters:
businessAccountId- the id of the business account
-
getExternalId
- Specified by:
getExternalIdin interfaceInboundMessage
-
externalId
Description copied from interface:InboundMessageBuilderThe optional external id of the message in the external system.- Specified by:
externalIdin interfaceInboundMessageBuilder- Parameters:
externalId- the external id
-
getReplyToExternalId
- Specified by:
getReplyToExternalIdin interfaceInboundMessage
-
replyToExternalId
Description copied from interface:InboundMessageBuilderThe optional reply to external id of the message in the external system. This would be used to create a reply to message in the engage system- Specified by:
replyToExternalIdin interfaceInboundMessageBuilder- Parameters:
replyToExternalId- the external id
-
getExternalMediaId
- Specified by:
getExternalMediaIdin interfaceInboundMessage
-
externalMediaId
Description copied from interface:InboundMessageBuilderThe id of the external media.- Specified by:
externalMediaIdin interfaceInboundMessageBuilder- Parameters:
externalMediaId- the external media id
-
getExternalMediaName
- Specified by:
getExternalMediaNamein interfaceInboundMessage
-
externalMediaName
Description copied from interface:InboundMessageBuilderThe name of the external media.- Specified by:
externalMediaNamein interfaceInboundMessageBuilder- Parameters:
externalMediaName- the external media name
-
getExternalMediaMimeType
- Specified by:
getExternalMediaMimeTypein interfaceInboundMessage
-
externalMediaMimeType
Description copied from interface:InboundMessageBuilderThe mime type of the external media.- Specified by:
externalMediaMimeTypein interfaceInboundMessageBuilder- Parameters:
externalMediaMimeType- the external media mime type
-
getMessageType
- Specified by:
getMessageTypein interfaceInboundMessage
-
messageType
- Specified by:
messageTypein interfaceInboundMessageBuilder
-
getMessageSubType
- Specified by:
getMessageSubTypein interfaceInboundMessage
-
messageSubType
- Specified by:
messageSubTypein interfaceInboundMessageBuilder
-
getInteractiveOutcome
Description copied from interface:InboundMessageAn interactive event outcome value. If this is set then an event registry event might be sent out when the message is routed to the conversation.- Specified by:
getInteractiveOutcomein interfaceInboundMessage
-
interactiveOutcome
Description copied from interface:InboundMessageBuilderAn interactive event outcome value. If this is set then an event registry event might be sent out when the message is routed to the conversation.- Specified by:
interactiveOutcomein interfaceInboundMessageBuilder- Parameters:
interactiveOutcome- the interactive outcome value
-
getDynamicProperties
- Specified by:
getDynamicPropertiesin interfaceInboundMessage
-
dynamicProperties
Description copied from interface:InboundMessageBuilderpossible extra information about the message.- Specified by:
dynamicPropertiesin interfaceInboundMessageBuilder- Parameters:
dynamicProperties- possible extra information about the message
-
getContentType
- Specified by:
getContentTypein interfaceInboundMessage
-
contentType
Description copied from interface:InboundMessageBuilderThe type of the content for the message.- Specified by:
contentTypein interfaceInboundMessageBuilder- Parameters:
contentType- the message content type
-
getContent
- Specified by:
getContentin interfaceInboundMessage
-
content
Description copied from interface:InboundMessageBuilderThe content of the message- Specified by:
contentin interfaceInboundMessageBuilder- Parameters:
content- the message content
-
send
public void send()Description copied from interface:InboundMessageBuilderPerform the actual message send to the engage platform- Specified by:
sendin interfaceInboundMessageBuilder
-
sendUnsupported
public void sendUnsupported()Description copied from interface:InboundMessageBuilderPerform sending the message as an unsupported type. This is usually decided by the invokers of the builders.- Specified by:
sendUnsupportedin interfaceInboundMessageBuilder
-