Class CmmnStartPlanItemInstanceBot
- java.lang.Object
-
- com.flowable.platform.service.bot.CmmnStartPlanItemInstanceBot
-
- All Implemented Interfaces:
BotService
public class CmmnStartPlanItemInstanceBot extends Object implements BotService
A bot that handles actions originating from CMMN manual activates plan item instances. When the action instance is invoked, the bot will callCmmnRuntimeService.startPlanItemInstance(String)
.
-
-
Field Summary
Fields Modifier and Type Field Description protected CmmnEngineConfiguration
cmmnEngineConfiguration
protected CmmnRepositoryService
cmmnRepositoryService
protected CmmnRuntimeService
cmmnRuntimeService
protected FormRepositoryService
formRepositoryService
protected FormService
formService
-
Constructor Summary
Constructors Constructor Description CmmnStartPlanItemInstanceBot(CmmnRuntimeService cmmnRuntimeService, CmmnRepositoryService cmmnRepositoryService, FormRepositoryService formRepositoryService, FormService formService, CmmnEngineConfiguration cmmnEngineConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDescription()
Returns the optional description of this bot, describing its capabilities or prerequisites.String
getKey()
Returns the key of this bot which is used to linkActionDefinition
s to this bot.String
getName()
Returns the name of this bot, typically used as the label for it.BotActionResult
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.
-
-
-
Field Detail
-
cmmnRuntimeService
protected CmmnRuntimeService cmmnRuntimeService
-
cmmnRepositoryService
protected CmmnRepositoryService cmmnRepositoryService
-
formRepositoryService
protected FormRepositoryService formRepositoryService
-
formService
protected FormService formService
-
cmmnEngineConfiguration
protected CmmnEngineConfiguration cmmnEngineConfiguration
-
-
Constructor Detail
-
CmmnStartPlanItemInstanceBot
public CmmnStartPlanItemInstanceBot(CmmnRuntimeService cmmnRuntimeService, CmmnRepositoryService cmmnRepositoryService, FormRepositoryService formRepositoryService, FormService formService, CmmnEngineConfiguration cmmnEngineConfiguration)
-
-
Method Detail
-
getKey
public String 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
public String 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
public String 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.- 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- Returns:
- the result of invoking the action
-
-