Major
Nice to have
Bugfix
Major
IndexedObjectNaming makes it easy to script persistent objects by defining for a subject object type which are the key attributes for scripting. Based on the values in the key attributes, the object is identified in the script:
#!xml <config config:interface="com.top_logic.layout.scripting.recorder.ref.value.object.IndexedObjectNaming$GlobalConfig"> <types> <type name="my.package:MyType" attributes="name,techId,owner"/> </types> </config>
However, the values of the key attributes must not be empty (null), otherwise playing the script will return an error.
Improvement
Also non-mandatory attributes should be possible as key attributes. Although null is usually not a good identifier, this makes it possible to include non-mandatory attributes in the key to make the script more readable (if the additional attribute is filled). In the above example, techId and owner would be a sufficient identifier. However, the script will be more readable if name is included in the identifier.
Test
No test.