public StoryDataStep<T extends StoryHandlerDefinition,D> extends StoryStep<T>
A step that can have specific preconditions and can use input data object in handler.
@NotNull kotlin.jvm.functions.Function1<T,java.lang.Object> answer()
The custom answer for this step. When returning a null value, it means that the step is not able to answer to the current request.
Default implementation returns null.
@NotNull kotlin.jvm.functions.Function1<ai.tock.bot.engine.BotBus,D> checkPreconditions()
Checks preconditions - if BotBus.end is called,
StoryHandlerDefinition.handle is not called and the handling of bot answer is over.
BotBus.end,
StoryHandlerDefinition.handle@NotNull kotlin.jvm.functions.Function2<T,D,java.lang.Object> handler()
The custom handler for this step. When returning a null value, it means that the step is not able to answer to the current request.
Default implementation returns null.