Thanks for responding Tristan, That didn't quite work. Didn't recognize the variable attributes.
However the following: [for (rr:CurrentRequirement|req.getLinkedCurrentRequirements())] [rr.attribute->asSequence()->at(1)/] [/for] produced this: org.topcased.requirement.impl.TextAttributeImpl@10f37c5 (name: Implementation_Timing) (value: Phase1) and [rr.attribute->asSequence()->at(1).name/] produced Implementation_Timing However [rr.attribute->asSequence()->at(1).value/] produced an error. Didn't like 'value' So how can I obtain the value of this attribute? Is it possible to obtain the value of a CurrentRequirement attribute by its name. Something like currentRequiremenet.getAttributeByName(name) ??? Thanks. On Tue, Apr 10, 2012 at 11:35 AM, Topcased user list where issues are discussed <topcased-us...@gforge.enseeiht.fr> wrote: > This code shall make the job : > > > > [for (a : ttm::Attribute | rr.attributes)] > > Found One! > > [/for] > > Regards > > > > Tristan FAURE > > > > *De :* topcased-users-boun...@gforge.enseeiht.fr [mailto: > topcased-users-boun...@gforge.enseeiht.fr] *De la part de* Topcased user > list where issues are discussed > *Envoyé :* mardi 10 avril 2012 17:15 > *À :* topcased-us...@gforge.enseeiht.fr > *Objet :* [Topcased-users] Obtaining the attributes of a > CurrentRequirement > > > > So I am using the following for loop to get current requirements > associated with an upstream requirement but I am having trouble figuring > out how to access attributes I've defined for a current requirement. > > > > [for (rr:CurrentRequirement|req.getLinkedCurrentRequirements())] > > [rr/] > > [/for] > > > Could someone give me a hint? > > Thanks in advance. > ------------------------------ > > Ce message et les pièces jointes sont confidentiels et réservés à l'usage > exclusif de ses destinataires. Il peut également être protégé par le secret > professionnel. Si vous recevez ce message par erreur, merci d'en avertir > immédiatement l'expéditeur et de le détruire. L'intégrité du message ne > pouvant être assurée sur Internet, la responsabilité du groupe Atos ne > pourra être engagée quant au contenu de ce message. Bien que les meilleurs > efforts soient faits pour maintenir cette transmission exempte de tout > virus, l'expéditeur ne donne aucune garantie à cet égard et sa > responsabilité ne saurait être engagée pour tout dommage résultant d'un > virus transmis. > > This e-mail and the documents attached are confidential and intended > solely for the addressee; it may also be privileged. If you receive this > e-mail in error, please notify the sender immediately and destroy it. As > its integrity cannot be secured on the Internet, the Atos group liability > cannot be triggered for the message content. Although the sender endeavors > to maintain a computer virus-free network, the sender does not warrant that > this transmission is virus-free and will not be liable for any damages > resulting from any virus transmitted. > > _______________________________________________ > Topcased-users mailing list > Topcased-users@lists.gforge.enseeiht.fr > http://lists.gforge.enseeiht.fr/cgi-bin/mailman/listinfo/topcased-users >
_______________________________________________ Topcased-users mailing list Topcased-users@lists.gforge.enseeiht.fr http://lists.gforge.enseeiht.fr/cgi-bin/mailman/listinfo/topcased-users