BotFramework避免在FormFlow中确认

时间:2016-08-08 13:31:31

标签: botframework formflow

我想绕过像这样定义的表单流中的最后一个确认步骤

new FormBuilder<WizardResult>()
                .Confirm("No verification will be shown", state => false)
                .Message("Form Test")
                .OnCompletion(processOrder)
                .Build();

根据这个post,这可以通过确认中的处理程序完成,但在我的情况下仍然会询问确认...

我错过了什么?

1 个答案:

答案 0 :(得分:4)

版本3.3.1.0你只需要调用

}

void prnTitle(void)
{
printf("Row |SKU| Name \t | Price |Taxed| Qty | Min |  Total  |Atn \n");
printf("----+---+--------------------+--------+-----+-----+-----+------------+|---\n");

}
void prnFooter(double gTotal)
{
printf("--------------------------------------------------------+-----------------\n");
//float  gTotal = 1234.57;
if (gTotal > 0)
{
    printf("%12.21f", gTotal);
}
else 
{
    printf("");
}

}
void clrKyb(void)
{
char b;
while (b != '\n')
{
    scanf("%c", &b);
}

}
void pause(void)
{
printf("Press <Enter> to continue...");

clrKyb();

}
int getInt(void)
{
//printf("Enter an interger:");
int d;
char c;
scanf("%d%c", &d, &c);
while (c != '\n')
    {
        printf("Invalid integer, please try again");
        scanf("%d%c", &d, &c);
    }


    return d;
}


int getIntLimited(int lowerLimit, int upperLimit)
{
int a;
//printf("Enter an integer between %d and %d:", lowerLimit, upperLimit);
scanf("%d", &a);
while (a <= lowerLimit || a >= upperLimit)
{
    //  printf("Invalid value, %d < value < %d:", lowerLimit, upperLimit);
    scanf("%d", &a);
}
return a;
}
double getDbl(void)
{
double d;
char c;
//  printf("Enter a floating point number:");
scanf("%lf,%c", &d, &c);
while (c != '\n')
{

    printf("Invalid number, please try again ");
    scanf("%lf,%c", &d, &c);
}
return d;
}

double getDblLimited(double lowerLimit, double upperLimit)
{
double a;
printf("Enter a floating point number between %f and %f:", lowerLimit, upperLimit);
scanf("%lf", &a);
while (a <= lowerLimit || a >= upperLimit)
{
    printf("Invalid value, %f < value < %f:", lowerLimit, upperLimit);
    scanf("%lf", &a);

}
return a;
return 0;
}

在FormBuilder中避免确认。 state =&gt;不再需要false。