Step 2: Construct a Workflow in the CommandsActivity
This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.
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) Microsoft Unified Communications Managed API application using Microsoft Visual Studio 2008 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 Establish Accounts on Office Communications Server.
Debug the application. For information about debugging applications, see Walkthrough: Debugging a Communications Workflow Application.