Sparx Systems Forum
Enterprise Architect => General Board => Topic started by: JohnWSaundersIII on November 11, 2005, 10:04:20 am
-
The release notes for version 776 say:
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
-
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...
-
Though not complete, OCL constraints are also discussed in the EA Help file under Model Validation
-
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
-
Above, I quoted three OCL features in EA 6.0. It sounds like all three are the same thing.
-
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
-
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