随时退出活动图 [英] Exit activity diagram at any point

查看:104
本文介绍了随时退出活动图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们目前正在设计一个带有退出按钮的应用程序,这意味着用户可以随时退出该应用程序。现在,我们不确定如何将其记录下来。

We're currently designing an application with an exit button, meaning the user can exit the application at any time. Now, we're not sure how to write this down.

现在,我们正在考虑如下图所示进行操作,因为这是唯一的方法我们知道如何做到这一点。但是,我们觉得必须有一种更简单的方法。另外:如果我们对整个应用程序都这样做(相当大),我们将获得大量决策和最终节点...

Right now, we're thinking about doing it like shown in the picture below, because this is the only way we know how to do this. However, we feel like there must be an easier way. Also: if we do this for our whole application (which is quite big), we'd get a whole ton of decision and end nodes...

推荐答案

您的模型看起来还不错。不必具有多个最终流量,您可以将所有流量引导到一个(作为选择)。

Your model looks ok. Instead of having multiple Final Flows you could lead all flows to a single one (just as an option).

不知道确切的要求,这是另一种方式:

Without knowing the exact requirements, here is another way:

退出按钮被视为异常。这也可以写成

The exit button is treated as exception. This could as well be written as

这篇关于随时退出活动图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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