Class DeskManagementBot
- java.lang.Object
-
- com.flowable.engage.engine.impl.desk.bot.DeskManagementBot
-
- All Implemented Interfaces:
BotService
public class DeskManagementBot extends Object implements BotService
A service bot managing desk and ticket conversations.- Author:
- Micha Kiener
-
-
Field Summary
Fields Modifier and Type Field Description protected ConversationPermissionService
conversationPermissionService
protected ConversationService
conversationService
protected DeskService
deskService
protected PlatformIdentityService
identityService
protected MessageService
messageService
protected UserDefinitionService
userDefinitionService
-
Constructor Summary
Constructors Constructor Description DeskManagementBot(ConversationService conversationService, ConversationPermissionService conversationPermissionService, MessageService messageService, PlatformIdentityService identityService, UserDefinitionService userDefinitionService, DeskService deskService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDescription()
String
getKey()
String
getName()
protected void
handleAssignTicketAction(String conversationId, String currentUserId, Map<String,Object> payload)
protected void
handleCreateNewTicketAction(String conversationId, String currentUserId, Map<String,Object> payload)
protected void
handleRemoveDeskMemberFromTicketAction(String conversationId, String currentUserId, Map<String,Object> payload)
BotActionResult
invokeBot(HistoricActionInstance actionInstance, ActionDefinition actionDefinition, Map<String,Object> payload)
-
-
-
Field Detail
-
conversationService
protected final ConversationService conversationService
-
conversationPermissionService
protected final ConversationPermissionService conversationPermissionService
-
messageService
protected final MessageService messageService
-
identityService
protected final PlatformIdentityService identityService
-
userDefinitionService
protected final UserDefinitionService userDefinitionService
-
deskService
protected final DeskService deskService
-
-
Constructor Detail
-
DeskManagementBot
public DeskManagementBot(ConversationService conversationService, ConversationPermissionService conversationPermissionService, MessageService messageService, PlatformIdentityService identityService, UserDefinitionService userDefinitionService, DeskService deskService)
-
-
Method Detail
-
getKey
public String getKey()
- Specified by:
getKey
in interfaceBotService
-
getName
public String getName()
- Specified by:
getName
in interfaceBotService
-
getDescription
public String getDescription()
- Specified by:
getDescription
in interfaceBotService
-
invokeBot
public BotActionResult invokeBot(HistoricActionInstance actionInstance, ActionDefinition actionDefinition, Map<String,Object> payload)
- Specified by:
invokeBot
in interfaceBotService
-
handleCreateNewTicketAction
protected void handleCreateNewTicketAction(String conversationId, String currentUserId, Map<String,Object> payload)
-
handleAssignTicketAction
protected void handleAssignTicketAction(String conversationId, String currentUserId, Map<String,Object> payload)
-
-