Using the State Activity

Perhaps not too surprisingly, the State activity models a state in your state-based workflow. It’s a composite activity, but it’s limited to accepting only certain types of activities as children: the EventDriven activity, the StateInitialization activity, the StateFinalization activity, and other State activities. The EventDriven activity waits for the events that will cause a transition to another state, while StateInitialization and StateFinalization are activities guaranteed to execute when a state is transitioned into and out of, respectively. It might seem odd to be able to drop a secondary State activity into an existing State activity, but the intent is to provide the capability for embedding child state machines ...

Get Microsoft® Windows® Workflow Foundation Step by Step now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.