Hi Malick,

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,

Hello, I think that you forgot import the bundle requirement in your context.
<context ... importedBundles='requirement' ... />

Regards,

Malick

De : [email protected]
[mailto:[email protected]] De la part de
Topcased user list where issues are discussed
Envoy? : mardi 6 septembre 2011 10:42
? : [email protected]
Objet : [Topcased-users] Document generation


Hi,

I have created a requirements model in Topcased. The model was
created by drag and drop of upstream requirements to a requirements
diagram containing packages, which are there to partition and contain
requirements.

I'm unable to extract the requirement list from the model. When I use
the getRequirementList() service, it says, that the method cannot be
used for packages.

My model is like this

Parent package [Model]

    |__ Package-1

    |__ Package-2

    |__ Package-3

and so on.



How can I extract requirements from the model?



Regards,

Gajendra Kashyap



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

Reply via email to