|
Re: ReqIF and Gendoc [message #1699853 is a reply to message #1699319] |
Sat, 27 June 2015 10:44 |
|
Hi Axel Thor,
Interesting question, but at least I have not a clue. However, this sounds a great feature for RMF. If you make progress, it would be great if you could share your discoveries with the RMF community. It would be a valuable addition to the project.
Cheers,
- Michael
|
|
|
Re: ReqIF and Gendoc [message #1700972 is a reply to message #1699853] |
Wed, 08 July 2015 13:02 |
Axel Thor Asthorsson Messages: 18 Registered: May 2015 |
Junior Member |
|
|
Hi
I was able to load the reqif file directly like any other EMF model in my word template. Eclipse seems to convert the reqif xml to a model very similar (or even identical) to the ReqIF CMOF defined by OMG (omg.org/spec/ReqIF/1.1/]) By understanding the structure of the CMOF you are able to retrieve the information needed from the model. However the queries tend to get a bit big when the model contains requirement types with many custom attributes since looping through all attributes is needed to search for the right one.
I used the Acceleo interpreter to formalize my queries to the requirement model. It recognized the reqif cmof meta model and has a nice auto complete feature when writing queries. To make correct queries to be used in your word or odt template make sure to open the ReqIF model in Ecore Reflective sample editor and select the root ReqIF element since that is the place from where the queries are made in gendoc (unless you specify something else).
regards
Axel Thor
[Updated on: Wed, 08 July 2015 13:03] Report message to a moderator
|
|
|
|
Re: ReqIF and Gendoc [message #1766471 is a reply to message #1700972] |
Wed, 21 June 2017 18:02 |
|
Hi Axel,
Can you please explain in steps & share how you have generate document from ReqIF file.
Axel Thor Asthorsson wrote on Wed, 08 July 2015 13:02Hi
I was able to load the reqif file directly like any other EMF model in my word template. Eclipse seems to convert the reqif xml to a model very similar (or even identical) to the ReqIF CMOF defined by OMG (omg.org/spec/ReqIF/1.1/]) By understanding the structure of the CMOF you are able to retrieve the information needed from the model. However the queries tend to get a bit big when the model contains requirement types with many custom attributes since looping through all attributes is needed to search for the right one.
I used the Acceleo interpreter to formalize my queries to the requirement model. It recognized the reqif cmof meta model and has a nice auto complete feature when writing queries. To make correct queries to be used in your word or odt template make sure to open the ReqIF model in Ecore Reflective sample editor and select the root ReqIF element since that is the place from where the queries are made in gendoc (unless you specify something else).
regards
Axel Thor
|
|
|
Powered by
FUDForum. Page generated in 0.02987 seconds