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 Constructor Description ExternalConversationServiceImpl(EngageEngineConfiguration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ExternalConversationSystemAdaptergetAdapter(CommandContext commandContext, String externalSystemId)ExternalConversationSystemAdaptergetExternalSystemAdapter(String externalSystemId)voidsendMessage(String recipientAccountId, String messageId)Invoked by the engagement system to send a message to an external user account.voidvalidateMessage(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 Detail
-
ExternalConversationServiceImpl
public ExternalConversationServiceImpl(EngageEngineConfiguration configuration)
-
-
Method Detail
-
sendMessage
public void sendMessage(String recipientAccountId, String messageId)
Description copied from interface:ExternalConversationServiceInvoked by the engagement system to send a message to an external user account.- Specified by:
sendMessagein interfaceExternalConversationService- Parameters:
recipientAccountId- the recipient account id that needs to receive the messagemessageId- the id of the message that needs to be send
-
validateMessage
public void validateMessage(UserAccount recipientAccount, Message message)
Description copied from interface:ExternalConversationServiceInvoked byb the engagement system to validate the message that should be sent to the external user account.- Specified by:
validateMessagein interfaceExternalConversationService- Parameters:
recipientAccount- the recipient account that should received the messagemessage- the message that should be validated
-
getExternalSystemAdapter
public ExternalConversationSystemAdapter getExternalSystemAdapter(String externalSystemId)
- Specified by:
getExternalSystemAdapterin interfaceExternalConversationService
-
getAdapter
protected ExternalConversationSystemAdapter getAdapter(CommandContext commandContext, String externalSystemId)
-
-