Package com.flowable.action.api.bot
Class BaseBotActionResult
java.lang.Object
com.flowable.action.api.bot.BaseBotActionResult
- All Implemented Interfaces:
BotActionResult
- Direct Known Subclasses:
BpmnTestActionBot.TestBotActionResult
public class BaseBotActionResult extends java.lang.Object implements BotActionResult
A base implementation for
BotActionResult
.- Author:
- Filip Hrisafov
-
Field Summary
Fields Modifier and Type Field Description protected Intent
intent
protected java.util.Map<java.lang.String,java.lang.Object>
payload
protected com.fasterxml.jackson.databind.JsonNode
payloadNode
-
Constructor Summary
Constructors Constructor Description BaseBotActionResult()
BaseBotActionResult(com.fasterxml.jackson.databind.JsonNode payloadNode, Intent intent)
BaseBotActionResult(java.util.Map<java.lang.String,java.lang.Object> payload)
Deprecated.useBaseBotActionResult(JsonNode, Intent)
withIntent.NOOP
as an intentBaseBotActionResult(java.util.Map<java.lang.String,java.lang.Object> payload, Intent intent)
Deprecated. -
Method Summary
Modifier and Type Method Description Intent
getIntent()
Action to perform in the user interface right after executing the bot action.java.util.Map<java.lang.String,java.lang.Object>
getPayload()
Deprecated.com.fasterxml.jackson.databind.JsonNode
getPayloadNode()
The information from invoking the action.
-
Field Details
-
payload
protected java.util.Map<java.lang.String,java.lang.Object> payload -
payloadNode
protected com.fasterxml.jackson.databind.JsonNode payloadNode -
intent
-
-
Constructor Details
-
BaseBotActionResult
public BaseBotActionResult() -
BaseBotActionResult
@Deprecated public BaseBotActionResult(java.util.Map<java.lang.String,java.lang.Object> payload)Deprecated.useBaseBotActionResult(JsonNode, Intent)
withIntent.NOOP
as an intent -
BaseBotActionResult
@Deprecated public BaseBotActionResult(java.util.Map<java.lang.String,java.lang.Object> payload, Intent intent)Deprecated. -
BaseBotActionResult
-
-
Method Details
-
getPayload
@Deprecated public java.util.Map<java.lang.String,java.lang.Object> getPayload()Deprecated.Description copied from interface:BotActionResult
The information from invoking the action.- Specified by:
getPayload
in interfaceBotActionResult
- Returns:
- the information that should be displayed to the user
-
getPayloadNode
public com.fasterxml.jackson.databind.JsonNode getPayloadNode()Description copied from interface:BotActionResult
The information from invoking the action.- Specified by:
getPayloadNode
in interfaceBotActionResult
- Returns:
- the information that should be displayed to the user
-
getIntent
Description copied from interface:BotActionResult
Action to perform in the user interface right after executing the bot action.- Specified by:
getIntent
in interfaceBotActionResult
- Returns:
- UI action to perform in the frontend
-