tock / ai.tock.bot.definition / StoryDataStepBase / checkPreconditions

checkPreconditions

fun checkPreconditions(): T.(TD?) -> D? (source)

Checks preconditions - if BotBus.end is called, StoryHandlerDefinition.handle is not called and the handling of bot answer is over. Returned data is used in subsequent call of handler if not null