|
Re: [xtend] RSM/RSA Adapter replacement [message #511224 is a reply to message #510677] |
Sun, 31 January 2010 13:57 |
Erhard Weinell Messages: 39 Registered: January 2010 Location: Kassel, Germany |
Member |
|
|
Hello Richard,
Richard Wood wrote:
> Would it be worthwhile investing effort in migrating the adapter?
according to my experiences, porting code from oAW to Eclipse M2T is not
much of a problem. Besides small changes to the workflow engine, the effort
more or less boils down to updating imports.
As you noticed, the UML metamodel implementation was updated to version 3.0
in Galileo. However, according to the migration guide [1], opening older
models should be possible with little restrictions. Have you experienced
problems with the MWE here?
> I have also tried to directly process emx and epx files with the MWE
> reader. However it complains that all the ibm specific namespaces cannot
> be resolved.
Unless you can make these informations available to your target environment,
I do not see many options here. We recently had the question whether M2T
Xpand could be back-ported to Eclipse 3.4 which at least is not simple to
achieve.
Best regards,
Erhard Weinell
http://www.eclipse.org/modeling/mdt/uml2/docs/guides/UML2_3. 0_Migration_Guide/guide.html
|
|
|
|
Re: [xtend] RSM/RSA Adapter replacement [message #511953 is a reply to message #510677] |
Wed, 03 February 2010 14:18 |
Richard Wood Messages: 29 Registered: January 2010 |
Junior Member |
|
|
Thanks for your feedback Erhard
Galileo can read older versions of UML models without problems. MWE however cannot. You get these kind of errors.
2654 ERROR AbstractExpressionsUsingWorkflowComponent - Error in Component of type org.eclipse.xtend.XtendComponent:
EvaluationException : Couldn't find extension 'transform(null::Model)'!
nofile[0,19] on line 1 'transform(umlModel)'
This has also been mentioned in other posts. Perhaps the newer version of MWE resolves that issue. Is this a bug?
Yes resolving the ibm namespaces and providing the corresponding jars/plugins is probably a prerequisite for a RSM adapter.
Regards
Richard
[Updated on: Wed, 03 February 2010 14:27] Report message to a moderator
|
|
|
Re: [xtend] RSM/RSA Adapter replacement [message #511957 is a reply to message #510677] |
Wed, 03 February 2010 14:27 |
Richard Wood Messages: 29 Registered: January 2010 |
Junior Member |
|
|
Thanks a lot for your effort in migrating the RSM adapter Dieter. Much appreciated.
Seems to work just like in oaw4.
Two issues though
Some warnings. How can these be resolved?
1142 WARN RSASetup - GMF runtime notation not initialized, missing in classpath
1142 WARN RSASetup - IBM uml notation not initialized, missing in classpath
And a cast exception. I'm mapping Uml to a XML format.
Worked fine when using Eclipse UML2 as input.
3739 ERROR AbstractExpressionsUsingWorkflowComponent - Error in Component of type org.eclipse.xtend.XtendComponent:
EvaluationException : org.eclipse.emf.ecore.xml.type.impl.AnyTypeImpl cannot be cast to org.eclipse.uml2.uml.Type
This happens when accessing uml::Property.type
Would be great if you can give some input on these issues.
Thanks
Richard
[Updated on: Wed, 03 February 2010 14:31] Report message to a moderator
|
|
|
|
|
Re: [xtend] RSM/RSA Adapter replacement [message #512231 is a reply to message #512081] |
Thu, 04 February 2010 13:18 |
Richard Wood Messages: 29 Registered: January 2010 |
Junior Member |
|
|
Thanks for helping Dieter
I need to find those two plugins as they are not delivered with the Galileo distribution of itemis.
As to the cast exception. Yes I'm using Xpand 0.7.2.
And the Xtend transformation worked with Eclipse UML2 models and profiles exported via RSM.
I have set up following metamodel contributors in this sequence XSD Metamodels, RSA/RSM profiles, UML2 profiles, EMF Metamodels
Here is the MWE config I'm using.
<component
class="org.openarchitectureware.adapter.rsdp.workflow.RSASetup" >
<umlExtensionProject class="org.openarchitectureware.adapter.rsdp.workflow.UmlExtensionProject">
<projectName value="${sdmProjectName}"/>
<path value="${sdmProjectPath}"/>
</umlExtensionProject>
<umlExtensionProject class="org.openarchitectureware.adapter.rsdp.workflow.UmlExtensionProject">
<projectName value="${serviceProjectName}"/>
<path value="${serviceProjectPath}"/>
</umlExtensionProject>
<init value="true"/>
</component>
<bean id="sdmProfile"
class="org.eclipse.xtend.typesystem.uml2.profile.ProfileMetaModel">
<profile value="${sdmProfilePath}"/>
</bean>
<bean id="mmXSD"
class="org.eclipse.xtend.typesystem.xsd.XSDMetaModel">
<schemaFile value="dataservicemodel.xsd" />
</bean>
<component class="org.eclipse.emf.mwe.utils.Reader">
<uri value="file://${serviceModelPath}"/>
<modelSlot value="umlModel"/>
</component>
<component class="org.eclipse.xtend.XtendComponent">
<metaModel idRef="sdmProfile"/>
<metaModel idRef="mmXSD"/>
<invoke value="transformations::uml::umlTransform::transform(umlModel)" />
<outputSlot value="xmlModel" />
</component>
Besides the metamodel contributors the sequence of the metamodels defined in the XtendComponent might also be relevant.
Let me know if you see some obvious problem.
Thanks
Richard
[Updated on: Thu, 04 February 2010 13:41] Report message to a moderator
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06353 seconds