简体   繁体   English

如何强制工作流终止?

[英]How to force a workflow to terminate?

我如何在中断流程顺序的活动中间突然终止工作流程?

Can you not use the Terminate activity? 您不能使用“终止”活动吗?

If you want to be less ... nice ... you can always just chuck an exception (and possibly catch it passing it off to a Terminate/Log activity). 如果您想变得更少...好...,您总是可以抛弃一个异常(并可能捕获它,将其传递给Terminate / Log活动)。 Just keep the interactions exposed and documented. 只需保持交互作用公开并记录下来即可。

Unfortunately, I find the "pretty picture" to just get in my way most of the time :-/ Sometimes using a State vs. Sequential workflow can be helpful. 不幸的是,我发现“漂亮的图画”在大多数情况下只是困扰我:-/有时使用状态与顺序工作流可能会有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM