Author Message
RicardoSosa
Joined: Dec 1, 2011
Messages: 43
Offline
Hello,

I have a menu with 3 choices and a grammar added to every choice, so that I can say o press a number (one, two, three).

I want to count NoInput and NoMatch events together so I throw an event defined by me in the NoInput and the same event in NoMatch, at the end of the menu, I catch the new event and add a goto with the threshold.

It is working ok, but the NoInputCount and NoMatchCount have strange values. Together they add more than the threshold defined.

Does anyone know why is this happening? Is there any other way to count NoInput and NoMatch together that does not mess with the counters?

Thank you.

Ricardo.
WilsonYu
Joined: Nov 6, 2013
Messages: 3950
Offline
Can you elaborate on that? There should be separate counters for NoMatch and NoInput. So you find that the the custom event threshold and the total of NoMatch and NoInput don't match?
RicardoSosa
Joined: Dec 1, 2011
Messages: 43
Offline
Sure,

I know there are separate counters for NoInput and NoMatch, but the customer wants to count attempts (meaning NoInput and NoMatch together).

I am defining a new event: noinputnomatch

On the menu I have:
- Prompt
- Choices
- No Input
- - throw <event = "noinputnomatch", threshold = "0">
- No Match
- - throw <event = "noinputnomatch", threshold = "0">
- Catch <event = "noinputnomatch">
- - Goto <form="nextNode", threshold = "3">

This way, I have only 3 attempts. It works ok.

My problem now is that I need to save the number of attempts, but the counters noinputcount and nomatchcount, have wrong values.

I know I can use an external counter and not use the threshold, but this way I also have to control the prompt. So, I am asking why are the counters with wrong values and if there is another way either to have the right value for the counters or to control number of attempts (noinput and nomatch) together.

Thank you.
WilsonYu
Joined: Nov 6, 2013
Messages: 3950
Offline
Looks like each of the noinputcounter and nomatchcounter are double counted. If you minus 3 from each one, the numbers should come up right. It maybe a bug or not been tested in your use case.
RicardoSosa
Joined: Dec 1, 2011
Messages: 43
Offline
Hello Wilson,

I have made some new tests:
<table border=1 >
<tr>
<td colspan=3>real</td>
<td colspan=3>counted</td>
</tr>
<tr>
<td>no input</td>
<td>no match</td>
<td>total</td>
<td>no input</td>
<td>no match</td>
<td>total</td>
</tr>
<tr>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
</tr>
<tr>
<td>1</td>
<td>0</td>
<td>1</td>
<td>2</td>
<td>1</td>
<td>3</td>
</tr>
<tr>
<td>2</td>
<td>0</td>
<td>2</td>
<td>4</td>
<td>2</td>
<td>6</td>
</tr>
<tr>
<td>3</td>
<td>0</td>
<td>3</td>
<td>6</td>
<td>3</td>
<td>9</td>
</tr>
<tr>
<td>0</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>2</td>
<td>3</td>
</tr>
<tr>
<td>1</td>
<td>1</td>
<td>2</td>
<td>3</td>
<td>3</td>
<td>6</td>
</tr>
<tr>
<td>2</td>
<td>1</td>
<td>3</td>
<td>5</td>
<td>4</td>
<td>9</td>
</tr>
<tr>
<td>0</td>
<td>2</td>
<td>2</td>
<td>2</td>
<td>4</td>
<td>6</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
<td>5</td>
<td>9</td>
</tr>
<tr>
<td>0</td>
<td>3</td>
<td>3</td>
<td>3</td>
<td>6</td>
<td>9</td>
</tr>
</table>

Edit: I am trying to add a table, is there anyway to present a table here?

It looks like every event is counted one in the event not thrown and one more in the event actually thrown. So, for the totals, I will have to divide between 3.

Just posted it to share the information, in case someone else need this.

Regards.
Go to:   
Mobile view