Bot framework v4.0 how to execute the previous waterfall step in a dialog

后端 未结 3 1283
太阳男子
太阳男子 2020-12-11 02:31

I\'m trying to create a dialog in which I define multiple waterfall steps. In the context of this dialog, I need sometimes to go back to the previous waterfall step accordin

3条回答
  •  佛祖请我去吃肉
    2020-12-11 02:46

    I'm not sure, if it's the right and efficient way to do it, but you can experiment with the State property of the context.ActiveDialog within your Task function.

    context.ActiveDialog.State["stepIndex"] = (int)context.ActiveDialog.State["stepIndex"] -2;
    

提交回复
热议问题