If you're writing workflows you have no doubt encountered the DCMQuery/Insert/Update functions. They rely on an archaic DCMAccess notation which can be difficult to figure out, especially for very complex queries. The main point is that you start with some known information and from that known you gather new info based on data model relationships. Certain objects have certain relationships and therefore you can link from one item to the next based on this context. Sort of like the game '7-degrees of Kevin Bacon'. Sort of.
To make this job a bit easier you can utilize the DCM object browser tool, available for your download from the ISM library.
The tool relies on the existing DcmObjectMappingsDocument.xml which can be found on the TPM server under the TIO_HOME/xml directory. A simple 'ReadMe.txt' file located in the download zip will help guide you though the configuration and usage of the tool.
example usage picture: