Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » OCL Expression Error
OCL Expression Error [message #11610] Thu, 15 March 2007 14:07 Go to next message
Irina is currently offline IrinaFriend
Messages: 27
Registered: July 2009
Junior Member
Re: OCL Expression Error [message #11645 is a reply to message #11610] Thu, 15 March 2007 15:16 Go to previous messageGo to next message
Miguel Garcia is currently offline Miguel GarciaFriend
Messages: 40
Registered: July 2009
Member
Irina,

Perhaps you'll want to give a try to a plugin that I've contributed as part
of a draft Eclipse Technical Article,

https://bugs.eclipse.org/bugs/show_bug.cgi?id=167543

With it, a tree-based representation of an OCL expression can be visualized
after clicking on its context element (as displayed in e.g. an Ecore or UML2
editor).

I've found such visualizations useful when building up a complex OCL
expression, as it provides feedback for fragments of it (feedback including
exceptions, which are not blended out).

HTH,


Miguel
Re: OCL Expression Error [message #11681 is a reply to message #11610] Thu, 15 March 2007 22:03 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cdamus.ca.ibm.com

Hi, Irina,

Which build of OCL are you using? The problem of empty collections not
conforming to the variable type (as in ps : Set(PseudoState) = Set{}) was
fixed in the 1.1 M5 build.

Or, at least, I thought it was ;-)

Christian



Irina wrote:

>
> �: "Irina" <irina.bova@mail.ru>
> �� Re: OCL-Expression Error
> ��: 15 ���2007 � 16:48
>
> Hi Christian,
>
> thanks for your help,
> but unfortunately it is not work correct ;-((
>
> Error: Init expression type does not conform to type of variable(ps).
>
> My Classdiagram:
>
> STMDiagram (containment AbstractState)
> |
> | allStateFigures
> AbstractState {abstract} extends Named
> |
> |
> PseudoState extends AbstractState
> /attribute kind: PseudoStateKind
> |
> |
> PseudoStateKind (enumeration)
>
> Any idea?
> Thanks in advance!
>

<snip>
Re: OCL Expression Error [message #11715 is a reply to message #11681] Fri, 16 March 2007 09:15 Go to previous messageGo to next message
Irina is currently offline IrinaFriend
Messages: 27
Registered: July 2009
Junior Member
Hi Christian,
i use1.1M4 build of OCL.

"Christian W. Damus" <cdamus@ca.ibm.com>
Re: OCL Expression Error [message #11824 is a reply to message #11715] Fri, 16 March 2007 18:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cdamus.ca.ibm.com

Hi, Irina,

Just update to M5 (or, better, today's integration build) and you should be
OK.

Cheers,

Christian


Irina wrote:

> Hi Christian,
> i use1.1M4 build of OCL.
>
> "Christian W. Damus" <cdamus@ca.ibm.com> �������� �����
> ����� news:etcfrh$foc$1@utils.eclipse.org...

<snip>
Re: OCL Expression Error [message #13453 is a reply to message #11824] Sun, 18 March 2007 12:17 Go to previous message
Irina is currently offline IrinaFriend
Messages: 27
Registered: July 2009
Junior Member
Hi Christian,
thank you for your help! It's work!

You are the best!!!
Irina

"Christian W. Damus" <cdamus@ca.ibm.com>
Previous Topic:[Announce] MDT OCL 1.1.0 I200703151745 is available
Next Topic:How to access name of EnumerationLiteral
Goto Forum:
  


Current Time: Thu Dec 18 15:39:08 GMT 2014

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

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