Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » updating ecore instance with derived ocl values
updating ecore instance with derived ocl values [message #663195] Mon, 04 April 2011 09:45 Go to next message
khurram is currently offline khurramFriend
Messages: 3
Registered: April 2011
Junior Member
Hi,

I am creating an ecore model programmatocally(java) and trying to create dynamic intance of ecore model. I have a reference of type double with deriving ocl statement in ecore. when i try to get the value of that from instance model it always gives me 0. On the other hand if i run the same ecore model in eclispe IDE and take instance one of same class in ecore then every thing works fine.... why it is not getting the derived value in java programmatically? whats the difference....?

Warmest Regards

khurram
Re: updating ecore instance with derived ocl values [message #663310 is a reply to message #663195] Mon, 04 April 2011 15:04 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Khurram,

There are extension points for registering things that you need to do
manually when running stand alone. Easiest would be to run your
process as an Eclipse application; failing that, you'll need to register
the same things manually...



khurrams@ics.kth.se wrote:
> Hi,
>
> I am creating an ecore model programmatocally(java) and trying to
> create dynamic intance of ecore model. I have a reference of type
> double with deriving ocl statement in ecore. when i try to get the
> value of that from instance model it always gives me 0. On the other
> hand if i run the same ecore model in eclispe IDE and take instance
> one of same class in ecore then every thing works fine.... why it is
> not getting the derived value in java programmatically? whats the
> difference....?
>
> Warmest Regards
>
> khurram


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Dynamically extending a model using an xsd scheme
Next Topic:Evaluate Ecore Instances programatically
Goto Forum:
  


Current Time: Fri Apr 19 15:37:56 GMT 2024

Powered by FUDForum. Page generated in 0.01912 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top