|
|
Re: [BPMN2] Missing namespace export for XSD-based serialization [message #551727 is a reply to message #551700] |
Mon, 09 August 2010 11:12 |
Joern Messages: 22 Registered: March 2010 |
Junior Member |
|
|
Hello Henning,
Quote: | Which "version" of our project do you use? The latest from our git repository?
|
yes - got it from http://git.eclipse.org/c/bpmn2/.
Quote: | I'll try to test this myself - if you could supply a small sample that would be useful.
|
I wrote a small workaround to reference bpmn2 models in xText models. If you drop me a note with your email I can send you the source for the workaround and the corresponding ecore/xText projects.
Essential a sample grammar looks like (assuming a corresponding ecore model)
grammar foo.bar.mydsl.MyDsl with org.eclipse.xtext.common.Terminals
import "platform:/resource/foo.bar.ecore/model/My.ecore"
import "http://www.eclipse.org/emf/2002/Ecore" as ecore
Model:
elements+=Element*;
Element :
Modelimport | Greeting
;
Modelimport :
'Import'
importURI=STRING
;
Greeting:
'Hello' name=ID '!'
('Reference' reference=[ecore::EObject])?;
A sample xText model will look like (assuming a bpmn2 model called "My.bpmn2" in the same directory containing an element with the name "MyProcess"):
Import "My.bpmn2"
Hello Henning !
Reference MyProcess
Cheers,
Joern
[Updated on: Mon, 09 August 2010 11:13] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02377 seconds