Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » how to test an enumerated value with AQL
how to test an enumerated value with AQL [message #1719549] Fri, 08 January 2016 18:57 Go to next message
Philippe Desanois is currently offline Philippe DesanoisFriend
Messages: 8
Registered: April 2015
Junior Member
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;
Re: how to test an enumerated value with AQL [message #1719744 is a reply to message #1719549] Mon, 11 January 2016 18:42 Go to previous message
Steve Monnier is currently offline Steve MonnierFriend
Messages: 500
Registered: May 2011
Senior Member
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
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:AQL and oclIsUndefined()
Next Topic:How can I show the same element several times
Goto Forum:
  


Current Time: Mon Jan 18 17:46:05 GMT 2021

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

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

Back to the top