WF - Share Transition across all States

295 views Asked by At

Does Windows Workflow Foundation 4.0+ and more specifically its State Machine workflow have the concept of shared events/transitions across all states within a workflow? Also known as a Hierarchical State Machine.

This was possible in WF 3.5 as proven here, if you scroll to the bottom.

I really can't find anyway to implement this kind of behavior, and I'm looking to upgrade an exiting WF 3.5 system.

I found a similar question here although its got a larger scope, and no answers.

1

There are 1 answers

1
MHOOS On

Looking at your example I can see that plenty of classes and interfaces used in that article are obsolete and you should not use them in your future projects:

EventDrivenActivity Class

HandleExternalEventActivity

WebServiceInputActivity

....

Below are the WF4 alternatives for your problem:

  1. Arguments
  2. Bookmarks : allows you to do event-driven communication to an activity within a workflow from outside by the help of WF runtime as the channel of communication.

Resuming a pending workflow is now managed using a Bookmark object