Hi Anne,

Thanks for your response, that was quite a silly mistake by me. I corrected it and tried again. I got an error

"See details. Problem during requirement model loading, the requirement models can not be loaded : null"

Just to be sure if everything was in order, I created a fresh model with fewer requirements to test the script. I received the same error.

So, I have two questions for everyone on this list including developers:

1. Does this feature work with SysML models?
2. Are there any complete example models with scripts for extracting requirements from the Topcased requirement model?

Have I missed out something which I don't know?

Thanks in advance for your help.

Regards,
Gajendra Kashyap

 Thanks for your response. However, I did not forget it. Here is my
 script. Very simple. I don't know if there is a mistake somewhere.

 <config>
 <param key=?project? value=?C:\Users\workspace\ProjectName? />
 <param key=?model?
 value=?${project}\Models\TextualRequirements\ProjectName.sysml? />
 <output path=?${project}\Models\GeneratedDocuments\Report.docx? />
 </config>


 <context model=?${model}? element=?Project/Specification/Functional
requirements/Hydraulic System (ATA 29)? importBundles=?requirement? />

 <gendoc>

[for (cur:requirement::CurrentRequirement | self.getRequirementList ())
 ] <drop/>

 [cur.identifier/]

 <richText>[cur.shortDescription/]</richText>

 #EndText

  [/for]
 </gendoc>


 Error in the document generation "See details.  The execution of a
 script failed: Error during generation of Gendoc script :Cannot find
 operation (getRequirementList()) for the type (Package)".

 Any ideas??

 Regards,
 Gajendra Kashyap
Hi Gajendra,

The problem is the name of the attribute : it is not "importBundles"
but "importedBundles", so the import is not taken into account.
We will add error messages inside Gendoc2 for invalid attributes.

Regards,
Anne




_______________________________________________
Topcased-users mailing list
[email protected]
http://lists.gforge.enseeiht.fr/cgi-bin/mailman/listinfo/topcased-users

Reply via email to