English 中文(简体)
Enterprise Architect Communication Diagrams question
原标题:

I want to achieve something like this in Enterprise Architect s Communication Diagrams:

   start()    ----------------    1. create()   ------------
------------> | RGController | ---------------> | U : User |
              ----------------                  ------------

But I am facing 2 problems:

  1. It seems I have to always make a connection between 2 objects (I can t have the start() message just come out of nowhere, like I d want).
  2. I can t control the numbering as I d want. Is there any way I could just set the numbering by myself? If I define that an actor is calling start() on RGController, it will call it message 1 when I d want message 1 to be User.create().
最佳回答

A) Which Object is sending the start() message to RGController? Add it to the diagram and create the connection between these two objects.

Alternatively you could send the initial message from an Inital element (in the Activity toolbox).

You could also hack an invisible start element by creating an empty shape rendering script.

Just create a new Stereotype in Settings->UML...->Stereotypes, set the name to hidden, applied to , and set the shape script as:

shape main {
}

Then apply this stereotype to your initial element. It should be rendered as invisible.

B) I m not sure how to manually set the message labeling. Are you aware of the message numbering settings?

  • right clicking one of the message labels an selecting "Sequence Communication Messages".

  • checking "start new group" in the Message Properties->Sequnce Expressions section.

问题回答

Are you trying to draw an architecture which uses a Front-controller or Facade for handling incoming request? If so in that case the client will call the start(). E.g. In case of an ASP.net application, it will be the UI code or presentation logic.

Client/User/Customer ---start()---> RGBController--- create() ---> u: User





相关问题
Understanding UML of DoFactory Design Pattern - Decorator

I am trying to understand UML diagram describing Decorator Pattern at link below http://www.dofactory.com/Patterns/PatternDecorator.aspx I don t understand why there is a "Aggregation" relation ...

UML Code generation tool in C# [closed]

Please suggest me any opensource tool to generate C# code from UML designer,Or any plugin to generate code from visualstudio. My requirement is to have a code generation tool for C#.

How to design/plan for web application development?

I m interested in learning how to design/plan for web application development, in a multiple developer team scenario. Assuming the role of "Project Manager/Lead": What "documents" are needed for ...

Software for Sequence Diagrams? [closed]

I ve been using NClass for object/class modeling in class thus far. However, I do not believe that it is capable of sequence diagrams, which is my next task. I would prefer not to use Visio. Is ...

UML Diagram to Model API

I need to create a diagram to document a RESTFul API that build, which UML diagram should I use? Thanks in advance,

Where could I find some UML samples? [closed]

I need a punch of samples of UML diagrams to get an start point to develop my own diagrams. Does anyone know about a good website where I could find it? Thanks!

热门标签