Class DeskManagementBot
java.lang.Object
com.flowable.engage.engine.impl.desk.bot.DeskManagementBot
- All Implemented Interfaces:
BotService
A service bot managing desk and ticket conversations.
- Author:
- Micha Kiener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ConversationPermissionService
protected final ConversationService
protected final DeskService
protected final PlatformIdentityService
protected final MessageService
protected final UserDefinitionService
-
Constructor Summary
ConstructorsConstructorDescriptionDeskManagementBot
(ConversationService conversationService, ConversationPermissionService conversationPermissionService, MessageService messageService, PlatformIdentityService identityService, UserDefinitionService userDefinitionService, DeskService deskService) -
Method Summary
Modifier and TypeMethodDescriptionReturns the optional description of this bot, describing its capabilities or prerequisites.getKey()
Returns the key of this bot which is used to linkActionDefinition
s to this bot.getName()
Returns the name of this bot, typically used as the label for it.protected void
protected void
handleCreateNewTicketAction
(String conversationId, String currentUserId, Map<String, Object> payload) protected void
handleRemoveDeskMemberFromTicketAction
(String conversationId, String currentUserId, Map<String, Object> payload) invokeBot
(HistoricActionInstance actionInstance, ActionDefinition actionDefinition, Map<String, Object> payload) Whenever an action definition is triggered, an action instance is created and this method is invoked in order to execute the action.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.flowable.action.api.bot.BotService
invokeBot
-
Field Details
-
conversationService
-
conversationPermissionService
-
messageService
-
identityService
-
userDefinitionService
-
deskService
-
-
Constructor Details
-
DeskManagementBot
public DeskManagementBot(ConversationService conversationService, ConversationPermissionService conversationPermissionService, MessageService messageService, PlatformIdentityService identityService, UserDefinitionService userDefinitionService, DeskService deskService)
-
-
Method Details
-
getKey
Description copied from interface:BotService
Returns the key of this bot which is used to linkActionDefinition
s to this bot.- Specified by:
getKey
in interfaceBotService
- Returns:
- the key of this bot, which needs to be unique amongst other bots
-
getName
Description copied from interface:BotService
Returns the name of this bot, typically used as the label for it.- Specified by:
getName
in interfaceBotService
- Returns:
- the name of this bot
-
getDescription
Description copied from interface:BotService
Returns the optional description of this bot, describing its capabilities or prerequisites.- Specified by:
getDescription
in interfaceBotService
- Returns:
- the optional description of this bot
-
invokeBot
public BotActionResult invokeBot(HistoricActionInstance actionInstance, ActionDefinition actionDefinition, Map<String, Object> payload) Description copied from interface:BotService
Whenever an action definition is triggered, an action instance is created and this method is invoked in order to execute the action. You need to provide an action result according the execution and follow up needed.API NOTE: Prefer overriding
BotService.invokeBot(BotInvocationContext)
instead and leave this empty. Alternatively useContextAwareBotService
instead, to avoid overriding an empty method.- Specified by:
invokeBot
in interfaceBotService
- Parameters:
actionInstance
- the action instance to runactionDefinition
- the action definition where the action instance is based onpayload
- the optional payload containing the necessary information to run the action
-
handleCreateNewTicketAction
-
handleAssignTicketAction
-
handleRemoveDeskMemberFromTicketAction
-