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

[718 byte] By [MORRTI] at [2007-12-21]
# 1

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.

TomLake at 2007-9-10 > top of Msdn Tech,Software Development for Windows Vista,Windows Workflow Foundation...
# 2

Many thanx, unzipping as we type.

Tim.

MORRTI at 2007-9-10 > top of Msdn Tech,Software Development for Windows Vista,Windows Workflow Foundation...
# 3
WF virgin unzipping as we type? never knew coding was this fun ;-)
Wheat at 2007-9-10 > top of Msdn Tech,Software Development for Windows Vista,Windows Workflow Foundation...
# 4
DotNetRocks TV also has some recent episodes focusing on WF that were very helpful to me.

See www.dnrtv.com for more info.

KenByrd at 2007-9-10 > top of Msdn Tech,Software Development for Windows Vista,Windows Workflow Foundation...
# 5

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,


MORRTI at 2007-9-10 > top of Msdn Tech,Software Development for Windows Vista,Windows Workflow Foundation...
# 6

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

SergeLuca at 2007-9-10 > top of Msdn Tech,Software Development for Windows Vista,Windows Workflow Foundation...
# 7

Thanks Serge.

Now we're flying !

Hope this will be of help to any other virgins out there !

Tim

MORRTI at 2007-9-10 > top of Msdn Tech,Software Development for Windows Vista,Windows Workflow Foundation...

Software Development for Windows Vista

Site Classified