I have created a constraint and would like to define its specification as a groovy script -- this constraint will be stereotyped with <
When calling on an object's method, Cameo wraps an empty argument into an empty list. I've also seen a single element wrapped into a list, e.g., element is passed as [element].
In this particular case, my script gets stuck on this line:
guiLog = Application.getGUILog()Instead of an empty argument, Cameo tries running:
guiLog = Application.getGUILog([])Since the method call expects no argument, Cameo returns a MissingMethodException
Dealing with an element that's wrapped in a list is easy enough, e.g., element[0] or element.first(). How can a deal with an empty argument? Even better, how can I get Cameo to stop wrapping elements, or non-elements, into collections, in the first place?
