Fetching complete list of fields/attributes/properties for types
we're facing a problem while fetching all fields/attributes/properties available for an issue type via CLI.
in general we try to provide some kind of content assist to support users while configuration of a java interface to fetch issues for a concrete PTC server instance.
So what we are currently doing:
1. fetching all types by using 'im types'
2. then iterating over all types within 'im types' and getting properties(e.g. Spawns, Changes Authorized By, Shared Text,), visibleFields(e.g. Parameters, Document Phase, Content Without Back Traces Percentage)
3. to get some more information we're using 'im fields' to fetch e.g. the expected type of a value
after finishing there are some attributes missing e.g. 'Document ID' which seems to be a computed field which comes from the document model? it is visible in the administration client but isn't within the response of the 'im types' command. We already tried 'im viewtype' without success. I noticed the requirement type is of typeClass 'node' and we expect a possibility to programatically figure out via the java CLI interface which fields will be added statically/dynamically by the document model, but how?
our current quickfix is to ask for the typeClass of a particular type and adding the field information of e.g. 'Document ID' to it manually because it is expected to be available on our test server. we know it is possible to customize the document model, hence our implementation would be error prone and we're facing a similiar problem with some relation/properties where e.g. 'contains' & 'contained by' can be both a 'relationship' field & a property dynamically/statically added by the document model.
Would be nice to get some hints for a robust implementation for fetching 'all' visible attributes of a particular type.