Hi Tristan, Thanks for your response and reference. As I have mentioned in the previous mail I do have the gendoc pdf from Topcased, I have already seen it and tried. Still, I can't figure out how to declare the object "a" in question. I do know that it is the model to which requirements are attached but what is it?
a. Is it the name of the sysmldi file? b. Is it the name of the diagram? c. Is it the name of the requirement file? d. Is it the name of the package which contains the requirements? What is the object and how to declare it? Can you please provide the syntax? I can't figure this out. Hope you got to the nature of the problem. If the question is still not clear let me know. Regards, Gajendra Kashyap Hi Gajendra, A is an element in the model. Did you consult the gendoc2 tutorial ? When you use gendoc2, you have to define a context to browse your model if you want to reuse the script you received in a gendoc tag, you shall replace 'a' by 'self' the keyword representing the current element. Actually the code 'a.getRequirementList' get the current requirements linked to an element in the model. Don't hesitate if you have more questions. Regards Tristan Tristan Faure Software Engineer T : +33(0)5 34 36 34 46 [email protected]<mailto:[email protected]> 6, impasse Alice Guy - BP 43045 31024 Toulouse Cedex 3 www.Atos.net <http://www.atos.net/><http://www.atos.net/> [atos_logotype.gif] De : [email protected] [mailto: [email protected]] De la part de Topcased user list where issues are discussed Envoy? : samedi 30 juillet 2011 12:10 ? : [email protected] Objet : [Topcased-users] Document generation from Topcased Hi, I need a bit of help in generating a requirement document from the requirement model created in Topcased. I have received a small script which I received but I can't figure out the whole stuff due to lack of proper documentation of the API. Unfortunately I've not received a response from the person who sent me this script. Can somebody help me figure out how to declare and use "a" in the first line of this script part? [for(cur:requirement::CurrentRequirement | a.getRequirementList())]<drop/> [cur.identifier/] <richText>[cur.shortDescription/]</richText> #EndText [for(al:requirement::AttributeLink|cur.attribute)]<drop/> [if (al.value.eClass().name='Requirement')][al.name/<http://al.name/>] [al.value.oclAsType(ttm::Requirement).ident/][/if][/for] [for(ta:requirement::TextAttribute|cur.attribute)]<drop/> [if not (ta.value='')][ta.name/<http://ta.name/>] <richText>[ta.value/]</richText>[/if][/for] [/for] I've already seen the Topcased pdf available on the website but I'm not able to proceed by that. Can the developers provide documentation on the APIs involved and the objects used in the document generation? Thanks for the help. Kind Regards, Gajendra __________
_______________________________________________ Topcased-users mailing list [email protected] http://lists.gforge.enseeiht.fr/cgi-bin/mailman/listinfo/topcased-users
