状态机工作流程 - 事件驱动 - 需要状态转换?
在状态机中,如果在事件驱动活动中处理事件,是否需要发生状态转换(即 SetStateActivity)?
我的目标是允许特定事件驱动活动中的相同逻辑重复发生(通过多次发出信号),直到满足某个条件,此时状态应该转换,并且该过程将为下一个状态重复。
目前,在没有发生状态转换的情况下,看起来事件驱动活动完成,然后整个工作流也完成(即所有活动都关闭),但是当查看跟踪数据时,工作流实例表明:它被终止了。
Within a state machine, if an event is handled within an event driven activity, is it required that a state transition (i.e. SetStateActivity) occur?
My goal is to allow the same logic within the particular event driven activity to occur repeatedly (by being signaled multiple times) until a certain condition is met at which time the state should transition and the process would repeat for the next state.
Currently, in the case that a state transition does not occur, it looks like the event driven activity completes and then the entire workflow completes as well (i.e. all activities are closed), but when looking at the tracking data, the workflow instance indicates that it was terminated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在这里找到答案:
http://social.msdn.microsoft.com/Forums/en-US/windowsworkflowfoundation/thread/cef8300a-fbf0-47e6-b4f9-e444343208e3/
Found the answer here:
http://social.msdn.microsoft.com/Forums/en-US/windowsworkflowfoundation/thread/cef8300a-fbf0-47e6-b4f9-e444343208e3/