Class DeskServiceImpl
java.lang.Object
org.flowable.common.engine.impl.service.CommonServiceImpl<C>
org.flowable.common.engine.impl.service.CommonEngineServiceImpl<EngageEngineConfiguration>
com.flowable.engage.engine.impl.desk.DeskServiceImpl
- All Implemented Interfaces:
DeskService
public class DeskServiceImpl
extends CommonEngineServiceImpl<EngageEngineConfiguration>
implements DeskService
The default desk and ticket service implementation.
- Author:
- Micha Kiener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringThe user id of the digital assistant used in ticket and desk conversations, defaults to the digital assistant user, if not changed.Fields inherited from class org.flowable.common.engine.impl.service.CommonEngineServiceImpl
commandExecutorFields inherited from class org.flowable.common.engine.impl.service.CommonServiceImpl
configuration -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CommandContextvoidhandleUnassignedTicketMessage(String deskConversationId, String ticketConversationId, Message message) voidinitializeDeskConversation(String deskConversationId) Invoked by the generic conversation listener to initialize the given desk conversation.voidinitializeTicketConversation(String deskConversationId, String ticketConversationId) Invoked by the generic conversation listener to initialize the given ticket conversation.voidsetDigitalAssistantUserId(String digitalAssistantUserId) startTicketConversation(String deskConversationId, Collection<String> participantIds, String name, Map<String, Object> variables, String userIdForPermissionChecks) Starts a new ticket conversation as part of a desk.voidswitchToDeskTeam(String deskConversationId, String ticketConversationId, boolean isNewTicket) voidswitchToDeskTeamMember(String deskConversationId, String ticketConversationId, String deskMemberId, boolean isNewTicket) Methods inherited from class org.flowable.common.engine.impl.service.CommonEngineServiceImpl
getCommandExecutor, setCommandExecutorMethods inherited from class org.flowable.common.engine.impl.service.CommonServiceImpl
getConfiguration
-
Field Details
-
digitalAssistantUserId
The user id of the digital assistant used in ticket and desk conversations, defaults to the digital assistant user, if not changed.
-
-
Constructor Details
-
DeskServiceImpl
-
-
Method Details
-
startTicketConversation
public Conversation startTicketConversation(String deskConversationId, Collection<String> participantIds, String name, Map<String, Object> variables, String userIdForPermissionChecks) Description copied from interface:DeskServiceStarts a new ticket conversation as part of a desk.- Specified by:
startTicketConversationin interfaceDeskService- Parameters:
deskConversationId- the id of the desk conversation where a new ticket should be started forparticipantIds- the collection of participants for the ticketname- the name of the ticket, must be providedvariables- the optional map of additional ticket informationuserIdForPermissionChecks- optionally pass in a user id to check for permissions, if not provided, no permission check is done- Returns:
- the newly created ticket conversation
-
initializeDeskConversation
Description copied from interface:DeskServiceInvoked by the generic conversation listener to initialize the given desk conversation.- Specified by:
initializeDeskConversationin interfaceDeskService- Parameters:
deskConversationId- the id of the desk conversation newly created and in need for initialization
-
initializeTicketConversation
Description copied from interface:DeskServiceInvoked by the generic conversation listener to initialize the given ticket conversation.- Specified by:
initializeTicketConversationin interfaceDeskService- Parameters:
deskConversationId- the id of the desk conversation the ticket belongs toticketConversationId- the id of the ticket conversation newly created and in need for initialization
-
switchToDeskTeam
public void switchToDeskTeam(String deskConversationId, String ticketConversationId, boolean isNewTicket) - Specified by:
switchToDeskTeamin interfaceDeskService
-
switchToDeskTeamMember
public void switchToDeskTeamMember(String deskConversationId, String ticketConversationId, String deskMemberId, boolean isNewTicket) - Specified by:
switchToDeskTeamMemberin interfaceDeskService
-
handleUnassignedTicketMessage
public void handleUnassignedTicketMessage(String deskConversationId, String ticketConversationId, Message message) - Specified by:
handleUnassignedTicketMessagein interfaceDeskService
-
getDigitalAssistantUserId
- Specified by:
getDigitalAssistantUserIdin interfaceDeskService
-
setDigitalAssistantUserId
-
getCommandContext
-