Archi Forum

Archi => General Archi Discussion => Topic started by: xiaoqi on March 28, 2021, 19:56:26 PM

Title: Question on how to draw a element belonging to multiple parent (multi-nesting)
Post by: xiaoqi on March 28, 2021, 19:56:26 PM
Hello,

Learning on the ArchiMetal case study, one question pop up at Figure 11 which show as first attached image.

The highlight part is the EAI Bus application components belongs to both PC and DC, when I try to draw this in our Archi tool, see attached #2, there're three relationships can be chosen (Composition, Aggregation or Realization), but no matter which relation uses, I cannot reproduce the view as shown in the case study, see #3 and #4, when drag the EAI Bus element to the view, it can only allow you either put that in the PC or DC, but not both, and although I can expand the width of the element, it will be put as back of another parent and cannot show that in front.

If there any technic I don't use to draw such kind of "multi-nesting" way? I met similar needs in some of my other models when discussing certain enterprise level components.

Thanks and regards,
Xiaoqi
Title: Re: Question on how to draw a element belonging to multiple parent (multi-nesting)
Post by: Jean-Baptiste Sarrodie on March 29, 2021, 07:09:43 AM
Hi,

The trick is to put the "EAI Bus" outside of both locations and then resize it so that it it shown as expected. This won't trigger the ARM (automatic Relationship Manager) and the "EAI Bus" won't be forced to be nested in one or the other. You can add relationships to make sure the underlying model is coherent, but you'll have to manually remove them from the view because there is no nesting at play, so it can't be automatically hidden.

Re the relationships (to make is simple) you should always use composition or aggregation (in this case aggregation because you explicitely model that the "EAI Bus" is part of both location).

Regards,

JB
Title: Re: Question on how to draw a element belonging to multiple parent (multi-nesting)
Post by: Phil Beauvoir on March 29, 2021, 08:25:34 AM
Another method- when you drag the "EAI Bus" ensure that the mouse pointer is between the two Location elements when you drop it. You'll see that neither of the Locations highlight the blue outline then.
Title: Re: Question on how to draw a element belonging to multiple parent (multi-nesting)
Post by: xiaoqi on March 29, 2021, 14:52:43 PM
Thanks JB and Phil on your "trick" but workable method, I didn't realize that just for view purpose, I can drag to the mid of two element but not force it belong to each one.

Also, keeping the actual belong relationship created is good as well, since that build the relation from the EAI Bus to the others, I'll be fine to have them and then remove in the view just for showing purpose

Thanks again,
Xiaoqi