HI,

I made some tests with the default 'templatePapyrus.docx'.

In the default 'templatePapyrus.docx', the problem is:
when I set the attribute 'element' (i.e. : element='model/Package1')
in the context tag and I generate the expected generated documentation,
the result is not OK. See subsequent tests.

---- Context ----
Context OS : Windows Seven 64 bits
Context Java : jre_1.5_22 (32 bits) for Topcased
Context Word : Microsoft Word 2010
Context model :
Creation of a very small Papyrus model :
model --> Package1
                    --> umlDiagramClass1, with 2 classes and an association 
link (class1 & class2)
              --> Package2
                    --> umlDiagramClass2, with 2 classes and an association 
link (class3 & class4)

---- Test_01 ----
This test is done with these parameters values in 'templatePapyrus',
with element='{0}'
<config>
<param key='generic_generation_output' 
value='C:\Users\MyName\wp_Test\JohnProject01\outFilePackage12.docx'/>
<param key='generic_generation_model' 
value='C:\Users\MyName\wp_Test\JohnProject01\model.di'/>
<output path='${generic_generation_output}' />
</config>
<context model='${generic_generation_model}' element='{0}' 
importedBundles='gmf;papyrus;requirement' searchMetamodels='true'/>
The result is OK.
I get these two diagrams in the generated document : outFilePackage12.docx.


---- Test_02 ----
This test is done with these parameters values in 'templatePapyrus',
with element='model/Package1'
<config>
<param key='generic_generation_output' 
value='C:\Users\MyName\wp_Test\JohnProject01\outFilePackage1.docx'/>
<param key='generic_generation_model' 
value='C:\Users\MyName\wp_Test\JohnProject01\model.di'/>
<output path='${generic_generation_output}' />
</config>
<context model='${generic_generation_model}' element='model/Package1' 
importedBundles='gmf;papyrus;requirement' searchMetamodels='true'/>
The result is NOK.
The message is :
  The execution of a script failed: The element 'model/Package1' was not found 
in the model '' [platform:/resource/JohnProject01/model.di].
  Image with id '[d.getDiagram()/]' cannot be found. TIP: Check script used 
inside the attribute 'object' of <image> tags. Brackets may be missing.
The document 'outFilePackage1.docx' is not generated.

In the runtimeEclipse, i get, in the console, these lines:
The element 'model/Package1' was not found in the model '' 
[file:/C:/Users/NG20096/wp_Test/JohnProject01/model.di].
                at 
org.topcased.gendoc2.tags.handlers.impl.context.EMFModelLoaderService.getCurrentElement(EMFModelLoaderService.java:311)
                at 
org.topcased.gendoc2.tags.handlers.impl.context.ContextService.getElement(ContextService.java:193)
                at 
org.topcased.gendoc2.tags.handlers.AbstractScriptTagHandler.runProcessorScript(AbstractScriptTagHandler.java:83)
                ...

---- Test_03 ----
This test is done with these parameters values in 'templatePapyrus' :
element='model/Package1' and model.uml in place of model.di
<config>
<param key='generic_generation_output' 
value='C:\Users\MyName\wp_Test\JohnProject01\outFilePackage1.docx'/>
<param key='generic_generation_model' 
value='C:\Users\MyName\wp_Test\JohnProject01\model.uml'/>
<output path='${generic_generation_output}' />
</config>
<context model='${generic_generation_model}' element='model/Package1' 
importedBundles='gmf;papyrus;requirement' searchMetamodels='true'/>
The result is NOK.
The file was generated, the statics parts of the template are generated, but 
there are no diagrams.

---- My questions: ----
Did I forget something in the template?
Must I add another thing in the template?
What can I do?

Thanks a lot for your help.
Best regards
Renan LEROUX


The information in this e-mail is confidential. The contents may not be 
disclosed or used by anyone other than the addressee. Access to this e-mail by 
anyone else is unauthorised.
If you are not the intended recipient, please notify Airbus immediately and 
delete this e-mail.
Airbus cannot accept any responsibility for the accuracy or completeness of 
this e-mail as it has been sent over public networks. If you have any concerns 
over the content of this message or its Accuracy or Integrity, please contact 
Airbus immediately.
All outgoing e-mails from Airbus are checked using regularly updated virus 
scanning software but you should take whatever measures you deem to be 
appropriate to ensure that this message and any attachments are virus free.

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

Reply via email to