在 UML Activity 图中表示 "while t < time limit"

Represent "while t < time limit" in a UML Activity diagram

我正在绘制代表以下内容的图表:

此示例的目的是确定如何在 UML Activity 图中表示 "while time limit is not exceeded"

我试图创建一个 UML Activity 图,但它似乎不正确。

能否请您建议如何正确绘制它?谢谢。

正如@xmojmr 评论的那样,您将使用

15.7.19 InterruptibleActivityRegion [Class]

15.7.19.1 Description

An InterruptibleActivityRegion is an ActivityGroup that supports the termination of tokens flowing in the portions of an activity within it.

TimerOverrun 事件可以发送异常,而 Action1(或虚线区域内的任何其他事件)处于活动状态,由 TimerEvent 处理。