Using the StateFinalization Activity

The StateFinalization activity is a mirror image of the StateInitialization activity and is used in a similar way. Where the StateInitialization activity is executed when the state itself begins execution, StateFinalization executes just prior to transitioning out of the state. Like StateInitialization, the StateFinalization activity is based on the Sequence activity. StateFinalization also limits the types of activities it can contain—IEventActivity activities are disallowed, as are State and SetState.

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.