EVL: summarizing amounts in collections yields wrong result [message #1404743] |
Tue, 05 August 2014 12:39 |
Gerd Wierse Messages: 14 Registered: July 2009 |
Junior Member |
|
|
Dear all,
I am using EVL to check constraints on XML instances.
Although such an instance meets a specific constraint summarizing amounts, the check fails.
May be, number representation or calculation method sum() used by EVL causes this check to fail?
I presume, the following conditions are helpful to reproduce this behavior:
- summarizing amounts (like amounts of money) while casting such amounts to data type Real.
- these amounts are contained in elements with multiplicity > 1, so these elements are mapped to collections.
- this error does not show when it's only a very small number of collections.
Please find attached a simple project, containing these folders:
- model with XSD, ecore and genmodel
- instances with a single XML instance
- rules with the EVL file containing a single rule and an ANT script launch.xml to build and execute instance loading and rule application
Supposedly, this is not a topic dedicated to EVL, but a more general question?
Do you know any helpful links or forum topics?
May be, I should use casting to another data type in EVL as workaround?
Thanks in advance for any helpful remark.
Best regards,
Gerd
-
Attachment: MyXSD.zip
(Size: 4.95KB, Downloaded 116 times)
|
|
|
|
Powered by
FUDForum. Page generated in 0.02642 seconds