Hello Anne,

<Before going to far on Gendoc2 advanced context capabilities, have you seen 
that you have a lot of facilities to access requirements and model elements are 
provided in services from "requirement" external bundles (all methods are 
described slide 25 of Gendoc2 tutorial) ?
Ex : get all requirements attached to a model element, get all Upstream 
requirements attached to a CurrentRequirement, etc...

If that is what you want to get, just refer to your .uml model in the context, 
add "requirement" to the list of importedBundles, and you can use these 
methods.>

I've tried this approach and... It did not worked.. As there is no reference to 
the .requirement model in the .uml model, I concluded that It was not working 
this way... But maybe I'm wrong at all.
Do you have an example of setting the context to your UML model, and then 
getting its requirements with the .getRequirementList() ?


<If not, could you send us your document template (or at least the part 
containing this access to both requirement model and uml model), because the 
best solution depends on the result you want to obtain.>

At first, I test my Template using this :

<context model=’${umlmodel}’ importedBundles=’requirement’ 
searchMetamodels=’true’ element='model/pack/elemnt'/><drop/>
<gendoc>
Size=[self.getRequirementList()->size()/]
</gendoc>

And, if it is not 0, then I've found the requirements of my element..
Unfortunately, I caught only zero

What do you think of it ?

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

Reply via email to