6.5. Hello WF4
In this section, we will write a simple workflow that will handle a booking for a movie theater. Our example workflow will do the following:
Process a booking for a specific film.
Check if seating is available for the requested showing. In our example, to keep everything simple, if less than five tickets are requested, then the booking will succeed.
Return a Boolean value indicating whether the booking was successful and a hard-coded alphanumeric ticket reference (blank if unsuccessful).
WF4 is a radical change, so even if you are an experienced WF developer, please take the time to work your way through this example, as the designer has changed completely and a number of new concepts have been introduced.
Open Visual Studio and ...
Get Introducing .NET 4.0: with Visual Studio 2010 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.