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 org.flowable.common.engine.impl.service.CommonEngineServiceImpl<EngageEngineConfiguration> implements ExternalConversationService
- Author:
- Filip Hrisafov
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ExternalConversationServiceImpl(EngageEngineConfiguration configuration)
-
Method Summary
Modifier and Type Method Description protected ExternalConversationSystemAdapter
getAdapter(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, java.lang.String externalSystemId)
ExternalConversationSystemAdapter
getExternalSystemAdapter(java.lang.String externalSystemId)
void
sendMessage(java.lang.String recipientAccountId, java.lang.String messageId)
Invoked by the engagement system to send a message to an external user account.void
validateMessage(com.flowable.core.idm.api.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
-
Constructor Details
-
Method Details
-
sendMessage
public void sendMessage(java.lang.String recipientAccountId, java.lang.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(com.flowable.core.idm.api.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(java.lang.String externalSystemId)- Specified by:
getExternalSystemAdapter
in interfaceExternalConversationService
-
getAdapter
protected ExternalConversationSystemAdapter getAdapter(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, java.lang.String externalSystemId)
-