Exercise 2: Create the Simple Order Form Application
In this exercise, you define an interface that is used to enable communication between the state machine workflow and the Simple Order Form application.
The OrderProcessingWorkflow state machine contains three states:
The WaitingForOrder state is the workflow's InitialStateName property value. It is entered when the host application raises a predefined event. In this project, the event signifies a new order submission.
The OrderProcessing state simulates the processing of an order by sending a status message back to the host application.
The OrderCompleted state is the final state.
In This Section
- Task 1: Create the Simple Order Form Workflow
Shows how to create a Simple Order Form workflow.
- Task 2: Define the IOrderingService Interface
Shows how to define the IOrderingService interface.
- Task 3: Implement the IOrderingService Interface
Shows how to implement the IOrderingService interface.
- Task 4: Define the WaitingForOrder State
Shows how to define the WaitingForOrder state.
- Task 5: Define the OrderProcessing State
Shows how to define the OrderProcessing state.
See Also
Reference
StateMachineWorkflowActivity
InitialStateName
CompletedStateName
CanModifyActivities
Concepts
Other Resources
Tutorial: Create a State Machine Workflow
Ordering State Machine
Simple State Machine
Copyright © 2007 by Microsoft Corporation. All rights reserved.
Last Published: 2010-03-04