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 String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected final InboundMessageHandlerImpl
protected String
protected String
protected String
protected 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.void
send()
Perform the actual message send to the engage platformvoid
Perform 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:
getExternalSenderName
in interfaceInboundMessage
-
externalSenderName
- Specified by:
externalSenderName
in interfaceInboundMessageBuilder
-
getExternalSenderId
- Specified by:
getExternalSenderId
in interfaceInboundMessage
-
externalSenderId
Description copied from interface:InboundMessageBuilder
The external id of the user that send the message- Specified by:
externalSenderId
in interfaceInboundMessageBuilder
- Parameters:
externalSenderId
- the external id of the sender
-
getExternalSystemId
- Specified by:
getExternalSystemId
in interfaceInboundMessage
-
externalSystemId
Description copied from interface:InboundMessageBuilder
The id of the system that the message originates from.- Specified by:
externalSystemId
in interfaceInboundMessageBuilder
- Parameters:
externalSystemId
- the system id- See Also:
-
getBusinessAccountId
- Specified by:
getBusinessAccountId
in interfaceInboundMessage
-
businessAccountId
Description copied from interface:InboundMessageBuilder
The id of the business account that has received the message. (e.g. WhatsApp business number, WeChat official account, etc)- Specified by:
businessAccountId
in interfaceInboundMessageBuilder
- Parameters:
businessAccountId
- the id of the business account
-
getExternalId
- Specified by:
getExternalId
in interfaceInboundMessage
-
externalId
Description copied from interface:InboundMessageBuilder
The optional external id of the message in the external system.- Specified by:
externalId
in interfaceInboundMessageBuilder
- Parameters:
externalId
- the external id
-
getReplyToExternalId
- Specified by:
getReplyToExternalId
in interfaceInboundMessage
-
replyToExternalId
Description copied from interface:InboundMessageBuilder
The 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:
replyToExternalId
in interfaceInboundMessageBuilder
- Parameters:
replyToExternalId
- the external id
-
getExternalMediaId
- Specified by:
getExternalMediaId
in interfaceInboundMessage
-
externalMediaId
Description copied from interface:InboundMessageBuilder
The id of the external media.- Specified by:
externalMediaId
in interfaceInboundMessageBuilder
- Parameters:
externalMediaId
- the external media id
-
getExternalMediaName
- Specified by:
getExternalMediaName
in interfaceInboundMessage
-
externalMediaName
Description copied from interface:InboundMessageBuilder
The name of the external media.- Specified by:
externalMediaName
in interfaceInboundMessageBuilder
- Parameters:
externalMediaName
- the external media name
-
getExternalMediaMimeType
- Specified by:
getExternalMediaMimeType
in interfaceInboundMessage
-
externalMediaMimeType
Description copied from interface:InboundMessageBuilder
The mime type of the external media.- Specified by:
externalMediaMimeType
in interfaceInboundMessageBuilder
- Parameters:
externalMediaMimeType
- the external media mime type
-
getMessageType
- Specified by:
getMessageType
in interfaceInboundMessage
-
messageType
- Specified by:
messageType
in interfaceInboundMessageBuilder
-
getMessageSubType
- Specified by:
getMessageSubType
in interfaceInboundMessage
-
messageSubType
- Specified by:
messageSubType
in interfaceInboundMessageBuilder
-
getInteractiveOutcome
Description copied from interface:InboundMessage
An 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:
getInteractiveOutcome
in interfaceInboundMessage
-
interactiveOutcome
Description copied from interface:InboundMessageBuilder
An 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:
interactiveOutcome
in interfaceInboundMessageBuilder
- Parameters:
interactiveOutcome
- the interactive outcome value
-
getDynamicProperties
- Specified by:
getDynamicProperties
in interfaceInboundMessage
-
dynamicProperties
Description copied from interface:InboundMessageBuilder
possible extra information about the message.- Specified by:
dynamicProperties
in interfaceInboundMessageBuilder
- Parameters:
dynamicProperties
- possible extra information about the message
-
getContentType
- Specified by:
getContentType
in interfaceInboundMessage
-
contentType
Description copied from interface:InboundMessageBuilder
The type of the content for the message.- Specified by:
contentType
in interfaceInboundMessageBuilder
- Parameters:
contentType
- the message content type
-
getContent
- Specified by:
getContent
in interfaceInboundMessage
-
content
Description copied from interface:InboundMessageBuilder
The content of the message- Specified by:
content
in interfaceInboundMessageBuilder
- Parameters:
content
- the message content
-
send
public void send()Description copied from interface:InboundMessageBuilder
Perform the actual message send to the engage platform- Specified by:
send
in interfaceInboundMessageBuilder
-
sendUnsupported
public void sendUnsupported()Description copied from interface:InboundMessageBuilder
Perform sending the message as an unsupported type. This is usually decided by the invokers of the builders.- Specified by:
sendUnsupported
in interfaceInboundMessageBuilder
-