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 Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected final PlatformContentItemServiceprotected final CoreContentServiceprotected final com.fasterxml.jackson.databind.ObjectMapperprotected final PlatformRestVariableTransformer -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractStartWorkInstanceBot(com.fasterxml.jackson.databind.ObjectMapper objectMapper, ObjectProvider<PlatformContentItemService> contentItemServiceProvider, PlatformRestVariableTransformer variableTransformer, ObjectProvider<CoreContentService> contentServiceProvider) -
Method Summary
Modifier and TypeMethodDescriptionprotected BotActionResultcreateActionResult(String newInstanceId) protected BotActionResultcreateActionResult(String newInstanceId, Intent intent) createTransientVariables(HistoricActionInstance actionInstance, ActionDefinition actionDefinition) protected StringgetAndRemoveOutcomeFromPayload(Map<String, Object> payload) protected StringgetWorkDefinitionKey(ActionDefinition actionDefinition) protected voidtransformVariables(Map<String, Object> variables) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.flowable.action.api.bot.BotService
getDescription, getKey, getNameMethods 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
-