状态机工作流程 - 事件驱动 - 需要状态转换?

发布于 2024-07-20 01:46:20 字数 225 浏览 5 评论 0原文

在状态机中,如果在事件驱动活动中处理事件,是否需要发生状态转换(即 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文