简体   繁体   中英

WF - Share Transition across all States

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM