Windows 工作流程 4.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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
选择活动是您的朋友。添加两个 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.