关闭活动工作人员和工作流程 [英] Shutdown activity worker and workflow

查看:97
本文介绍了关闭活动工作人员和工作流程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的工作流实施中的所有活动完成执行后,或者如果其中任何一个引发任何异常,是否可以关闭活动和工作流工作者。

Is there any way to shutdown activity and workflow worker after all the activities in my workflow implementation have completed its execution or if any of them throws any exception.

推荐答案

您可以具有特殊的关机工人活动类型。此活动实现启动其工作程序的关闭。在工作流执行结束时,您总是从 TryCatchFinally ,它包装了所有其他工作流程逻辑。

You can have special "shutdown worker" activity type. This activity implementation initiates shutdown of its worker. At the end of the workflow execution you always invoke this activity from doFinally method of TryCatchFinally that wraps all other workflow logic.

这篇关于关闭活动工作人员和工作流程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆