| [xtend] RSM/RSA Adapter replacement [message #510677] |
Thu, 28 January 2010 05:29  |
Richard Wood Messages: 18 Registered: January 2010 |
Junior Member |
|
|
Hello
The question how to process Rational Software Modeler (RSM) files with Galileo and TMF 0.7.2 has been asked before. But not satisfactory I think.
We're using RSM 7.5.3.
- One solution is to export models to Eclipse UML2 format.
- Then rename the uml namespace reference from 2.1.0 to 3.0.0.
- And remove any duplicate annotation entries in the profiles.
What would be the best strategy to automate this process?
I believe the original RSM Adapter from openarchitectureware 4.3.1 has not been migrated to Eclipse 3.5. Would it be worthwhile investing effort in migrating the adapter?
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.
What are your thoughts on this?
Thanks for any input
Richard
|
|
|
| Re: [xtend] RSM/RSA Adapter replacement [message #511224 is a reply to message #510677] |
Sun, 31 January 2010 08: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 09:18   |
Richard Wood Messages: 18 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 09:27] Report message to a moderator
|
|
|
| Re: [xtend] RSM/RSA Adapter replacement [message #511957 is a reply to message #510677] |
Wed, 03 February 2010 09:27   |
Richard Wood Messages: 18 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 09:31] Report message to a moderator
|
|
|
|
|
| Re: [xtend] RSM/RSA Adapter replacement [message #512231 is a reply to message #512081] |
Thu, 04 February 2010 08:18   |
Richard Wood Messages: 18 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 08:41] Report message to a moderator
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05357 seconds