Windows Vista Beta | WinVistaBeta.com - Message | Windows Workflow Question

January 05, 2009  
Subject: Windows Workflow Question
Group: microsoft.public.windows.developer.winfx.general
Date: 11/22/2006 10:44:28 AM
From: jbergmanster@gmail.com

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.


Back