From: David C. <dav...@gm...> - 2010-11-30 11:07:51
|
Hi! I have some problems with some profile transformations between EA and MDT-UML. Until now I've been working with ea_uml2exporter without problem, but I'm facing a problem I think I can't manage alone. The main references I've found are the docs located in SF download section [1], mainly "Installation_of_oAW_4.3.1_and_EA.pdf", "EA_and_oAW_Tutorial_1_v1.1.pdf" (both of them are quiet outdated), and the example workflows provided in ea_uml2exporter-2.0-RC3 bundle. Right now I'm trying to transform a model with an UML profile, so I'm working with the example "MyDSL" and replicating the steps described in the "EA and oAW" tutorial with an ea_uml2exporter-2.0-RC3/MWE based environment, but I'm having some problems. For example, I created a workflow for the profile transformation like this: <?xml version="1.0" encoding="UTF-8"?> <workflow> <property file="profile.properties" /> <bean class="org.eclipse.emf.mwe.utils.StandaloneSetup" platformUri=".."/> <bean class="org.eclipse.xtend.typesystem.uml2.Setup" standardUML2Setup="true" /> <component class="net.cmp4oaw.uml2export.mwe.EA_Xmi2ProfileExporter" > <EapFile value="${profile.eap_file}" /> <ModelFile value="${profile.dir}/${profile.name}.profile.uml" /> <PackageName value="${profile.package}" /> <Cleanup value="true" /> </component> </workflow> And it results in an apparently MDT-UML correct model. Then I use that model in the EAP file transformation, but the new resulting model isn't profiled. The same example works smoothly in ea_uml2exporter-1.7.2-RC1, but using oAW instead of MWE. I don't know where is the error, but I wouldn't be surprised if there is an error in my workflow definitions. My contents of my workflow.mwe file are: <?xml version="1.0" encoding="ISO-8859-1"?> <workflow> <property file="workflow.properties" /> <bean class="org.eclipse.emf.mwe.utils.StandaloneSetup" platformUri=".."/> <bean class="org.eclipse.xtend.typesystem.uml2.Setup" standardUML2Setup="true" /> <!-- Metamodel-Definition --> <bean id="EmfMM" class="org.eclipse.xtend.typesystem.emf.EmfMetaModel" metaModelPackage ="org.eclipse.emf.ecore.EcorePackage"/> <bean id="UmlMM" class="org.eclipse.xtend.typesystem.uml2.UML2MetaModel"/> <bean id="MyDSLMM" class="org.eclipse.xtend.typesystem.uml2.profile.ProfileMetaModel"> <profile value="Profile/MyDSL.profile.uml" /> </bean> <cartridge file="UML2Export.mwe" inheritAll="true"> <UML2Exporter.file value="Model/EA_Tutorial1.eap" /> <UML2Exporter.package value="Models/Project Model/ExamplePkg" /> <model.dir value="Model/" /> <model.file value="tutorial.uml" /> </cartridge> </workflow> And the corresponding Uml2Export.mwe file: <?xml version="1.0" encoding="ISO-8859-1"?> <workflow> <bean class="org.eclipse.emf.mwe.utils.StandaloneSetup" platformUri=".."/> <bean class="org.eclipse.xtend.typesystem.uml2.Setup" standardUML2Setup="true" /> <property name="UML2Exporter.Cleanup" value="true" /> <property name="UML2Exporter.ChangedOnly" value="flase" /> <property name="UML2Exporter.profilepackage" value="" /> <property name="UML2Exporter.convertUMLTypes" value="true" /> <component class="net.cmp4oaw.uml2export.mwe.EA_Xmi2Exporter" > <EapFile value="Model/EA_Tutorial1.eap" /> <ModelFile value="${model.dir}${model.file}" /> <PackageName value="${UML2Exporter.package}" /> <Profile value="${profile.file}" /> <PackageProfile name="${UML2Exporter.profilepackage}" value="${profile.name}" /> <ChangedOnly value="${UML2Exporter.ChangedOnly}" /> <convertUMLTypes value="${UML2Exporter.convertUMLTypes}" /> <Cleanup value="${UML2Exporter.Cleanup}"/> </component> </workflow> I've tried too with ea_uml2exporter-2.0-RC2 and it throws the following error in console: 10030 ERROR WorkflowRunner - [ERROR]: Error in loading profile [Profile/MyDSL.profile.uml]. java.lang.NullPointerException(Element: -UNKNOWN-; Reported by: -UNKNOWN-) I really don't know where the error is, or if it's a bug in ea_uml2exporter-2.0-RC3, an error in the definition of my workflows, etc. I would be very grateful if you could point me to my error. Thank you very much for your attention :-) Cheers, [1] http://sourceforge.net/projects/components4oaw/files/ -- David Castellanos Serrano LouiSE Research Group http://www.i3a.uclm.es/ http://www.uclm.es |