Hi,
So, the problem seems to have been in how I used formulas to update
the attribute values. Saying a.quantity etc. in the
condition seems to be OK, but somehow the same is not true for the
attribute update. I have had to introduce additional parameters to
match against the attribute values of a:Animal and to then
use these parameters in the attribute update.
Have I missed the place where this behaviour is documented?
Many thanks,
Steffen
On 11/03/2016 17:47, Steffen Zschaler
wrote:
Hi (again),
Many thanks for your quick help before. I got the rule working
with the parameters (see screenshot below). However, it is
currently not matching things as I expect it would. When I run
this rule on a simple model using the Henshin wizard, all I get is
a dialog box saying "Error on rule execution". I've tried removing
all the conditions to see whether there was anything odd going on
here, but with no success. I would fully expect this rule to match
in the simple model I have prepared (which has a Zoo with two
cages and two animals (one in each cage). None of the animals eat
each other and there is enough space in one cage to move one
animal from one to the other.).
Is there a sensible way for me to try and debug what's going on
here?
Many thanks,
Steffen
--
Dr. rer. nat. Steffen Zschaler AHEA
Senior Lecturer
King's College London
Department of Informatics
Email szschaler@xxxxxxx
Phone +44 (020) 7848 1513
WWW http://www.steffen-zschaler.de/
_______________________________________________
henshin-user mailing list
henshin-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/henshin-user
--
Dr. rer. nat. Steffen Zschaler AHEA
Senior Lecturer
King's College London
Department of Informatics
Email szschaler@xxxxxxx
Phone +44 (020) 7848 1513
WWW http://www.steffen-zschaler.de/
|