Package com.flowable.example.hr.bot
Class VacationRequestBot
java.lang.Object
com.flowable.example.BaseExampleService
com.flowable.example.hr.bot.VacationRequestBot
- All Implemented Interfaces:
com.flowable.action.api.bot.BotService
public class VacationRequestBot extends BaseExampleService implements com.flowable.action.api.bot.BotService
A simple bot service used to handle the action definitions used in the vacation request case and conversation.
- Author:
- Micha Kiener
-
Field Summary
Fields Modifier and Type Field Description protected org.flowable.cmmn.api.CmmnRuntimeService
caseService
protected ConversationService
conversationService
static java.lang.String
FEEDBACK_PRC_KEY
protected MessageService
messageService
protected org.flowable.engine.HistoryService
processHistoryService
protected org.flowable.engine.RuntimeService
processService
protected org.flowable.engine.TaskService
taskService
-
Constructor Summary
Constructors Constructor Description VacationRequestBot(org.flowable.engine.RuntimeService processService, org.flowable.engine.HistoryService processHistoryService, org.flowable.cmmn.api.CmmnRuntimeService caseService, org.flowable.engine.TaskService taskService, com.flowable.core.idm.api.PlatformIdentityService identityService, ConversationService conversationService, MessageService messageService)
-
Method Summary
Modifier and Type Method Description java.lang.String
getDescription()
java.lang.String
getKey()
java.lang.String
getName()
com.flowable.action.api.bot.BotActionResult
invokeBot(com.flowable.action.api.history.HistoricActionInstance actionInstance, com.flowable.action.api.repository.ActionDefinition actionDefinition, java.util.Map<java.lang.String,java.lang.Object> payload)
Methods inherited from class com.flowable.example.BaseExampleService
getCurrentUserName, getRootCaseId, getRootCaseId, getRootCaseInstance, getRootCaseInstance, getRootCasePlanItemId, getUserDisplayName
-
Field Details
-
FEEDBACK_PRC_KEY
public static final java.lang.String FEEDBACK_PRC_KEY- See Also:
- Constant Field Values
-
processService
protected final org.flowable.engine.RuntimeService processService -
processHistoryService
protected final org.flowable.engine.HistoryService processHistoryService -
caseService
protected final org.flowable.cmmn.api.CmmnRuntimeService caseService -
taskService
protected final org.flowable.engine.TaskService taskService -
conversationService
-
messageService
-
-
Constructor Details
-
VacationRequestBot
public VacationRequestBot(org.flowable.engine.RuntimeService processService, org.flowable.engine.HistoryService processHistoryService, org.flowable.cmmn.api.CmmnRuntimeService caseService, org.flowable.engine.TaskService taskService, com.flowable.core.idm.api.PlatformIdentityService identityService, ConversationService conversationService, MessageService messageService)
-
-
Method Details
-
getKey
public java.lang.String getKey()- Specified by:
getKey
in interfacecom.flowable.action.api.bot.BotService
-
getName
public java.lang.String getName()- Specified by:
getName
in interfacecom.flowable.action.api.bot.BotService
-
getDescription
public java.lang.String getDescription()- Specified by:
getDescription
in interfacecom.flowable.action.api.bot.BotService
-
invokeBot
public com.flowable.action.api.bot.BotActionResult invokeBot(com.flowable.action.api.history.HistoricActionInstance actionInstance, com.flowable.action.api.repository.ActionDefinition actionDefinition, java.util.Map<java.lang.String,java.lang.Object> payload)- Specified by:
invokeBot
in interfacecom.flowable.action.api.bot.BotService
-