[great-users] Delete pattern with with abstract models

Gürkan Özhan gurkanozhan at gmail.com
Fri Aug 21 13:08:55 CDT 2015


   It may be worthwhile to try defining the extended classes in the same
sheet as B. The pattern matcher may regard proxy objects different than
their canonical counterparts.

Regards.

Gurkan
On 21 Aug 2015 18:40, "Simon Görke" <simon.goerke at ils.uni-stuttgart.de>
wrote:

> Hello,
>
> I have a meta model as follows:
> - model A can contain instances of model B
> - model B is abstract
> - the non-abstract models C,D,E are inherited from model B (this
> inheritance is defined on a second paradigm sheet by using a model proxy -
> but I do know not if this really contributes to the problem).
>
> My intention is to delete any model C,D,E which is contained in a model A.
> For this purpose, I have a simple GreAt pattern which matches an (abstract)
> B-model contained in A.
> My problem here: whenever I set the action property of B to "Delete", the
> code generator complains about an object handle being null.
> As a workaround, I tried to match e.g. C directly, but had the same result
> anyway.
>
> I can delete the object by matching the abstract B (action="bound") and
> calling B.DeleteObject() within an attribute mapping; however then, I run
> into problems when enabling the "run transform in memory" option
> ("Udm exception: Corrupt StaticObject set. Object by pointer is not in
> set!").
>
> Any ideas how to tackle this issue?
>
> Greets,
> Simon
> _______________________________________________
> great-users mailing list
> great-users at list.isis.vanderbilt.edu
> http://list.isis.vanderbilt.edu/cgi-bin/mailman/listinfo/great-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.isis.vanderbilt.edu/pipermail/great-users/attachments/20150821/3878d8b9/attachment.html>


More information about the great-users mailing list