Class ExternalConversationServiceImpl
java.lang.Object
org.flowable.common.engine.impl.service.CommonServiceImpl<C>
org.flowable.common.engine.impl.service.CommonEngineServiceImpl<EngageEngineConfiguration>
com.flowable.engage.engine.impl.conversation.ExternalConversationServiceImpl
- All Implemented Interfaces:
ExternalConversationService
public class ExternalConversationServiceImpl
extends CommonEngineServiceImpl<EngageEngineConfiguration>
implements ExternalConversationService
- Author:
- Filip Hrisafov
-
Field Summary
Fields inherited from class org.flowable.common.engine.impl.service.CommonEngineServiceImpl
commandExecutor
Fields inherited from class org.flowable.common.engine.impl.service.CommonServiceImpl
configuration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ExternalConversationSystemAdapter
getAdapter
(CommandContext commandContext, String externalSystemId) getExternalSystemAdapter
(String externalSystemId) void
sendMessage
(String recipientAccountId, String messageId) Invoked by the engagement system to send a message to an external user account.void
validateMessage
(UserAccount recipientAccount, Message message) Invoked byb the engagement system to validate the message that should be sent to the external user account.Methods inherited from class org.flowable.common.engine.impl.service.CommonEngineServiceImpl
getCommandExecutor, setCommandExecutor
Methods inherited from class org.flowable.common.engine.impl.service.CommonServiceImpl
getConfiguration
-
Constructor Details
-
ExternalConversationServiceImpl
-
-
Method Details
-
sendMessage
Description copied from interface:ExternalConversationService
Invoked by the engagement system to send a message to an external user account.- Specified by:
sendMessage
in interfaceExternalConversationService
- Parameters:
recipientAccountId
- the recipient account id that needs to receive the messagemessageId
- the id of the message that needs to be send
-
validateMessage
Description copied from interface:ExternalConversationService
Invoked byb the engagement system to validate the message that should be sent to the external user account.- Specified by:
validateMessage
in interfaceExternalConversationService
- Parameters:
recipientAccount
- the recipient account that should received the messagemessage
- the message that should be validated
-
getExternalSystemAdapter
- Specified by:
getExternalSystemAdapter
in interfaceExternalConversationService
-
getAdapter
protected ExternalConversationSystemAdapter getAdapter(CommandContext commandContext, String externalSystemId)
-