oAW 4 migration to oAW5 [message #653735] |
Thu, 10 February 2011 21:47  |
Eclipse User |
|
|
|
Hello,
i want to migrate my oaw4 project to oaw5. Now iam looking for the package org.openarchitectureware.meta.uml.classifier in oaw5. Does anybody know where these classes (e.g. org.openarchitectureware.meta.uml.classifier.Class or org.openarchitectureware.meta.uml.classifier.Attribute) are in the plugins?
Thanks
|
|
|
|
Re: oAW 4 migration to oAW5 [message #654182 is a reply to message #653738] |
Mon, 14 February 2011 14:18   |
Eclipse User |
|
|
|
Hi Christian,
thanks for your answer.
Iam using Enterprice Architecture 8.0.
Currently the oaw4 workflow is:
<cartridge
file="org/openarchitectureware/workflow/oawclassic/classicstart.oaw">
<metaEnvironmentSlot value="me" />
<instantiatorEnvironmentSlot value="ie" />
</cartridge>
<component
class="org.openarchitectureware.core.frontends.xmi.workflow.XMIInstantiator">
<instantiatorEnvironmentSlot value="ie" />
<modelFile value="${model.xmi}" />
<xmlMapFile value="${toolMappingFile}" />
<metaMapFile value="${metaMapFile}" />
<toolAdapterClassname value="${toolAdapterClassname}" />
<moduleFile value="${moduleFile}" />
</component>
...
The model.xmi is the exported xml file by EA. The xmlMapFile is a XMI1.2 file calls ea41_xmi12_all-mod.xml.
Iam using own meta classes like public class Enumeration extends org.openarchitectureware.meta.uml.classifier.Class in all xpt,ext,chk files for generating customize classes.
Do you know how to generate a uml2 conform file via EA?
If i want to use oaw5, i have to remove all package dependens to org.openarchitectureware.meta.uml.* and org.openarchitectureware.core.frontends.xmi.*?
Thanks
|
|
|
|
|
|
|
Re: oAW 4 migration to oAW5 [message #654202 is a reply to message #654201] |
Mon, 14 February 2011 15:06   |
Eclipse User |
|
|
|
hi,
you will have to migrate all of your code to work with eclipse uml2. this means: no self-created classes for stereotypes / tagged values etc. Eclipse Uml2 supports profiles but i cannot say how good these are supported by the exporter.
~Christian
|
|
|
Re: oAW 4 migration to oAW5 [message #654207 is a reply to message #654202] |
Mon, 14 February 2011 15:22   |
Eclipse User |
|
|
|
hi,
also if the exporter doesn't support the Sterotypes i have to change the uml tool?
Is there a good tutorial for UML2 how i can create own Sterotypes? Or is this different for every UML tool?
Is there a possibility to use oaw4 and eclipse 3.6?
[Updated on: Mon, 14 February 2011 15:26] by Moderator Report message to a moderator
|
|
|
|
|
|
Re: oAW 4 migration to oAW5 [message #655189 is a reply to message #655181] |
Fri, 18 February 2011 15:34   |
Eclipse User |
|
|
|
Hi,
no you do not get java classes / interfaces generated but you can of course directly work with java - this just works with means of reflection
e.g.
org.eclipse.uml2.uml.Element.getAppliedStereotype(String)
org.eclipse.uml2.uml.Element.getValue(Stereotype, String)
~Christian
|
|
|
|
Re: oAW 4 migration to oAW5 [message #655533 is a reply to message #655446] |
Mon, 21 February 2011 16:04   |
Eclipse User |
|
|
|
Hi,
i get always a error and i don't know why.
The mwe workflow:
<?xml version="1.0" encoding="UTF-8"?>
<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="${profile.name}MM" class="org.eclipse.xtend.typesystem.uml2.profile.ProfileMetaModel">
<profile value="${uml.dir}${profile.name}.profile.uml" />
</bean>
<component class="org.eclipse.xtend.typesystem.emf.XmiReader">
<modelFile value="src/tools/model/model.uml" />
<outputSlot value="model"/>
</component>
<component class="org.eclipse.emf.mwe.utils.DirectoryCleaner" directory="${srcGenPath}/"/>
<component class="org.eclipse.xpand2.Generator"
skipOnErrors="true" fileEncoding ="ISO-8859-1">
<metaModel idRef="EmfMM"/>
<metaModel idRef="UmlMM"/>
<metaModel idRef="${profile.name}MM"/>
<expand value="Root::Root FOR Model" />
<outlet path="${srcGenPath}"/>
<beautifier class="org.eclipse.xpand2.output.JavaBeautifier" />
</component>
and the error message is:
5125 INFO Generator: generating 'Root::Root FOR Model' => src/main/generated
5453 ERROR Error in Component of type org.eclipse.xpand2.Generator:
EvaluationException : Couldn't find type or property 'Model'
[45,5] on line 1 'Model'
5453 ERROR Workflow interrupted. Reason: Couldn't find type or property 'Model'
5453 ERROR [ERROR]: Couldn't find type or property 'Model'(Element: Model; Reported by: Generator: generating 'Root::Root FOR Model' => src/main/generated)
5453 ERROR [ERROR]: Couldn't find type or property 'Model'(Element: EXPAND Root::Root FOR Model; Reported by: Generator: generating 'Root::Root FOR Model' => src/main/generated
Do you have an idea?
|
|
|
|
|
|
Re: oAW 4 migration to oAW5 [message #655673 is a reply to message #655668] |
Tue, 22 February 2011 09:30   |
Eclipse User |
|
|
|
Hi,
maybe this has to do with the order od the stuff in the workflow.
maybe you should put <metaModel idRef="EmfMM"/> at the third position in the workflow.
if this does not work you may have to write a java extensuion for the toFirstUpper
~Christian
|
|
|
|
Re: oAW 4 migration to oAW5 [message #655718 is a reply to message #655706] |
Tue, 22 February 2011 12:38   |
Eclipse User |
|
|
|
Ah,
you did not say that this was an UI issue - You always have to differentiate between errors you get in the ui and errors that you get from the workflow.
~ Christian
|
|
|
|
Powered by
FUDForum. Page generated in 0.10369 seconds