public class CmmnStartPlanItemInstanceBot extends Object implements BotService
CmmnRuntimeService.startPlanItemInstance(String).| Modifier and Type | Field and Description |
|---|---|
protected org.flowable.cmmn.engine.CmmnEngineConfiguration |
cmmnEngineConfiguration |
protected org.flowable.cmmn.api.CmmnRepositoryService |
cmmnRepositoryService |
protected org.flowable.cmmn.api.CmmnRuntimeService |
cmmnRuntimeService |
protected org.flowable.form.api.FormRepositoryService |
formRepositoryService |
protected org.flowable.form.api.FormService |
formService |
| Constructor and Description |
|---|
CmmnStartPlanItemInstanceBot(org.flowable.cmmn.api.CmmnRuntimeService cmmnRuntimeService,
org.flowable.cmmn.api.CmmnRepositoryService cmmnRepositoryService,
org.flowable.form.api.FormRepositoryService formRepositoryService,
org.flowable.form.api.FormService formService,
org.flowable.cmmn.engine.CmmnEngineConfiguration cmmnEngineConfiguration) |
| Modifier and Type | Method and 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 link
ActionDefinitions 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.
|
protected org.flowable.cmmn.api.CmmnRuntimeService cmmnRuntimeService
protected org.flowable.cmmn.api.CmmnRepositoryService cmmnRepositoryService
protected org.flowable.form.api.FormRepositoryService formRepositoryService
protected org.flowable.form.api.FormService formService
protected org.flowable.cmmn.engine.CmmnEngineConfiguration cmmnEngineConfiguration
public CmmnStartPlanItemInstanceBot(org.flowable.cmmn.api.CmmnRuntimeService cmmnRuntimeService,
org.flowable.cmmn.api.CmmnRepositoryService cmmnRepositoryService,
org.flowable.form.api.FormRepositoryService formRepositoryService,
org.flowable.form.api.FormService formService,
org.flowable.cmmn.engine.CmmnEngineConfiguration cmmnEngineConfiguration)
public String getKey()
BotServiceActionDefinitions to this bot.getKey in interface BotServicepublic String getName()
BotServicegetName in interface BotServicepublic String getDescription()
BotServicegetDescription in interface BotServicepublic BotActionResult invokeBot(HistoricActionInstance actionInstance, ActionDefinition actionDefinition, Map<String,Object> payload)
BotServiceinvokeBot in interface BotServiceactionInstance - 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 actionCopyright © 2019. All rights reserved.