posted on Thursday, August 24, 2006 7:21 AM by BayerWhite

Finding Possible State Events

If you look in the latest Framework 3.0 SDK, there is an example called 'OrderingStateMachine'. It does a great job of showing how to get possible state events within a current state, by loading a ReadOnlyCollection, type 'WorkflowQueueInfo' with Queued Data and then looping through the collection to pull out the queued method names.

I was talking with Jon Flanders, and we got on this subject awhile back about looping through the actual activity collections, and therefore I wanted to post how to do that to also get possible state events from a current state. Although looping through the activity collection takes some extra work, there is additional information available via the activities properties by doing this.

Comments