How to share model instanced between Xtext generated model and referred DomainModel [message #689024] |
Sun, 26 June 2011 11:00  |
Eclipse User |
|
|
|
Hi,
This was my use case, I was writing a grammar for simple business rules:
"age > 18"
The rule for each comparison expression looks like this:
ComparisonExpression:
(variable=[Variable]) '>' INT
where 'age', 'gender' and 'DOB' are instances of [Variable] that come from a referenced Ecore model (MyDomainModel) in my workspace.
With a lot of help in my previous posts I was able to generate the ecore model "BusinessRulesModel", content assists etc from my grammar.
My next question is following:
In my runtime work bench MyDomainModel instances are created and hence instances of EClass "Variable" such as "age", "gender" and "DOB" are also created. I want to use these instances in my Xtext generated BusinessRuleModel.
How do I integrate the two. Thanks for any help.
Best Regards,
Nidhi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05389 seconds