Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Polarsys » M2Doc » how to edit "Requirements Viewpoint" requirements with M2DOC
how to edit "Requirements Viewpoint" requirements with M2DOC [message #1826994] Tue, 05 May 2020 21:34 Go to next message
david Plancq is currently offline david PlancqFriend
Messages: 17
Registered: May 2020
Junior Member
I try to edit via M2DOC requirements generated with View Point Requirement Addon.
I don't succeed in finding the accurate sequence. I try to access to the requirements via
self.eAllContents (CapellaRequirements::CapellaModule).eContents().
It is recognized by Sirius Interpreter but not by The Model Template.doc.
could you help me?
Thanks
Re: how to edit "Requirements Viewpoint" requirements with M2DOC [message #1827002 is a reply to message #1826994] Wed, 06 May 2020 05:30 Go to previous messageGo to next message
Stephane LACRAMPE is currently offline Stephane LACRAMPEFriend
Messages: 217
Registered: July 2009
Senior Member
Hi David,
Looking at this thread should help: https://polarsys.org/forums/index.php/t/487/
Stephane


Stephane LACRAMPE
Obeo Canada
Re: how to edit "Requirements Viewpoint" requirements with M2DOC [message #1827086 is a reply to message #1826994] Wed, 06 May 2020 21:42 Go to previous messageGo to next message
david Plancq is currently offline david PlancqFriend
Messages: 17
Registered: May 2020
Junior Member
Hi Stephane,
Many Thanks for your advice, it's working now!
Merci beaucoup
david
Re: how to edit "Requirements Viewpoint" requirements with M2DOC [message #1827087 is a reply to message #1827086] Wed, 06 May 2020 21:45 Go to previous messageGo to next message
Stephane LACRAMPE is currently offline Stephane LACRAMPEFriend
Messages: 217
Registered: July 2009
Senior Member
Excellent!

Stephane LACRAMPE
Obeo Canada

[Updated on: Wed, 06 May 2020 21:45]

Report message to a moderator

Re: how to edit "Requirements Viewpoint" requirements with M2DOC [message #1833474 is a reply to message #1827087] Wed, 14 October 2020 09:34 Go to previous messageGo to next message
Florian Freund is currently offline Florian FreundFriend
Messages: 5
Registered: October 2020
Junior Member
The link above is not working. Coudl you please correct as I have the same question but unable to find a solution
Re: how to edit "Requirements Viewpoint" requirements with M2DOC [message #1833478 is a reply to message #1833474] Wed, 14 October 2020 12:35 Go to previous messageGo to next message
Pierre B is currently offline Pierre BFriend
Messages: 18
Registered: July 2020
Junior Member
Hi Florian,

I think it is not available anymore because this thread was hosted on the old Capella forums, and for some time now these forums are no more accessible (maybe they were moved elsewhere ?).

However, I recently worked on M2Doc templates with requirements. I managed to get them by using the following query : self.eAllContents()->filter(Requirements::Requirement)

So for instance you can get the requirement names by typing: self.eAllContents()->filter(Requirements::Requirement).ReqIFName

Other solutions may exist but this worked great for my case.

Hope this helps.

[Updated on: Wed, 14 October 2020 12:37]

Report message to a moderator

Re: how to edit "Requirements Viewpoint" requirements with M2DOC [message #1833479 is a reply to message #1833478] Wed, 14 October 2020 12:44 Go to previous messageGo to next message
Florian Freund is currently offline Florian FreundFriend
Messages: 5
Registered: October 2020
Junior Member
Hello, thanks for fast reply, but for me it doesn´t work, beside the sirius interpreter works fine, in the template it doesn't.

Invalid for statement: Expression "self.eAllContents() ->filter(Requirements::Requirement)" is invalid: invalid type literal requirements::Requirement

May be It is a problem in the nsURI (expert) Settings?

I am using Capella 1.4.1, Requirement VP and M2Doc 3.1


[Updated on: Wed, 14 October 2020 14:01]

Report message to a moderator

Re: how to edit "Requirements Viewpoint" requirements with M2DOC [message #1833482 is a reply to message #1833479] Wed, 14 October 2020 13:30 Go to previous messageGo to next message
Stephane LACRAMPE is currently offline Stephane LACRAMPEFriend
Messages: 217
Registered: July 2009
Senior Member
The message in the old forum was saying:
Hi,

Are you using the Requirement VP extension?

When not using the extension, something like that should work

{m:for lc | self.eAllContents(la::LogicalComponent)}

Logical Component : {m:lc.name}

Requirements :

{m:for req | lc.appliedRequirements}

Req Name : {m:req.name}
Req Id : {m:req.requirementId}

{m:endfor}

{m:endfor}


Stephane LACRAMPE
Obeo Canada
Re: how to edit "Requirements Viewpoint" requirements with M2DOC [message #1833505 is a reply to message #1833482] Thu, 15 October 2020 08:47 Go to previous messageGo to next message
Florian Freund is currently offline Florian FreundFriend
Messages: 5
Registered: October 2020
Junior Member
Ok, I had problems in the 'Sirius Session' because of used 'space' in the .ard name..... There should be an advise not to use blank/space in the project naming!
After hours of renaming and 'reapair'/refresh it is working now.....

Re: how to edit "Requirements Viewpoint" requirements with M2DOC [message #1833509 is a reply to message #1833505] Thu, 15 October 2020 11:26 Go to previous messageGo to next message
Florian Freund is currently offline Florian FreundFriend
Messages: 5
Registered: October 2020
Junior Member
How can I transfer the information visible in the semantic browser (Requirements Relations as described here : https://www.eclipse.org/forums/index.php/m/1822791/?srch=Relation#msg_1822791 ) to M2Doc?
It is so annoying to search for the right query without an easy Information of how M2doc works or how to query for the right data......
Re: how to edit "Requirements Viewpoint" requirements with M2DOC [message #1833519 is a reply to message #1833509] Thu, 15 October 2020 14:08 Go to previous message
Yvan Lussaud is currently offline Yvan LussaudFriend
Messages: 63
Registered: July 2009
Member
M2Doc on itself is not domain dependent, for instance it can be applied on other model than Capella models.
To help you write queries you can use the Sirius interpreter view or the Word add in if you are using M2Doc 3.1.0.
But the specific features you can access or type of element you can manipulate are mostly domain specific and not related to M2Doc.
In your particular case you will need to write a Java service that use the code used in the semantic browser. Maybe such utility methods already exists, but you should ask Capella developers.
One starting point might be the org.polarsys.capella.common.ui.toolkit.browser.contentProviderCategory extension point and the IQuery interface.
Previous Topic:Use of Self variable in template
Next Topic:Display elements associated to a Req
Goto Forum:
  


Current Time: Fri Apr 19 10:55:38 GMT 2024

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

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

Back to the top