简体   繁体   English

WF-所有国家之间的股权过渡

[英]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? Windows Workflow Foundation 4.0+,尤其是其State Machine工作流是否具有在工作流中所有状态之间共享事件/转换的概念? Also known as a Hierarchical State Machine. 也称为分层状态机。

This was possible in WF 3.5 as proven here, if you scroll to the bottom . 如果滚动到底部,则可以在WF 3.5 中实现,如此处所示

I really can't find anyway to implement this kind of behavior, and I'm looking to upgrade an exiting WF 3.5 system. 无论如何,我真的找不到实现这种行为的方法,并且我正在寻求升级现有的WF 3.5系统。

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 EventDrivenActivity类

HandleExternalEventActivity HandleExternalEventActivity

WebServiceInputActivity WebServiceInputActivity

.... ....

Below are the WF4 alternatives for your problem: 以下是您的问题的WF4替代品:

  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. 书签 :通过WF运行时作为通讯渠道,可以从外部与工作流中的活动进行事件驱动的通讯。

Resuming a pending workflow is now managed using a Bookmark object 现在,使用Bookmark对象管理恢复挂起的工作流

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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