Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > WinFX General

Windows Workflow Question

Update your Vista Drivers Update Your Drivers Now!!
 
 
Thread Tools Display Modes
Old 11-22-2006   #1 (permalink)
jbergmanster@gmail.com
Guest


 

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
Display Modes


Update your Vista Drivers Update Your Drivers Now!!



Vistax64.com 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 2005-2008