Chapter 4. Advanced Activity Execution


In the previous chapter, we learned about the basic lifecycle of an activity, which involves the Initialized, Executing, and Closed states of the activity automaton. We also explored the ramifications of the fact that the logical lifetime of activities differs from the lifetimes of CLR objects that transiently represent activities during those times that a WF program instance is not passivated. We developed several useful activities, including a few composite activities, and illustrated the central role of the ActivityExecutionContext as a facilitator of activity execution.

In this chapter, we will give more scrutiny to ActivityExecutionContext and introduce its vital role as a state boundary in WF programs. This will allow us to develop various iterative composite activities and other interesting control flow constructs. We will also learn about the other states of the activity automaton, and discuss activity cancellation, fault handling, and compensation.




Essential Windows Workflow Foundation
Essential Windows Workflow Foundation
ISBN: 0321399838
EAN: 2147483647
Year: 2006
Pages: 97

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net