When declaring Actions in Modlr you have the option of giving a name (required) and a Presentation (defaults to <Name>).
The reason for the two different properties are that the ActionName is important to modlr itself – it is used for presentation of the action and as reference name of the action. The presentation is however the text we use when presenting the action in a contextmenu or in the WECPOF leftside action column.
Since the Presentation often resembles the Name we have introduced the following shorthand/activecontent:
|ActionName||Presentation value||Presentation result|
|SomeName||Extra1 <Name> Extra2||Extra1 Some Name Extra 2|
|SomeName||<AsString>||“DefaultStringRep of context object”|
|SomeName||<Name> <AsString>||Some Name “DefaultStringRep of context object”|
|SomeName||<AsString:Attribute1>||“Value of attribute1 of context object”|
|SomeName||Extra1 <Name> Extra2 <AsString:Attribute1> Extra3||Extra1 Some Name Extra 2 “Value of attribute1 of context object” Extra 3|
The context object is of course the object that the actions is acting on. So it is intended to be used with “Class actions”.
As we introduced the above mentioned shorthand we also made the <AsString:attributeX> part available in the constraints Description texts. This way your constraints descriptions can get context info. If you have the need for a complex expression, like navigation for pulling attributes from neighbor classes you are advised to create the expression as a derived attribute that you then can reference from your constraint description text.