gpt4 book ai didi

uml - 事件图中的两个流可以执行相同的操作吗?

转载 作者:行者123 更新时间:2023-12-04 12:44:15 25 4
gpt4 key购买 nike

我有两个流程要执行相同的操作。行动是Make Payment .一个流程是给 rent , 其他用于 purchase .在这两种情况下,客户都必须付款。我想用一个 payment两个流的操作。或者我应该使用合并节点然后将输出连接到 make payment行动。我不确定是否可以使用合并节点,因为两个流程相互独立。我上传了一张图片。

enter image description here

最佳答案

这个让我措手不及。当有多个不 protected 转换离开状态/ Action 时,会发出一个隐式 fork ,因此多个 token 独立离开和移动。第 401 页:

When an ExecutableNode completes an execution, the control token representing that execution is removed from the ExecutableNode and control tokens are offered on all outgoing ControlFlows of the ExecutableNode. That is, there is an implicit fork of the flow of control from the ExecutableNode to its outgoing ControlFlows.



我似乎记得类似地,两个传入的转换意味着两者都必须交付一个 token 。并继续阅读(上)第 1 页。 401:

An ExecutableNode shall not execute until all incoming ControlFlows (if any) are offering tokens. That is, there is an implicit join on the incoming Control Flows. Specific kinds of ExecutableNodes may have additional prerequisites that must be satisfied before the node can execute.



现在当你看 p.第425话

A merge node is a control node that brings together multiple alternate flows. It is not used to synchronize concurrent flows but to accept one among several alternate flows.



所以你来了。您需要事先合并以使其正确。

N.B.:如果你是非正式建模(所以在某个有记录的领域)你可以接受你的符号,因为它经常被使用。理论和实践......但不推荐这样做。

关于uml - 事件图中的两个流可以执行相同的操作吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48724350/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com