简体   繁体   English

UML:为创建/更改其他活动的活动建模

[英]UML: modeling an activity that creates/changes other activities

Let's say I am to build a behavioral model of some organization: in particular, I am to build a bunch of activity diagrams that describe all those activities that take place in the organization (activities like "bidding", "order fulfillment", "shipping", etc.). 假设我要建立某个组织的行为模型:特别是要建立一堆活动图来描述组织中发生的所有那些活动(诸如“招标”,“订单履行”,“运输”之类的活动) ”等)。

Now, one of the key activities in the organization is the one that includes establishing and maintaining all the activities themselves. 现在,组织中的一项关键活动是包括建立和维护所有活动本身的活动。 If you wanted to show the object flows while modeling that activity, how exactly would you depict such inputs/outputs as activities? 如果你想显示的物体流动,而塑造用于活动,究竟会怎么描述这个输入/输出的活动?

For example, would it be semantically correct to use objects that are instances of the Activity class from UML meta-model? 例如,使用UML元模型中Activity类实例的对象在语义上是否正确? (The UML modeling tool that I'm using does not give me such an option. Is it because the tool is ignorant or because I am not supposed to include instances of classes from meta-model into my model?) (我正在使用的UML建模工具没有给我这样的选择。是因为该工具无知还是因为我不应该将元模型中的类的实例包括到我的模型中?)

An activity parameter node might be what you're looking for. 活动参数节点可能就是您要寻找的。 This shape represents an activity that calls actions in the current activity diagram. 此形状表示一个活动,该活动调用当前活动图中的动作。 You connect this shape to an input node or output node in the current activity. 您将此形状连接到当前活动中的输入节点或输出节点。

You can create UML activity diagrams that support this kind of node in VS 2010 Ultimate. 您可以在VS 2010 Ultimate中创建支持此类节点的UML活动图。 For more info, see the following topic in the RC documentation: 有关更多信息,请参见RC文档中的以下主题:

UML Activity Diagrams: Reference (scroll to the bottom): http://msdn.microsoft.com/en-us/library/dd409360%28VS.100%29.aspx UML活动图:参考 (滚动到底部): http : //msdn.microsoft.com/zh-cn/library/dd409360%28VS.100%29.aspx

18 : Activity Parameter Node : An object node through which data can be received or produced by the activity. 18活动参数节点活动可以通过其接收或产生数据的对象节点。 Used when the activity represented by the diagram is called from another activity, or when the diagram describes an operation or function. 当从另一个活动调用该图表示的活动时,或者当该图描述一个操作或函数时使用。

活动图上的活动参数节点

Feel free to post questions in the VS 2010 Architecture & Modeling Tools forum at http://social.msdn.microsoft.com/Forums/en-US/vsarch/threads . 随时在http://social.msdn.microsoft.com/Forums/en-US/vsarch/threadsVS 2010体系结构和建模工具论坛中发布问题。

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

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