|Weaving a new model from existing ones [message #643823]
||Wed, 08 December 2010 07:16
Registered: December 2010
I am struggling with this for quite a while (being totally new to EMF) and since I couldn't really find an answer (but always found very qualified responses in this forum) I'm giving it a shot here.
I try to weave 2 ecore-models, the BPMN20 model from here here and the R2ML model from here. As the latter provides only a somewhat unsatisfactory XSD for importing I instead used the r2ml.ecore from this project which does something similar to what I want to do.
The aim is to be able to create a model in the generated editor which incorporates both models and the few new elements from a model I am weaving in between and to finally apply some OCL constraints for checking model consistency. Shouldn't be too hard, right?
Well, I fetched the files from the repository (which are working flawlessly) and merged both the R2ML model and the other adaptions (that form my own model) into 2 subpackages of the BPMN model, pulled the necessary strings to attach them with each other (i.e. references, inheritance, etc.) and tried to create the genmodel. After playing around with the different namespaces (which is hopefully correct by now, at least the generated code throws me no longer errors) I could finally generate the edit and the editor code and try to run the latter.
Alas, when trying to create a new example file with the recently generated editor I find two problems.
1) The models are not woven but I can seperatly chose creating a BPMN, R2ML or the adaptions model what is not intended as I want a only to model BPMN basis model only with some new elements and a model to work with
2) I get a "FeatureNotFoundException" as the feature "definitions" (the basic element of the BPMN model) is said to be not found...which is not really helpful to find the problem while trying to run the editor and to create a new example.
I'd appreciate any clues to help me with this matter as I am not sure what or where to change to get this thing running.
Powered by FUDForum
. Page generated in 0.01750 seconds