Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: JohnWSaundersIII on November 11, 2005, 10:04:20 am

Title: OCL Support in 6.0
Post by: JohnWSaundersIII 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
Title: Re: OCL Support in 6.0
Post by: thomaskilian 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...
Title: Re: OCL Support in 6.0
Post by: harrym on November 14, 2005, 05:28:13 pm
Though not complete, OCL constraints are also discussed in the EA Help file under Model Validation
Title: Re: OCL Support in 6.0
Post by: Takeshi K 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
Title: Re: OCL Support in 6.0
Post by: JohnWSaundersIII 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.
Title: Re: OCL Support in 6.0
Post by: JohnWSaundersIII 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
Title: Re: OCL Support in 6.0
Post by: SF_lt 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