Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > WinFX General

Vista - Windows Workflow Question

 
 
Old 11-22-2006   #1 (permalink)
jbergmanster@gmail.com


 
 

Windows Workflow Question

I am trying to modify the ordering state machine sdk example. I add a
new event to IOrderService

event EventHandler<OrderEventArgs> OrderStatusChange;

And then to the OrderEventArgs I added another property

public string OrderNextStep


Then, in a state machine I added a new evenDrivenActivity that contains
handleOrderStatusChange with an external event handler. This binds e
the OrderEventArgs parameter to a member variable in the parent
activity, which is a new OrderStateActivity, which is a custom activity
that inherits from StateMachineActivity with only an additional
property for storing the event argument.

After catching the event I have an ifElseActivity that does branching
do different states based on the string value of OrderNextStep which is
supposed to be binded to the OrderStateActivities property.
Unfortunately, in my declarative condition in the ifElseActivity I
can't seem to access the property on the OrderStateActivity. I am
hoping someone can see what I am doing wrong from my description.

Basically, what I am trying to do is to catch an event with a
handleExternalEvent activity and then feed the event to an ifelsebranch
which will setstate based on a string property in the event.


My System SpecsSystem Spec
 

Thread Tools



Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46