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.

Adding an Activity to the Commands Designer

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.

    Hh347458.2e1082d5-c370-4329-b09c-f80c5a5c5980(en-us,office.14).jpg

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.

Creating a Secondary Workflow

To create a workflow that executes when the command is recognized, drag and drop activities onto the designer pane where Drop Activities Here appears.

Debug the Application

To build and debug the application

  1. Create a debugging environment. For information about creating a debugging environment, see Provision and Deploy a UCMA Workflow Application.

  2. Debug the application. For information about debugging applications, see Walkthrough: Debugging a Communications Workflow Application.

See Also

Concepts

Walkthrough: Add Commands to a Workflow