Sparx Systems Forum

Enterprise Architect => Suggestions and Requests => Topic started by: jörg on October 09, 2018, 07:30:47 pm

Title: Status property and tagged values for diagrams
Post by: jörg on October 09, 2018, 07:30:47 pm
For using diagrams in requirements engineering, it is needed to have at least a status property and tagged values in diagrams, as they are available in elements.
Maybe is should be possible to add an element reference to a diagram as packages have it (EA.Package.Element). In my opinion this can solve the problem since all element properties will be available to a diagram too, then and it should be able to do that without a database change (adding diagram to the t_object table).

Maybe there are more requirements engineers that have an opinion about that theme?
Title: Re: Status property and tagged values for diagrams
Post by: PeterHeintz on October 09, 2018, 08:18:03 pm
+1 because I miss that feature e.g. to state if a diagram was already reviewed or not.
Title: Re: Status property and tagged values for diagrams
Post by: Ian Mitchell on October 19, 2018, 07:34:12 pm
+1 from me as well.
There all kinds of reasons to attach TVs to a diagram , for example, to remember its status (reviewed etc) so @Sparx this would be a great feature. Can't see a simple place to put them:
- t_objectproperties looks to have secondary key of the Object_ID, which would get confused with diagram_ID.
- t_xref - where all the strange new stuff seems to go...
Or
- t_diagramlinks - at least this will get tidied-up when the diagram gets deleted, but I've just tried this approach, and any new t_diagramlink rows don't get exported when we XMI the diagram.
- create an invisible element in the diagram, and give the TVs to that? Horrible :-(

Any requirement for this should probably include the ability to move the diagram between repositories.
Any more suggestions for how to do this?
Title: Re: Status property and tagged values for diagrams
Post by: Ian Mitchell on October 19, 2018, 07:43:16 pm
There also seems to be somewhere in the XMI format where this data might fit, if @Sparx were to create a solution for us.
<diagrams> seem to have an <extendedProperties> tag, which is used by elements, but not by diagrams (at least in my examples) so there is a possibility that this might be used to hold diagram tagged values.
Needs a Sparx implementation though...
Title: Re: Status property and tagged values for diagrams
Post by: Geert Bellekens on October 19, 2018, 08:03:30 pm
There is actually a table called t_taggedValue table that is used for parameter tags and connector role tags.
They should be able to use it for diagram tags as well.

Geert
Title: Re: Status property and tagged values for diagrams
Post by: Ian Mitchell on October 22, 2018, 09:29:16 pm
...never noticed that table before...
Looks like it's keyed on a GUID, so should do the job OK.
I guess we will have to do our own tidy-up, to delete entries here when a diagram gets deleted, but I'll give this a try.
I still that that the right way to do this is for @Sparx to deliver a solid solution.
Title: Re: Status property and tagged values for diagrams
Post by: philchudley on October 23, 2018, 10:58:24 pm
I too would like tagged values directly on a diagram.

In the meantime, there is a rather ugly workaround.

Diagram Frames can have Tagged Values just like another elements, and of course you can use relationships to / from (for example realisation of Requirements)

Just a thought

Phil