How can I get started with using WF 4.0 in typical web site scenarios?
I have developed for SharePo开发者_如何学Cint and in those cases it is clear how workflow can help (You have documents that needs approval and there are built in SharePoint workflows for this)
But now I am doing standard ASP.NET web CRUD apps with WCF. I would like to find a way to get WF 4.0 involved but I am not sure how to do it and never see any examples.
Can anyone give me some basic scenarios that I could use WF for?
You don't want to use WF for a web site in most of the cases. A monolithic web app is a lot faster to develop and performs better. WF is useful if your app becomes very complex, you have many many developers. Than you can move to a an WF to manage complexity and enable multiple teams to work simultaneously. You put your business logic that changes most often in workflows them self and build stable services that the workflows calls.
BTW you've put WCF tag instead of WF.
For some videos of how you can use workflow in sharepoint see: http://www.sheltonblog.com/archive/2007/11/04/series-of-sharepoint-workflow-how-to-videos.aspx
Note: Workflow in sharepoint 2007 and 2010 is based on .net 3.5
EDIT
A good place to start is here: http://msdn.microsoft.com/en-us/netframework/aa663328.aspx
精彩评论