Book a Demo

Author Topic: API: Return Pkg / Obj IDs from DocumentGenerator  (Read 4705 times)

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
API: Return Pkg / Obj IDs from DocumentGenerator
« on: June 02, 2015, 01:40:47 am »
Hey hey!


Hedging my bets in case no one likes my relevant-glossary idea. :)

When using the DocumentGenerator, it would be very useful if the various methods would return not booleans (worked / didn't work) but collections containing the package and object IDs for which templates were called, ie every package and object whose IDs were in context as #PACKAGEID# / #OBJECTID# during the generation.

Since templates can call other templates, and follow all sorts of relationships in addition to the package / element hierarchy, this information is non-trivial to retrieve beforehand, but should be easy-peasy to pick up as the generator goes along.

Ideally, the templates that were used should be indicated as well.


Cheers,


/Uffe
My theories are always correct, just apply them to the right reality.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: API: Return Pkg / Obj IDs from DocumentGenerat
« Reply #1 on: June 03, 2015, 08:16:41 am »
Personally, I'm a big fan of functions providing more information than a single boolean. Unfortunately, without completely duplicating the methods the signatures can't be changed because they would break existing applications.