Book a Demo

Author Topic: Document generation for operation  (Read 2927 times)

Karan Mundhra

  • EA User
  • **
  • Posts: 24
  • Karma: +0/-0
    • View Profile
Document generation for operation
« on: September 19, 2019, 03:31:19 pm »
Hi,

I am stuck with a document generator problem and unable to proceed.

I have an interface with many operations within it.
In the document generator template, the interface is passed as an object to it.
The template looks like as below

element >
method >
{Template - API_FunctionHeader}  // Here i want this to be called for each operation
< method
< element


In the fragment API_FunctionHeader, I want to pass #OPERATIONID# to a custom script , but that is not supported.

What i need is to call a documentation fragment for each operation. Is this possible use docGenerator?
The called fragment may take xml as input and generate releveant information (xml is from JSCRIPT processing)

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Document generation for operation
« Reply #1 on: September 21, 2019, 03:18:14 am »
No you can't run fragments for a single operation.
You'll have to run a fragment on the element level that somehow contains all the information you need for your methods.

In most cases I've found that an SQL fragment was enough to fill a table with details of things like operations.
If that doesn't work you can try a script fragment (where you supply an xml with the data) of if all else fails a document script, where you return the RTF code for a section.

Geert

Karan Mundhra

  • EA User
  • **
  • Posts: 24
  • Karma: +0/-0
    • View Profile
Re: Document generation for operation
« Reply #2 on: September 24, 2019, 07:03:01 pm »
Thanks! Let me try the other options