Upload
winifred-mckenzie
View
214
Download
0
Embed Size (px)
Citation preview
The Total Noob’s Guide Windows Workflow Foundation 4 Ron JacobsTechnical EvangelistMicrosoft Corporationhttp://blogs.msdn.com/rjacobs
SESSION CODE: DEV207
Prepare To Shed Your Noob
Hello Workflow
Code Activities
Dynamic Activities
Workflow Application
Control Flow
Robustness
Activity Designers
Hosted Designer
Get Ready to Say Helloprivate static void SayHello(){ Console.WriteLine("Hello Workflow 4");}
What have we learned?A workflow is a group of activitiesWorkflows can be invoked by WorkflowInvokerExpressions are written in Visual BasicWorkflows appear as .NET objects to other parts of your code
Refactoring tools are not supported with XAMLBackground compile does not work with XAML
Workflows are usually defined in XAMLXAML is stored in the assembly by default
Prepare To Shed Your Noob
Hello Workflow
Code Activities
Dynamic Activities
Workflow Application
Control Flow
Robustness
Activity Designers
Hosted Designer
What have we learned?CodeActivity allows you to write the code to executeAsyncCodeActivity allows you to do async work safelyActivities use In/Out/InOutArgument<T> to pass dataActivities use Variable<T> to store dataYou must always access data from the contextAsync/CodeActivity<T> declares an OutArgument <T> named resultOverride CacheMetadata for better performanceOverride CacheMetadata to validate your custom activity
Prepare To Shed Your Noob
Hello Workflow
Code Activities
Dynamic Activities
Workflow Application
Control Flow
Robustness
Activity Designers
Hosted Designer
What have we learned?You can store/load workflows in XAML text streamsYou don’t have to write XAMLSomeday you will have to correct XAML manually
Prepare To Shed Your Noob
Hello Workflow
Code Activities
Dynamic Activities
Workflow Application
Control Flow
Robustness
Activity Designers
Hosted Designer
What have we learned?WorkflowApplication runs a single workflow instanceUsing WorkflowApplication you can perform the following tasks:
Create a new workflow instance, or load a workflow instance from an instance store.Provide extensions to be used by activities within a workflow instance.Control the execution of a workflow instance.Resume a bookmark created by an activity within a workflow instance.Persist or unload a workflow instance.Be notified of workflow instance lifecycle events.
Prepare To Shed Your Noob
Hello Workflow
Code Activities
Dynamic Activities
Workflow Application
Control Flow
Robustness
Activity Designers
Hosted Designer
What have we learned?You can control flowFlowChartStateMachine
Prepare To Shed Your Noob
Hello Workflow
Code Activities
Dynamic Activities
Workflow Application
Control Flow
Robustness
Activity Designers
Hosted Designer
What have we learned?TryCatch (but not Finally )TransactionsCancellationCompensation
Prepare To Shed Your Noob
Hello Workflow
Code Activities
Dynamic Activities
Workflow Application
Control Flow
Robustness
Activity Designers
Hosted Designer
What have we learned?WorkflowItemPresenterWorkflowItemsPresenterSimple DesignerComposite Designer with Collapse
Prepare To Shed Your Noob
Hello Workflow
Code Activities
Dynamic Activities
Workflow Application
Control Flow
Robustness
Activity Designers
Hosted Designer
What have we learned?You can host the designerYou can control the design experience
Related ContentASI201 | Intro to Workflow Services and Windows Server AppFabricASI203 | Understanding the Microsoft Application Server: AppFabric, WF, WCF, and MoreASI303 | Building Activities to Leverage the Power of Windows Workflow in Microsoft .NET Framework 4ASI02-INT | Real-World Microsoft .NET Framework 4: How ADERANT Expert Leverages WF 4, WCF 4 and Windows Server AppFabric
Track ResourcesVisual Studio – http://www.microsoft.com/visualstudio/en-us/Soma’s Blog – http://blogs.msdn.com/b/somasegar/ MSDN Data Developer Center – http://msdn.com/data ADO.NET Team Blog – http://blogs.msdn.com/adonet WCF Data Services Team Blog – http://blogs.msdn.com/astoriateam EF Design Blog – http://blogs.msdn.com/efdesign
Resources
www.microsoft.com/teched
Sessions On-Demand & Community Microsoft Certification & Training Resources
Resources for IT Professionals Resources for Developers
www.microsoft.com/learning
http://microsoft.com/technet http://microsoft.com/msdn
Learning
Complete an evaluation on CommNet and enter to win!
Sign up for Tech·Ed 2011 and save $500 starting June 8 – June 31st
http://northamerica.msteched.com/registration
You can also register at the
North America 2011 kiosk located at registrationJoin us in Atlanta next year
© 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to
be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
JUNE 7-10, 2010 | NEW ORLEANS, LA