the following mapping semantic candidates expression could not be correctly evaluated [message #1836992] |
Wed, 20 January 2021 16:26 |
Thomas Chiang Messages: 103 Registered: March 2020 |
Senior Member |
|
|
Hi,
Somewhere along the line of my development I started to run into this warning whenever I create a new element in my graphical editor in Sirius: the following mapping semantic candidates expression could not be correctly evaluated : feature:RootElement. RootElement in this case being the class that I choose when I create a new project in Sirius.
I get this warning for every element that I want to create as well as any attributes that I set. I have no idea what this means or how this impacts my editor as everything appears to work correctly. Should I be concerned? Is there a solution to this warning?
[Updated on: Wed, 20 January 2021 16:29] Report message to a moderator
|
|
|
|
Re: the following mapping semantic candidates expression could not be correctly evaluated [message #1837038 is a reply to message #1837014] |
Thu, 21 January 2021 10:03 |
|
Hello,
Indeed, you need to give the feature name that will be used to access the RootElements to be displayed by this mapping. If you see it as just a warning that does not prevent the element to be displayed, it is because if there is no candidate semantic expression to rely on, Sirius will look for elements of the same type in the model and display them. Depending on your model the elements displayed may be just as expected, but this is not recommanded for the performances of your modeler as it scans the whole model.
Best regards,
Steve
Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
Re: the following mapping semantic candidates expression could not be correctly evaluated [message #1837115 is a reply to message #1837065] |
Fri, 22 January 2021 10:57 |
|
Hello,
I don't understand your question.
On your DiagramDescription your Domain Class is RootElement. This means that you can create this kind of diagram on a semantic element typed RootElement. Then you have Node/Container/Edge mapping in order to specify the elements that will be displayed on your diagram. The warning that you have tells you that you have a mapping with a semantic candidate expression "feature:RootElement" and this expression is wrong as RootElement is a type, not a feature. If you want to display on a diagram the RootElement (the one you created the diagram on) then the expression would just be "aql:self". If you want to display elements contained by your reference process then the expression would be "feature:process" (I don't know the Domain Class for this mapping as I do not seen what is at the other end of your reference on the screenshot).
Best regards,
Steve
Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
Powered by
FUDForum. Page generated in 0.04110 seconds