|Cannot use "Unset" operation on attributes [message #1791375]
||Thu, 28 June 2018 12:46
| Maged Elaasar
Registered: September 2013
Hello. In my metamodel, I have a class with an attribute whose type is a list of integers. In the odesign model, I want to use an Unset operation on an object of this class to remove some integers from the list. Unfortunately, it looks like the operation only supports an "Element expression" not a "Value Expression", which means it does not work with an expression that returns a list of integers.|
I cannot find any other operation that I can use to accomplish this. I tried to use a Set operation with a list of integers minus the one I want to remove but that did not work (it only adds new ones but does not delete existing ones). I also tried creating an external Java action, by defining a class and registering it with the extension point, following the documentation, but when I then create an External Java Action Call operation, I don't see any values in the drop down for "Action", not even the standard actions out of the box. The documentation also talks about "External Java Action" operation but I don't see this as an option under "New Operation" menu.
Any help would be greatly appreciated.
[Updated on: Thu, 28 June 2018 13:22]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01545 seconds