|
Re: Eclipse Sirius - Validation Rules [message #1417321 is a reply to message #1416262] |
Fri, 05 September 2014 07:10 |
|
Hi,
you may find validation rules example in the Ecore Tools VSM [1]
Here is a pointer to the validation rule documentation [2]
Please let me know if you encounter any issue.
Regards,
Alex
[1]
http://git.eclipse.org/c/ecoretools/org.eclipse.ecoretools.git/tree/org.eclipse.emf.ecoretools.design/description/ecore.odesign
[2]
https://www.eclipse.org/sirius/doc/specifier/diagrams/Diagrams.html#validation
Le 04/09/2014 19:56, VVasanth Kumar a écrit :
> Hi,
>
> Could you please let me know how to create validation rules in Sirius
> diagram?
>
> I would like to display an error based on the property value of the node
> in my model.
>
> Request your help in achieving this.
>
> In 'Semantic Validation Rule', 'Message' field displays the tooltip as
> 'Expected return type: a boolean'. But I am not sure how to access the
> property and check the value.
> If you direct me to any .odesign file that contains validation that
> would be great.
>
> Thanks,
> V.Vasanth
--
Alex Lagarde - Obeo
Need professional services for Sirius?
http://www.obeodesigner.com/sirius/
|
|
|
Powered by
FUDForum. Page generated in 0.02052 seconds