Skip to main content



      Home
Home » Modeling » Papyrus » Where to read the relationship "Element has Constraint" outside the diagram?
Where to read the relationship "Element has Constraint" outside the diagram? [message #1847710] Thu, 04 November 2021 06:01 Go to next message
Eclipse UserFriend
Hi all,

In EA, Constraint is aggregated into Element.
In Papyrus, the Constraint stands as a separate Element (according to UML: It is a descendant of the PackageableElement) and it is linked to the given Element by a Link.
However, we need the fact that this "Element has this Constraint" (or these Constraints) to be visible not only on the diagram, but in some window or reasonable listing for inspection purposes and for implementation requirements.

How and where to get this information out of the diagram?

Thanks for the advice

Ilya.

[Updated on: Thu, 04 November 2021 06:01] by Moderator

Re: Where to read the relationship "Element has Constraint" outside the diagram? [message #1847715 is a reply to message #1847710] Thu, 04 November 2021 07:31 Go to previous messageGo to next message
Eclipse UserFriend
Hi Ilya,

a solution might be a query like the one below

index.php/fa/41260/0/

this query queries the model, the uml-file saved to be exactly. So save before querying.

index.php/fa/41262/0/

This feature implies Acceleo is installed.

Btw, the very same query you can use to generate a LibreOffice/Word Document using GenDoc. So you can generate a custom report :-)

A slightly altered query can look for "unbound" constraints, here defined as constrains with no constrainedElement defined.

index.php/fa/41263/0/

/Carsten

PS the sample was done in my Papyrus 6 test bed :-)

[Updated on: Thu, 04 November 2021 08:11] by Moderator

Re: Where to read the relationship "Element has Constraint" outside the diagram? [message #1847723 is a reply to message #1847710] Thu, 04 November 2021 09:39 Go to previous messageGo to next message
Eclipse UserFriend
Hi Ilya,

an additional remark

The tricky part is, that as I interpret the UML specification the visible link does NOT express that the constraint constrains the linked elements. The solution I presented implies the constrainedElement association end of the Constrain element is used accordingly. The A_constrainedElement_constraint association defined in the UML specification has no visual representation.

A really interesting question, many thanks :-)

/Carsten
Re: Where to read the relationship "Element has Constraint" outside the diagram? [message #1847730 is a reply to message #1847723] Thu, 04 November 2021 10:54 Go to previous messageGo to next message
Eclipse UserFriend
Hi Carsten,
thanks a lot,
it looks a bit more complicated (but only a matter of time before I prepare it :)),

I don't see the content of Constraint. I guess the query would have to be modified to show the specification, language and body, right?

I have a supplementary question:

Is there no "matrix of relations" (with filters) in Papyrus where this relation with ends could be found?

Ilya

[Updated on: Thu, 04 November 2021 10:54] by Moderator

Re: Where to read the relationship "Element has Constraint" outside the diagram? [message #1847735 is a reply to message #1847730] Thu, 04 November 2021 12:43 Go to previous messageGo to next message
Eclipse UserFriend
]or you expand the query results :-)

index.php/fa/41265/0/

[Updated on: Thu, 04 November 2021 12:44] by Moderator

Re: Where to read the relationship "Element has Constraint" outside the diagram? [message #1847736 is a reply to message #1847730] Thu, 04 November 2021 12:52 Go to previous messageGo to next message
Eclipse UserFriend
For more elaborate reports I recommend GenDoc generated Open-/Libre-/Microsoft-Office documents. GenDoc can generate text, presentation and spreadsheet documents. Also because reports can be archived and be presented at an project audit.

/Carsten
Re: Where to read the relationship "Element has Constraint" outside the diagram? [message #1847738 is a reply to message #1847736] Thu, 04 November 2021 13:25 Go to previous message
Eclipse UserFriend
Hi, Carsten,

thanks a lot,

I plan to test and deploy GenDoc soon.

Ilya
Previous Topic:[CSS] Remove <<Interface>> label adn size of compartment
Next Topic:A Constraint attached to an Attribute
Goto Forum:
  


Current Time: Wed Jul 23 13:38:55 EDT 2025

Powered by FUDForum. Page generated in 0.04680 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top