Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: MichPaule on March 14, 2024, 02:24:15 am

Title: How to remove unwanted links from SysML1.4::requirement
Post by: MichPaule on March 14, 2024, 02:24:15 am
EA 16.1.1628 (64 bit)

Trying to trim the linking capabilities to the users needs...

The process demands <satisfy> links from SysML Block to SysML Requirement and <refine> links from UseCase to SysML Requirement (please don't ask why 8) ).
I have successfully created the stereotyped relationships and linking is possible.
But I can't get rid of the standard QL links (Satisfies & Refines) no matter what I tried.
Both are always there when trying to link to a requirement.
I was expecting only the single link I configured using the stereotyped relationships.

According to https://sparxsystems.com/forums/smf/index.php/topic,44252.msg260847.html or https://sparxsystems.com/forums/smf/index.php/topic,48190.msg279985.html#msg279985 there seems to be a way.
But after hours of trying I'm still unable to figure out how follow the instructions given in Define Metamodel Constraints (https://sparxsystems.com/enterprise_architect_user_guide/16.1/modeling_frameworks/metamodelconstraints.html).
Would someone please help me out of my despair?  :-[
TIA for your support!

Michael

Title: Re: How to remove unwanted links from SysML1.4::requirement
Post by: Eve on March 14, 2024, 08:05:45 am
You may be able to do it with a restricted perspective.

https://sparxsystems.com/enterprise_architect_user_guide/16.1/modeling_fundamentals/techno_sets.html (https://sparxsystems.com/enterprise_architect_user_guide/16.1/modeling_fundamentals/techno_sets.html) (scroll down a bit)

You can also assign a perspective to a security group.
Title: Re: How to remove unwanted links from SysML1.4::requirement
Post by: MichPaule on March 14, 2024, 07:25:12 pm
You may be able to do it with a restricted perspective.

https://sparxsystems.com/enterprise_architect_user_guide/16.1/modeling_fundamentals/techno_sets.html (https://sparxsystems.com/enterprise_architect_user_guide/16.1/modeling_fundamentals/techno_sets.html) (scroll down a bit)

You can also assign a perspective to a security group.
Thanks Eve,

I just had a deeper look into this.
Unfortunately I didn't find a way to remove the <refine> linking option although in Restrictions / SysML 1.5 / Link Rules I deselected under Link Type: Refine the entry Block <-> Requirement.
Still the <refine> link is possible between a Block and a Requirement, even after closing/opening the model and selecting the created model-based perspective.
As my MDG was not involved at all (only plain SysML 1.5) I would expect the restriction should apply.
Did I find a bug here?

Michael

Title: Re: How to remove unwanted links from SysML1.4::requirement
Post by: MichPaule on March 14, 2024, 09:21:02 pm
Success!
Got it working without restricted perspectives.
The key was to remove the unwanted <refine> relation by creating a Stereotyped Relationship with Stereotype=SysML1.4::refine from my Block (Source) to the <none> metaclass (Target).
The documentation (https://sparxsystems.com/enterprise_architect_user_guide/16.1/modeling_frameworks/metamodelconstraints.html) somehow suggests the other way around - which doesn't do the trick.
This answer (https://sparxsystems.com/forums/smf/index.php/topic,48190.msg279985.html#msg279985) of Eve
Quote
Removing them requires creating a constraint for the existing relationship types targeting the metaclass '<none>'.
gave me the hint ;)

Michael