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 ExternalConversationSystemAdapter
getAdapter(CommandContext commandContext, String externalSystemId)
ExternalConversationSystemAdapter
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 Detail
-
ExternalConversationServiceImpl
public ExternalConversationServiceImpl(EngageEngineConfiguration configuration)
-
-
Method Detail
-
sendMessage
public void sendMessage(String recipientAccountId, String messageId)
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
public void validateMessage(UserAccount recipientAccount, Message message)
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
public ExternalConversationSystemAdapter getExternalSystemAdapter(String externalSystemId)
- Specified by:
getExternalSystemAdapter
in interfaceExternalConversationService
-
getAdapter
protected ExternalConversationSystemAdapter getAdapter(CommandContext commandContext, String externalSystemId)
-
-