|"Select DISTINCT" with OCL [message #1796894]
||Sun, 21 October 2018 18:06
| Rémi Bernard
Registered: June 2018
I have an OrderedSet of Stuff objects having a name attribute, and I want to filter this sequence by objects names so that I get exactly one Stuff of each given name in the sequence (i.e. remove name duplicates/triplicates/etc/).
I looked at the OCL reference but did not find anything that seemed to do the job. Then I opted for creating and invoking a Java Service but could not find the Java equivalent type for OCL OrderedSet, so I failed at writing the Java function for the service, and got stuck there...
What would be the right way to go here?
[Updated on: Sun, 21 October 2018 18:07]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01745 seconds