Hi François,
Using TOPCASED requirement you normally can import the ids.

I see two problems.
-your regular expression is not correct
-If it is at the same line you cannot extract ID AND description.

To fix them

-          try this regular expression:
(EC_ABC_...).*

-          to get description you have to embed in your TOPCASED platform a new 
plugin which will be available to extract the description when the id is 
matched. I copy extract from a previous mail explaining how to do it, if you 
have questions about how to create a plugin feel free to ask :


"No, It is a current limitation, doc2model (back end technology for importing 
data currently only works using paragraphs visitor)



anyway to manage text you can use extension point from the technology to 
intercept event creation, you can create a plugin subscribing to the extension 
point using :



<extension

      point="org.topcased.doc2model.parser.checker">

   <checker

         instance="MyChecker">

   </checker>

</extension>



And referencing a class able to match your Text Regex, be careful the checker 
will be called for each import so you need to work on the condition.



To retrieve the latest object created by the import tool and to create new Text 
elements :

EObject eobject = process.getLatestCreatedElement();

if (eobject instanceof ttm.Requirement)

 {

      ttm.Requirement req = (ttm.Requirement) eobject;

Text createText = TtmFactory.eINSTANCE.createText();

createText.setValue(buffer.toString());

req.getTexts().add(createText);

}"

Regards

Tristan FAURE





De : [email protected] 
[mailto:[email protected]] De la part de Topcased user 
list where issues are discussed
Envoyé : mardi 26 avril 2011 19:45
À : topcased-users
Objet : [Topcased-users] requirements' import

Hello everybody !

This is a requirement on one paragraph, of style 'ExigenceClient' in a word 
.docx document:

EC_ABC_001      XXX product replacement


I wanted to import it in my topcased model:
'EC_ABC_001', as Requirement ID
and 'XXX product replacement' as text or exigence title.

Unfortunately
with regex 'EC_ABC_...', I get nothing as ID
with regex 'EC_ABC_...' and style 'ExigenceClient', idem
with style 'ExigenceClient', I get "EC_ABC_001XXX product replacement", without 
tab (nor space) between 001 and XXX, as requirement ID

Does anybody know if what I want is possible, and if it is, how to do ?

We don't want to rewrite, restyle, or do anything of the kind on our 100s of 
requirements in our docs. The aim is to use topcased to build the traceability 
matrix.

Thanks for any help.

François








[cid:[email protected]]

TROMPAT François

Telephone : +33 (0)4 76 41 40 10
bureau : GA 108
Fax : +33 (0)x xx xx xx xx
www.atosorigin.fr<http://www.atosorigin.fr>


Développement durable, anticipons pour notre avenir / Sustainability, advance 
our future
[cid:[email protected]]N'imprimez ce mail que si nécessaire / 
please consider your environmental responsibility before printing this e-mail.

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 Origin ne pourra 
être recherché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 recherché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 Origin group liability cannot be triggered 
for the message content. Although the sender endeavours 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.



<<inline: image001.gif>>

<<inline: image002.gif>>

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

Reply via email to