public class DeskServiceImpl extends org.flowable.common.engine.impl.service.CommonEngineServiceImpl<EngageEngineConfiguration> implements DeskService
Modifier and Type | Field and Description |
---|---|
protected String |
digitalAssistantUserId
The user id of the digital assistant used in ticket and desk conversations, defaults to the digital assistant user, if not changed.
|
Constructor and Description |
---|
DeskServiceImpl(EngageEngineConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
protected org.flowable.common.engine.impl.interceptor.CommandContext |
getCommandContext() |
String |
getDigitalAssistantUserId() |
void |
handleUnassignedTicketMessage(String deskConversationId,
String ticketConversationId,
Message message) |
void |
initializeDeskConversation(String deskConversationId)
Invoked by the generic conversation listener to initialize the given desk conversation.
|
void |
initializeTicketConversation(String deskConversationId,
String ticketConversationId)
Invoked by the generic conversation listener to initialize the given ticket conversation.
|
void |
setDigitalAssistantUserId(String digitalAssistantUserId) |
Conversation |
startTicketConversation(String deskConversationId,
Collection<String> participantIds,
String name,
Map<String,Object> variables,
String userIdForPermissionChecks)
Starts a new ticket conversation as part of a desk.
|
void |
switchToDeskTeam(String deskConversationId,
String ticketConversationId,
boolean isNewTicket) |
void |
switchToDeskTeamMember(String deskConversationId,
String ticketConversationId,
String deskMemberId,
boolean isNewTicket) |
getCommandExecutor, setCommandExecutor
protected String digitalAssistantUserId
public DeskServiceImpl(EngageEngineConfiguration configuration)
public Conversation startTicketConversation(String deskConversationId, Collection<String> participantIds, String name, Map<String,Object> variables, String userIdForPermissionChecks)
DeskService
startTicketConversation
in interface DeskService
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 donepublic void initializeDeskConversation(String deskConversationId)
DeskService
initializeDeskConversation
in interface DeskService
deskConversationId
- the id of the desk conversation newly created and in need for initializationpublic void initializeTicketConversation(String deskConversationId, String ticketConversationId)
DeskService
initializeTicketConversation
in interface DeskService
deskConversationId
- the id of the desk conversation the ticket belongs toticketConversationId
- the id of the ticket conversation newly created and in need for initializationpublic void switchToDeskTeam(String deskConversationId, String ticketConversationId, boolean isNewTicket)
switchToDeskTeam
in interface DeskService
public void switchToDeskTeamMember(String deskConversationId, String ticketConversationId, String deskMemberId, boolean isNewTicket)
switchToDeskTeamMember
in interface DeskService
public void handleUnassignedTicketMessage(String deskConversationId, String ticketConversationId, Message message)
handleUnassignedTicketMessage
in interface DeskService
public String getDigitalAssistantUserId()
getDigitalAssistantUserId
in interface DeskService
public void setDigitalAssistantUserId(String digitalAssistantUserId)
protected org.flowable.common.engine.impl.interceptor.CommandContext getCommandContext()
Copyright © 2019. All rights reserved.