Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Eclipse Sirius - Validation Rules(Eclipse Sirius - Validation Rules)
Eclipse Sirius - Validation Rules [message #1416262] Thu, 04 September 2014 17:56 Go to next message
VVasanth Kumar is currently offline VVasanth KumarFriend
Messages: 13
Registered: July 2012
Junior Member
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
Re: Eclipse Sirius - Validation Rules [message #1417321 is a reply to message #1416262] Fri, 05 September 2014 07:10 Go to previous message
Alex Lagarde is currently offline Alex LagardeFriend
Messages: 193
Registered: May 2010
Senior Member

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/
Previous Topic:Validation in edition tables
Next Topic:EEF and Sirius
Goto Forum:
  


Current Time: Sat Dec 05 03:25:49 GMT 2020

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

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

Back to the top