Tom Brandenburg Messages: 58 Registered: October 2010 Location: Abstatt, Germany
Member
Hello everybody,
currently I am learning how to deal with workflows, as well as XMI reader and writer. For testing purposes I want to read in an UML file and write it back with this code:
<?xml version="1.0"?>
<workflow>
<!-- Set Properties -->
<property name="model" value="src/model/test.uml" />
<property name="dump" value="src/model/test_dump.uml" />
<property name="src-gen" value="src-gen" />
<!-- Set UML environment -->
<bean class="org.eclipse.xtend.typesystem.uml2.Setup" standardUML2Setup="true"/>
<!-- Read in the model -->
<component class="org.eclipse.emf.mwe.utils.Reader">
<modelSlot value="model"/>
<uri value="${model}"/>
</component>
<!-- Write the model -->
<component class="org.eclipse.emf.mwe.utils.Writer">
<modelSlot value="model"/>
<uri value="${dump}"/>
</component>
</workflow>
I have two questions:
1. How I can force the Reader/Writer to also recognize all elements?
2. How I can set the file encoding of the Writer to ISO-8859-1?
This is not the best newsgroup to talk about transformations and code generation (emft and m2t might be better suited).
Not knowing a single thing about MWE and Xpand, I'd guess one of your problems might be the fact that the schema URI you are using for the UML namespace is not the one Eclipse UML2 normally expects, but I noticed you started a different thread for that issue. I will let other more knowledgeable folks to help you with how to address that part of the problem.
Tom Brandenburg Messages: 58 Registered: October 2010 Location: Abstatt, Germany
Member
Hello Rafael,
ok, you're might be right. At first I thought to post it here because somehow I thought that UML is in the focus here. Maybe the focus changed during formulating the thread
I am quite new to the EMF topic and even new to this newsgroup, so I have to adapt and orientate myself - but it's evolving
No problem, there are a lot of modeling-related newsgroups @ Eclipse.org so it can be challenging to find the best forum for a question. Your other thread on why Eclipse UML2 cannot load properly the XMI you got from BoUML is very relevant for this group though.