Class AbstractStartWorkInstanceBot
java.lang.Object
com.flowable.platform.service.bot.AbstractStartWorkInstanceBot
- All Implemented Interfaces:
BotService
,ContextAwareBotService
- Direct Known Subclasses:
BpmnStartProcessInstanceBot
,CmmnStartCaseInstanceBot
An abstract bot implementation to start a process or case instance and supporting some functions around it.
- Author:
- Micha Kiener
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
protected final PlatformContentItemService
protected final CoreContentService
protected final com.fasterxml.jackson.databind.ObjectMapper
protected final PlatformRestVariableTransformer
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractStartWorkInstanceBot
(com.fasterxml.jackson.databind.ObjectMapper objectMapper, ObjectProvider<PlatformContentItemService> contentItemServiceProvider, PlatformRestVariableTransformer variableTransformer, ObjectProvider<CoreContentService> contentServiceProvider) -
Method Summary
Modifier and TypeMethodDescriptionprotected BotActionResult
createActionResult
(String newInstanceId) protected BotActionResult
createActionResult
(String newInstanceId, Intent intent) createTransientVariables
(HistoricActionInstance actionInstance, ActionDefinition actionDefinition) protected String
getAndRemoveOutcomeFromPayload
(Map<String, Object> payload) protected String
getWorkDefinitionKey
(ActionDefinition actionDefinition) protected void
transformVariables
(Map<String, Object> variables) 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
getDescription, getKey, getName
Methods inherited from interface com.flowable.action.api.bot.ContextAwareBotService
invokeBot, invokeBot
-
Field Details
-
ACTION_CONFIG_MODEL_CONFIG_INCLUDE_VARIABLES_IN_RESPONSE
- See Also:
-
ACTION_INSTANCE_ID_VAR_NAME
- See Also:
-
ACTION_DEFINITION_ID_VAR_NAME
- See Also:
-
ACTION_SCOPE_ID_VAR_NAME
- See Also:
-
ACTION_SCOPE_TYPE_VAR_NAME
- See Also:
-
objectMapper
protected final com.fasterxml.jackson.databind.ObjectMapper objectMapper -
contentItemService
-
variableTransformer
-
contentService
-
-
Constructor Details
-
AbstractStartWorkInstanceBot
protected AbstractStartWorkInstanceBot(com.fasterxml.jackson.databind.ObjectMapper objectMapper, ObjectProvider<PlatformContentItemService> contentItemServiceProvider, PlatformRestVariableTransformer variableTransformer, ObjectProvider<CoreContentService> contentServiceProvider)
-
-
Method Details
-
getWorkDefinitionKey
-
getAndRemoveOutcomeFromPayload
-
createTransientVariables
protected Map<String,Object> createTransientVariables(HistoricActionInstance actionInstance, ActionDefinition actionDefinition) -
createActionResult
-
createActionResult
-
transformVariables
-