暂停工作流程

发布于 2024-09-14 17:35:55 字数 323 浏览 1 评论 0原文

假设我有一个执行以下操作的示例工作流程:

  1. 接收某些内容
  2. 运行长时间的活动 1(无用户输入)
  3. 运行长时间的活动 2(无用户输入)
  4. 发送一些内容

通常,活动 2 应该在活动 1 完成后自动运行,但我想阻止执行直到工作流获得用户的许可。当 Activity1 运行时,我希望能够告诉工作流在完成 Activity1 后暂停,并在收到通知后继续执行 Activity2。

我想我需要一个工作流可以在运行 Activity2 之前检查的标志,但是如何在 Activity1 运行时更新此标志?

谢谢

Lets say I have a sample workflow that does the following:

  1. Receive something
  2. Run long activity1 (no user input)
  3. Run long activity2 (no user input)
  4. Send something

Usually activity2 should run automatically after activity1 is finished, but I would like to prevent the execution of activity2 until the workflow gets the go ahead from a user. While activity1 is running, I want to be able to tell the workflow to pause after it is done activity1 and continue with activity2 when told.

I guess I need a flag that the workflow can check before it run activity2 but how can I update this flag while activity1 is running?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

近箐 2024-09-21 17:35:55

使用书签或 WCF 请求创建某种阻塞活动,并在 Activity2 启动之前执行该活动。这样你就可以告诉它恢复。您可以将其嵌套在 If 活动中,您只想在未满足特定条件时等待。

Create some kind of blocking activity, either using a bookmark or a WCF request and execute that before activity2 starts. That way you can tell it to resume. You can nest it in an If activity of you only want to wait if a certain condition has not been met.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文