This service is archived, please use www.eclipse.org/forums


Home » Capella » Capella Studio » Custom Validation rule for Requirements Viewpoint (Is it possible to create a custom validation rule for a viewpoint? Particularly, the requirements viewpoint)
Custom Validation rule for Requirements Viewpoint [message #3348] Wed, 03 July 2019 10:27 Go to next message
Daniil200 is currently offline  Daniil200
Messages: 32
Registered: December 2018
Member
Hello,
I wish to create a custom validation rule for the requirements in my model, added using the Requirements viewpoint. Online, it only mentions the outdated built-in requirements module as an available Namespace URI.

Is it possible to build such a validation rule? How do I figure out the correct Namespace URI to achieve this?

Thank you in advance,
Daniil
Re: Custom Validation rule for Requirements Viewpoint [message #3370 is a reply to message #3348] Tue, 09 July 2019 09:18 Go to previous messageGo to next message
philippe.dul is currently offline  philippe.dul
Messages: 49
Registered: April 2015
Member
Hi,

Indeed it is possible to build such rules.

You can look at existing validation rules from Requirement viewpoint.

https://git.polarsys.org/c/capella/capella-requirements-vp.g it/tree/plugins/org.polarsys.capella.vp.requirements.validat ion

https://git.polarsys.org/c/capella/capella-requirements-vp.g it/tree/plugins/org.polarsys.capella.vp.requirements.validat ion/plugin.xml
https://git.polarsys.org/c/capella/capella-requirements-vp.g it/tree/plugins/org.polarsys.capella.vp.requirements.validat ion/src/org/polarsys/capella/vp/requirements/validation/REQ_ Relation_01_Relation.java

Best regards
Philippe
Re: Custom Validation rule for Requirements Viewpoint [message #3371 is a reply to message #3370] Tue, 09 July 2019 11:24 Go to previous messageGo to next message
Daniil200 is currently offline  Daniil200
Messages: 32
Registered: December 2018
Member
Great thank you very much for pointing me to the correct resources!

Best,
Daniil
Re: Custom Validation rule for Requirements Viewpoint [message #3374 is a reply to message #3371] Wed, 10 July 2019 11:30 Go to previous message
Daniil200 is currently offline  Daniil200
Messages: 32
Registered: December 2018
Member
Hello,
It seems that my capella studios does not recognize several of the bundles used here. It throws a "Bundle 'org.polarsys.capella.vp.requirements.model' cannot be resolved" for 4/5 different bundles. As such, I cannot use the Requirement type in my code, since I cannot add the necessary bundle. Is there any way to add these bundles? How do I make the platform recognize them?

Thank you in advance,
Daniil
Previous Topic: Is it possible to forbidden the viewpoint activation ?
Next Topic: create a viewpoint in the operational analysis level
Goto Forum:
  


Current Time: Sat Mar 28 03:58:50 EST 2020

Total time taken to generate the page: 0.01330 seconds