current state

Jun 8, 2010 at 6:43 AM

Hi!

How could I get the current state of a state machine inside a workflow?

Thank you

Francesco

Jun 8, 2010 at 10:04 AM

If you mean to update you presentation layer everytime the state change, the best way is to use a durable duplex communication.

http://msdn.microsoft.com/en-us/library/ee358740.aspx

 

Jun 9, 2010 at 8:36 AM

My will is to query a running instance of a workflow an get the name of the current state inside a state machine.

Actually, I'm able to track the current state of a state machine using a Workflow Extension and custom activity, but I would like to know if there is a better way to do it.

Jun 9, 2010 at 9:05 AM

I think that what I really need is tracking, but it seems that it's not supported by this CTP.

I hope a new release will be available soon.

Jun 10, 2010 at 1:29 AM

As a workaround, you could implement a customized Track activity and put it into Entries of states.