I have some models with date attributes and I want to include ocl for validation and derivation.
Searching on the internet I found some articles and papers referring to date.isBefore(date)
or date.before(date)
methods but these methods are not recognized in OCL.
Additionally I would like to define derivation such as derivation: endDate + 10;
.
Do I have to redefine a Date class with all methods I need ?
Any material or link related to it is welcome.