Book a Demo

Author Topic: Tagged value for relationship in XML Profile  (Read 8992 times)

Michel777

  • EA User
  • **
  • Posts: 228
  • Karma: +0/-0
    • View Profile
Tagged value for relationship in XML Profile
« on: October 13, 2013, 08:04:13 am »
Hi,

i need an example, how to add tagged values to the relationship (e.g. to trace).

Thanks,

Michel

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Tagged value for relationship in XML Profile
« Reply #1 on: October 13, 2013, 08:39:10 am »
No idea why you want trace in the tagged values, but just select the connector and do whatever you want in the tagged values window.

q.

Michel777

  • EA User
  • **
  • Posts: 228
  • Karma: +0/-0
    • View Profile
Re: Tagged value for relationship
« Reply #2 on: October 13, 2013, 09:05:06 am »
Thanks q,

I actually need it for all the relationships

a) already exist AND
b) created in the future (therefore it is better to have in the Profile).

The questions are:

a) how to add the tagged values to existing relationships
b) how to put the TVs into the profile - directly into the XML file


Explatantion:

Purpose: to qualify "solutions". There is 70 use cases (UC) and 50 components (CMP). Each of UC is realized of combination of components. Further: we are going to build different variants.

We need hold following attributes:

a) complexity (1,2,3)
b) quality (1,2,3)
c) deadline (date)
d) input (checkbox)
e) ouput (checkbox)
f) description 1 (text)
g) description 2 (text)


E.G.

UC1 realized by  CMP6, CMP7 and CMP 11
UC2 realized by  CMP6, CMP8 and CMP 13

Relationship UC1 / CMP6

a) complexity: 1
b) quality  2
c) deadline 30.11.2013
d) input: yes - or using direction of relationship
e) ouput: no  - or using direction of relationship
f) description1: asdfghjj
g) descrition2: asdfghh

We will use for building variants the kind of relationships (there are visible directly on the diagram - creating relationship with the mouse on the diagram).

Variants:

variant1: UC1 realized by  CMP6, CMP7 (only input) and CMP 11
variant2: UC1 realized by  CMP6, CMP7 (nput + output) and CMP 57

Implementation of variants:

variant1: trace
variant2: realize
variant3: dependency
variant4: information flow



Thanks,

Michel
« Last Edit: October 13, 2013, 06:07:24 pm by michel777 »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Tagged value for relationship in XML Profile
« Reply #3 on: October 13, 2013, 10:03:48 pm »
Adding TVs to existing connectors is a bit tricky. Creating a SQL is probably possible, but I'm not really a SQL guru. You would need to pick the Connector_ID and put that in t_connectortag.ElementID thereby filling the rest with appropriate tag values.

The easier way would be to write a little script doing the above. You would need to SQLQuery all connectors and add to the TaggedValues of the Connector object with the Connector_ID.

Putting a TV in from a MDG is pretty straight forward. Once you had a profile it's really easy. Do you already have one? Alternatively (I posted that yesterday in another thread) you can use a template package (IIRC).

q.

Michel777

  • EA User
  • **
  • Posts: 228
  • Karma: +0/-0
    • View Profile
Re: Tagged value for relationship in XML Profile
« Reply #4 on: October 14, 2013, 04:07:33 am »
Hi,

I have aready a profile.  Could you "spell" the appropriate entry for the TVs ?

Template package works for elements, but not for relationships: I put two elements on the diagram (using as a template) and a relationship (trace) between them with TV.

But those TVs were not available for newly created relationships.

Thanks,

Michel
« Last Edit: October 14, 2013, 05:12:55 am by michel777 »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Tagged value for relationship in XML Profile
« Reply #5 on: October 14, 2013, 05:43:17 am »
Sure. You need a Stereotype Extending the right connector (Dependency, Association, whatever). Then add attributes to the Stereotype. These will be added to the connectors as TVs.

Too bad that templates does not work. Probably worth a feature request so they add relationships too.

q.

Michel777

  • EA User
  • **
  • Posts: 228
  • Karma: +0/-0
    • View Profile
Re: Tagged value for relationship in XML Profile
« Reply #6 on: October 14, 2013, 05:53:33 am »
My faithful helper, dear q:

in the meanwhile i have "experimented" with AssociationClass and I know the syntax of them. But creating such relationship ist complicated.

Would it be possible to point me to a right syntax for extendig a connector with TV ?

I have already checked your latest book too (very helpful), but I could not find such things.

Thanks a lot in advance,

Michel
« Last Edit: October 14, 2013, 05:54:06 am by michel777 »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Tagged value for relationship in XML Profile
« Reply #7 on: October 14, 2013, 06:39:54 am »
AssiociationClass is not a connector but an element (the lozenge). In MetaClass you need to select from Core Connectors.

q.

(My last book has not yet a detailed chapter about MDG. I'll add more later but also plan a separate book about MDG. Seems there is some need for it.)

Michel777

  • EA User
  • **
  • Posts: 228
  • Karma: +0/-0
    • View Profile
Re: Tagged value for relationship in XML Profile
« Reply #8 on: October 14, 2013, 07:17:20 am »
Hi,

I know... it were a workaround, I'm helpless... and I still don't know how to formulate the 3-4 lines in XML Profile.

There is enough theory, but less examples. You could put some examples in your next book.


Michel
« Last Edit: October 14, 2013, 07:22:21 am by michel777 »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Tagged value for relationship in XML Profile
« Reply #9 on: October 14, 2013, 07:19:55 am »
So I'm puzzled then. You want to create a connector with tagged values. Right?

q.

Michel777

  • EA User
  • **
  • Posts: 228
  • Karma: +0/-0
    • View Profile
Re: Tagged value for relationship in XML Profile
« Reply #10 on: October 14, 2013, 07:22:43 am »
Hi, yes.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Tagged value for relationship in XML Profile
« Reply #11 on: October 14, 2013, 07:46:06 am »
So then. What is the problem??

- Create a Stereotype "myFancyConnector".
- Create a MetaClass "Association" from Core Connectors
- Draw an Extends from myFancyConnector to Association
- Add attributes to myFancyConnector
- Eventually add it to a ToolboxPage
- Save and use the profile

The next time you use it you will have myFancyConnector. Once you draw that (between two classes) you will have an Association <<myFancyConnector>> with TVs named after the attributes.

q.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Tagged value for relationship in XML Profile
« Reply #12 on: October 14, 2013, 07:52:07 am »
I just read a bit more careful what you posted above (your goals). I'm not sure that this is the best approach. Qualifying deadlines through a TV in an association is sub-optimal. You should better introduce some <<deadline>> elements which have TVs (or simply the deadline in the name) and then linked to the UCs which must fulfill it. Am I right that you are on your own in modeling these guidelines?

q.

Michel777

  • EA User
  • **
  • Posts: 228
  • Karma: +0/-0
    • View Profile
Re: Tagged value for relationship in XML Profile
« Reply #13 on: October 14, 2013, 08:00:44 am »
HI,

thanks a lot. My problem is, that I'm not an EA-cook, I need rather a cooked supe (example) , then a recipe  (how to do it).

But I'll try it, to cook after your recipe.

I am surprised that there is no examples

Quote
"Am I right that you are on your own in modeling these guidelines? "

 Yes - thanks for suggestions


Thanks a lot again,

warm regards,

Michel
« Last Edit: October 14, 2013, 08:03:02 am by michel777 »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Tagged value for relationship in XML Profile
« Reply #14 on: October 14, 2013, 09:24:11 am »
Have you read my profile example? http://community.sparxsystems.com/tutorials/552-24intro-to-creating-a-mdg-file

There's another tutorial by some Danish guy (can't recall his name; something with a Tiger group?!).

Regarding your situation: try to find some sparring partner to discuss methods. You will likely drown without one unless you are a wizard.


q.

[edit] http://www.tigerteam.dk/2011/how-to-develop-mdgs-for-enterprise-architect-part-1/
« Last Edit: October 14, 2013, 09:28:09 am by qwerty »