Instructor-led training
Windows Workflow Foundation Using C# Training in Troy, Ohio
Microsoftâ??s Windows Workflow Foundation (WF) provides a framework for creating scalable applications consisting of independent program units called activities.
What you'll learn
Private Training for Teams
This course is offered as private, instructor-led training for organizations, onsite in Troy, Ohio or live online. Dates, delivery format, and course content are arranged around your team's requirements.
This course is not currently scheduled as a public class for individual enrollment.
Request Group TrainingPrerequisites
Course Outline
What makes Workflow Foundation hard to master
The C# is rarely the obstacle. The difficulty is that a workflow is a tree of activities that a runtime schedules, pauses, saves and resumes, so you give up the linear control that ordinary code offers. The syllabus builds the model in layers.
- Activities and data flow first. Sequence, Assign, and variables, arguments and expressions come before anything else. Scoping errors with variables and arguments are the most common early mistake, because values move between activities through declared arguments, not through shared fields.
- Authoring in the designer versus in code. The course shows workflows in XAML and in code, plus the primitive and control flow activities (If, While, DoWhile, Switch, Parallel, Delay, InvokeMethod). A frequent misconception is that Parallel runs activities on separate threads. The "Threading Issues" topic in the state machine module is there to correct this.
- Custom activities. The syllabus moves from CodeActivity to composing activities, then to NativeActivity, bookmarks and Pick. Learners need to know when a simple CodeActivity is enough and when an activity must wait for outside input.
- Hosting. WorkflowInvoker and WorkflowApplication behave differently. WorkflowApplication delegates, cancel, abort and terminate are separate operations, and hosting in a Windows application differs from hosting in ASP.NET.
- Persistence. Long-lived workflows, the SQL Server persistence store, PersistableIdle, and unloading and loading are tied to bookmarks. A workflow that works in a single run can fail once it is unloaded and reloaded.
- Failure handling. The final module separates exceptions in the host from exceptions in the workflow, then adds transactions and compensation. Compensation does not behave like a database rollback.
Who it suits and what to take around it
The course is introductory to Workflow Foundation itself, but it assumes working C# and .NET Framework experience and familiarity with Visual Studio. It suits developers who build or maintain workflow-driven line-of-business applications, and teams that need to support existing systems built on this framework. Training managers can use the syllabus as a checklist of the skills that work requires: hosting, persistence, custom activities and workflow services.
If your team's C# is rusty or self-taught, C# and .NET Essentials covers the language groundwork the prerequisites assume. .NET Framework Using C# is a natural step for developers who know the language but not the framework libraries the hosting and persistence modules rely on. Other options are listed in the .NET courses and learning guide.
Illustrative scenarios
The scenarios below are illustrations of how the course material can be applied. They are not descriptions of specific organizations or of the course's lab exercises.
- Multi-step approval process. A team might model a document approval as a workflow that waits days for a reviewer. Bookmarks and Pick handle the wait, and the SQL Server persistence store with unloading and loading keeps the instance alive across host restarts.
- Batch processing with reusable steps. For example, a developer could wrap a validation routine in a CodeActivity, compose it with other activities, and run it over a list with ForEach or ParallelForEach. Variables, arguments and the Parallel activity decide how the data moves.
- Exposing a process as a service. A team might publish a workflow through messaging activities as a service with multiple operations, call another service from inside it, and add transactions and compensation so that a failed late step undoes earlier ones. Address, binding and contract apply here.
AI coding assistants and Workflow Foundation
AI coding assistants can draft a CodeActivity, an expression, or the host code that starts a workflow. They are less reliable for the runtime behavior that makes up most of this syllabus.
- Mixed generations. Examples from the older Workflow Foundation 3 model and the later versions look similar. Generated code may use classes, designer conventions or hosting patterns that do not match the target, and some of those APIs may not exist. Compile against the exact framework you use.
- Bookmarks and persistence. Generated code often ignores what happens when a workflow goes idle, is persisted, and resumes. Test unload and reload explicitly, and check that instance identification is stored.
- Threading and async. Assistants tend to assume Parallel or AsyncActivity gives true concurrency or safe shared state. Review generated code for blocking calls and for thread safety.
- Error handling. Generated try/catch logic frequently confuses host-side and workflow-side exceptions, and rarely produces correct compensation. Force a failure at each step and confirm the result.
The practical check is to run the workflow, step through it with breakpoints in activities, and write tests that cover cancel, abort, terminate and resume. These are the same host operations the course teaches.
Frequently asked questions
What level is this course?
It is introductory to Workflow Foundation, but it expects existing C# and .NET Framework experience. It spans activities, hosting, persistence and workflow services over four days.
What should students know beforehand?
Programming experience in C# and the .NET Framework, and familiarity with Visual Studio. No prior workflow experience is assumed.
What does the syllabus cover?
It covers workflow concepts, the designer and XAML, primitive and control flow activities, custom activities, hosting, collection and parallel activities, bookmarks, flowcharts and state machines, persistence, workflow services, and debugging with error handling, transactions and compensation.
Can the course be delivered privately for our team?
Yes. HSG delivers private training onsite at your location or live online, and the content can be customized to your team's needs and technology versions.
Can the content be adapted to the versions we use?
Private training can be tailored to the versions an organization uses. Request a training proposal to discuss your environment.Training locations
Windows Workflow Foundation Using C# training across the U.S. and beyond.
We provide private Windows Workflow Foundation Using C# training for organizations, onsite at your location or live online, throughout the United States and internationally.
View all Windows Workflow Foundation Using C# training locations
Train your team with HSG
Private, instructor-led training customized for your organization.
- Onsite or live online delivery
- Customized curriculum
- For a single employee or an entire team
- Flexible scheduling
- Experienced instructors
Questions? Call us at 303.377.6176
or email info@hartmannsoftware.com
Ready to train your team?
Let's customize this training for your organization.
Tell us about your employees, your goals, and your preferred schedule. We'll prepare a training proposal covering scope, delivery format, and pricing.