Windows 工作流程 4.0 和实施活动超时

发布于 2024-09-25 05:25:47 字数 231 浏览 3 评论 0原文

我有一个场景,我们需要一个活动有一个与之关联的超时,这样如果该活动没有在定义的时间内完成,那么我们就会转向另一个活动。

我将如何使用 Windows Workflow 4.0 来实现这一点?显然并行活动不能给我我们想要的东西?

例如,如果我有一个活动提示用户输入,我希望工作流程在发生超时时不再等待用户输入。

抱歉,如果我问了一个愚蠢的问题,但考虑到 3.0 和 4.0 之间的变化,文档还不太清楚。

I have a scenario whereby we need an activity to have a timeout associated with it so that if the activity doesn't complete within a defined period then we move on to a different activity.

How would i go about implementing this with Windows Workflow 4.0? Clearly a parallel activity doesn't give me what we want?

e.g. If i had an activity which was prompting the user for input i would want the workflow to not wait for that user input anymore if the timeout occurs.

Apologies if i am asking a stupid question but the documentation isn't too clear given the changes between 3.0 and 4.0.

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

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

发布评论

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

评论(1

孤君无依 2024-10-02 05:25:47

选择活动是您的朋友。添加两个 PickBrach 活动,并将用户操作添加到一个触发器块,并将一个延迟(在持续时间中设置超时)添加到另一个触发器。仅执行第一个触发器完成的操作块。

A Pick activity is your friend here. Add two PickBrach activities and add the user action to one the the trigger blocks and a Delay with the timeout set in the Duration to the other Trigger. Only the Action block for the first trigger to complete will be executed.

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