importing ReqIF files
hi,
can anyone get me a sample ReqIF file which can be imported in RRC... i tried those in the following link http://www.omg.org/spec/ReqIF/1.0.1/ which is given in the help page , but it is not importing it is showing error "import failed"
Accepted answer
If you have RM installed, you can go to the "ReqIF Manager" tab in the project properties and create a new definition, add an artifact, save the definition, and export it to a .tar file. Inside the .tar file is an XML which contains the ReqIF source. Otherwise, I can attach a sample source here but it is a bit large. Hope it helps,
2 other answers
I was wondering why new artifact types are created when we import a ReqIF definition to an RRC project? What is the logic of this?
We have same requirement type in every project but whenever we import something we have "document2", "document3",etc. I believe RRC should compare the artifact types of different RRC projects where a reqIF import is gonna take place and if they are not the same, it should create a new type.
Comments
The ReqIF infocenter topic gives details on how it works:
http://pic.dhe.ibm.com/infocenter/clmhelp/v4r0m1/index.jsp?topic=%2Fcom.ibm.rational.rrm.help.doc%2Ftopics%2Fr_reqif_format.html
Notably:
Important: A ReqIF import creates types and artifacts during the first import into a project. Later imports of the same data update the existing resources, except for view column information. A ReqIF import only merges system-defined attributes and types. All other artifact types, attributes, data types, and folders are created in the project you are importing to if they have not been previously imported from a ReqIF file. For example, if you have a
Priority
attribute in the ReqIF file, and the current project already has a
Priority
attribute, the import creates another attribute that is named
Priority2
.
So essentially the well-known System Types (Requirement Text, Title, Created On, Creator, etc) are able to be re-used, but at present there is no way to map user-defined types in a ReqIF file to existing types in a project.
The recommendation is to seed any types in a project initially via ReqIF. This associates that ReqIF object with the created type in RRC. Thereafter, any imports using that same type (with the same ReqIF identifier) will be treated as the same.
Hope that helps,
Tom