Book a Demo

Author Topic: OCL Support in 6.0  (Read 3821 times)

JohnWSaundersIII

  • EA User
  • **
  • Posts: 50
  • Karma: +0/-0
    • View Profile
OCL Support in 6.0
« on: November 11, 2005, 10:04:20 am »
The release notes for version 776 say:

Quote
OCL Support:

Ability to write OCL scripts
Ability to evaluate a wide range of OCL expressions dynamically and report errors to user
Ability to validate models using OCL expressions


I don't see much about this in the help file. "OCL" isn't even in the index!

Doing a search, I don't see anything about OCL scripts ("script" is also not in the index). The only thing I can see about evaluating OCL expressions is about constraints, so I don't see how "dynamic" that is.

More detail, please?

John Saunders
John Saunders

thomaskilian

  • Guest
Re: OCL Support in 6.0
« Reply #1 on: November 12, 2005, 04:08:23 am »
Sparx already quoted that the help is not complete yet. Probably you'll have to wait for the official release, excpected for the next week or so...

harrym

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: OCL Support in 6.0
« Reply #2 on: November 14, 2005, 05:28:13 pm »
Though not complete, OCL constraints are also discussed in the EA Help file under Model Validation

Takeshi K

  • EA User
  • **
  • Posts: 632
  • Karma: +43/-1
    • View Profile
    • Sparx Systems Japan
Re: OCL Support in 6.0
« Reply #3 on: November 14, 2005, 06:21:32 pm »
Hello John Saunders,

Please change type of Constraint to 'OCL' and enter OCL script.
When pressing Save button, EA validate the script
and report if the script has any error.

You can define the OCL script to Element Constraint,
Attribute Constraint and Operation Constraint.

--
t-kouno
--
t-kouno

JohnWSaundersIII

  • EA User
  • **
  • Posts: 50
  • Karma: +0/-0
    • View Profile
Re: OCL Support in 6.0
« Reply #4 on: November 14, 2005, 07:42:03 pm »
Above, I quoted three OCL features in EA 6.0. It sounds like all three are the same thing.
John Saunders

JohnWSaundersIII

  • EA User
  • **
  • Posts: 50
  • Karma: +0/-0
    • View Profile
Re: OCL Support in 6.0
« Reply #5 on: May 26, 2006, 12:52:14 pm »
Here I am using v6.1(790), and I still don't know what parts of OCL are validated during model validation.  Can we please get a broad summary of what works, and what does not work?

For instance, I haven't been able to get any OCL expression to work if it references an attribute of another class through an association. Perhaps that "just doesn't work yet", and I should stop wasting my time until 6.5?

Thanks,
John Saunders
John Saunders

SF_lt

  • EA User
  • **
  • Posts: 216
  • Karma: +1/-0
  • The Truth Is Out There
    • View Profile
Re: OCL Support in 6.0
« Reply #6 on: May 28, 2006, 09:06:57 am »
something works, something not  ;D
try to run model validation through the menu - this could report some results. However, I (personally) don't believe, that OCL (100%) works in current version... maybe in later versions this will improve
Something definitely is working, there is no need to wait for the 6.5
« Last Edit: May 28, 2006, 09:11:57 am by SF_lt »
registertm everything to SparX