Book a Demo

Author Topic: How To Template Bind Between Diagrams  (Read 13737 times)

kadir

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
How To Template Bind Between Diagrams
« on: February 26, 2014, 09:48:39 pm »
Hello,

I have 2 diagrams: Core and Context.

There is an abstract generic base class called Entity within Core. I can create new classes from entity by directly drag-drop onto my Context diagram and select "as a New Child". But while my base class is a generic class I have to bind the template for derived classes. So I have to put the Entity class into my Context diagram as a simple link and everything is fine.

Unfortunately, while there are many classes and everyone one them are derived from Entity, after a while, there become a connector jungle: 20 classes in which each of them generalizes the base entity with binding connectors and also some connections between them is hard to follow.

If I just try add a binding from Properties > Templates menu of the Element I get a warning saying "Target Object not found in current Diagram!"

Hence I wonder if there is a way to add a binding without the need of putting the base element into the working diagram or at least avoid the connector jungle.

Regards.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: How To Template Bind Between Diagrams
« Reply #1 on: February 26, 2014, 11:00:56 pm »
If you remove the general class from the diagram it will appear in italics in the generalized children. Won't that help?

q.

kadir

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: How To Template Bind Between Diagrams
« Reply #2 on: February 27, 2014, 12:37:35 am »
Unfortunately no..  :-[

Have tried your suggestion but the general class did not appear in italics in the generalized children.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: How To Template Bind Between Diagrams
« Reply #3 on: February 27, 2014, 09:49:05 pm »
It should look like that:
Left diagram shows class and generalization. The right diagram just the class.

q.

kadir

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: How To Template Bind Between Diagrams
« Reply #4 on: February 28, 2014, 02:06:48 am »
Here is the whole story:

1. I have an abstract generic base entity in another diagram..



2. When I drag-n-drop it as a simple link to another diagram..



3. And I generalize a class from this base class and bind the template, everything is great..



4. Now, as I wrote, there will be a lot of classes so the diagram will be a mess, so when I delete the base class just from the diagram as you suggested, nothing happens, no italics nor anything..



5. So I tried directly to generalize a class by drag-n-drop..



6. VoilĂ , the base class is in the element box as italics, hooray..



7. But where is the template binding, I tried to add one..



8. And this is what I got..



A really appreciate your efforts but unfortunately what I am trying to do is a bit different and I still hope that there is an answer for this problem. Thanks in advance and sincere regards.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: How To Template Bind Between Diagrams
« Reply #5 on: February 28, 2014, 06:47:59 am »
I see, but currently I have no answer. However, someone else might chip in.

q.
« Last Edit: February 28, 2014, 06:48:40 am by qwerty »

kadir

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: How To Template Bind Between Diagrams
« Reply #6 on: February 28, 2014, 11:08:28 pm »
Quote
I see, but currently I have no answer. However, someone else might chip in.

q.

Thanks @qwerty..