Step 2: Construct a Workflow in the CommandsActivity
This is the last of two topics describing the steps to create the Add Commands to a Workflow walkthrough application. This sequence of topics demonstrates how to add command activities to a speech and an instant messaging (IM) Unified Communications Managed API application using Microsoft Visual Studio development system. The procedures for creating the walkthrough application build sequentially. Completing the procedures in sequence is important.
To add a SpeechHelpCommandActivity to the workflow
Drag and drop a SpeechHelpCommand activity onto the upper pane in commandsActivity1 where Drop a Command here appears. This drag-and-drop operation situates the SpeechHelpCommandActivity activity within the scope of communicationsSequenceActivity1. The steps for adding a command activity in an IM scenario are identical.
To specify user inputs to the SpeechHelpCommandActivity
The SpeechHelpCommandActivity activity added in the previous procedure must recognize a user request for help. Specify user inputs for the SpeechHelpCommandActivity.ExpectedSpeechInputs property so that it recognizes three words: help, assistance, and support. For more information, see Authoring Grammars.
To build and debug the application
Create a debugging environment. For information about creating a debugging environment, see Provision and Deploy a UCMA Workflow Application.
Debug the application. For information about debugging applications, see Walkthrough: Debugging a Communications Workflow Application.