Windows Workflow Foundation 3
WF Virgin
Dear One & All, As my subject says, I'm a WF Virgin. Having read many an article on the principles of WF, I'm keen to start developing with it. Can anyone point me in the direction of some good simple examples of using WF in dotNet2, preferably in VB.NET. I’ve downloaded quite a few, but most either seem to be for Beta1, or I’m missing the odd reference here and there. Many Thanx in advance, Tim
Take a look at the sample in Samples.zip which can be found under %ProgramFiles%\Microsoft SDKs\Windows Workflow Foundation\, if you have the VS Extensions for Windows Workflow Foundation installed. Most of the samples in the Technologies directory have a VB and C# version.
In the workflow designer, select the "ifNeedsleadApproval" activity;In the property page , click on "Condition", select "code condition", select"DetermineApprovalContact".In the code, remove "Handles ifElseLogicStatement.Condition".Run the application Hope this helps Serge Luca Guidance, Belgium blog: www.redwood.be
Take a look at the sample in Samples.zip which can be found under %ProgramFiles%\Microsoft SDKs\Windows Workflow Foundation\, if you have the VS Extensions for Windows Workflow Foundation installed. Most of the samples in the Technologies directory have a VB and C# version.
Many thanx, unzipping as we type. Tim.
WF virgin unzipping as we type? never knew coding was this fun ;-)
DotNetRocks TV also has some recent episodes focusing on WF that were very helpful to me.See www.dnrtv.com for more info.
Hi, All zipped up again. I've got a problem with trying out their first soln (from the microsoft site) After entering in their code and/or copying in their examples, when I try to build the app # the very end, I'm getting the following error with this bit of code. ERROR: (The error refers to the bit of code in red). Error 2 Handles clause requires a WithEvents variable defined in the containing type or one of its base types. C:\SimpleExpenseReport\VB\SimpleExpenseReport\SimpleExpenseReport.vb 138 60 SimpleExpenseReport CODE: Private Sub DetermineApprovalContact(ByVal sender As Object, _ ByVal e As ConditionalEventArgs) Handles ifElseLogicStatement.condition If Me._amount < 1000 Then e.Result = True Else e.Result = False End If End Sub Has anyone else experienced this problem ? if so what's the soultion ? Thanx,
In the workflow designer, select the "ifNeedsleadApproval" activity;In the property page , click on "Condition", select "code condition", select"DetermineApprovalContact".In the code, remove "Handles ifElseLogicStatement.Condition".Run the application Hope this helps Serge Luca Guidance, Belgium blog: www.redwood.be
Thanks Serge. Now we're flying ! Hope this will be of help to any other virgins out there ! Tim
Related Links
How can I designate string[] field as returnValue for ReceiveActivity?
is the "workflows in memory" performance counter failing to be reset?
Creating a workflow dynamically
writing non-persistance data to Oracle from a workflow app
Is Workflow Foundation a good fit for multiple workflow processes
The workflow failed validation
Can SQL compact edition be used for persistence and tracking storage?
Invoking multiple web service using InvokeWebServiceActivity combined with transaction
Workflow, HandleExternalEvent and WCF
XOML Only - How to change an integer in the argument dictionary
WorkflowTheme Exception
Pass in parameters to declarative workflow
WorkflowOutline
Workflow Correlation
How do I get the singleton instance of an "InstanceContextMode.Single" from wcf plumbing?
Correlation in a state machine workflow, where each state handles N distinct events?