Saturday, April 10, 2010 11:40 PM
Here is my dilema:
I am working on a UCMA app in VS2008 and it runs fine when I do basic things. So I have a workflow that has a speech activity that says hello world.
I then add a Question Answer activity and it also works fine but when I try to call the QuestionAnswer activity in the code activity, it does not recognize it. All I am trying to do is build a simple UCMA workflow that accepts digits and reads them back to the caller. Basically, I want the user to be able to enter digits between 1 and 7 digits. So if the user enters 419766, I want the statement activity to respond back with "You pushed FOUR, ONE, NINE, SEVEN, SIX, SIX. Thanks!"
Here is my code. What I am I doing wrong or what am I missing???
Private Sub codeActivity1_ExecuteCode(ByVal sender As System.Object, ByVal e As System.EventArgs) Dim response As String = Me.speechQuestionAnswerActivity1.RecognitionResult.Text Dim sb As New StringBuilder sb.Append("You pushed ") sb.Append(response) Me.speechStatementActivity1.MainPrompt.SetText(sb.ToString()) End Sub