|
Re: how to test an enumerated value with AQL [message #1719744 is a reply to message #1719549] |
Mon, 11 January 2016 18:42 |
|
Hello Philippe,
Indeed, with AQL enumeration literal should be prefixed with the name of
containing EPackage in your metamodel (see
https://www.eclipse.org/acceleo/documentation/aql.html part "Type
literals & children EPackages"). Therefore, this should be as follows:
aql:self.status=EPackageName::RequirementStatus::OBSOLETE where
EPackageName should be replaced by your EPackage real name of course.
Regards,
Steve
Le 08/01/2016 19:57, Philippe Desanois a écrit :
> Hi,
> How to write in aql the following acceleo code, with the
> RequirementStatus enum.
> [self.status = RequirementStatus::OBSOLETE/]
> In the sirius requests interpretor the following syntax is indicated :
> Invalid Expression
> aql:self.status=RequirementStatus::OBSOLETE
>
> Thanks;
>
--
Steve Monnier - Obeo
Need professional services for Sirius?
http://www.obeodesigner.com/sirius
Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Powered by
FUDForum. Page generated in 0.04015 seconds