Book a Demo

Author Topic: Document Generation - show linked document  (Read 4280 times)

slurpie

  • EA Novice
  • *
  • Posts: 17
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Document Generation - show linked document
« on: September 24, 2016, 01:03:29 am »
Hi all,

I have a sequence diagram where various webservice calls are modeled on.
For each call, I specify the mapping of the input and output parameters in a (linked) document artifact, which I refer to in the sequence diagram by means of a hyperlink.

The document consists of the sequence diagram, and all the mapping documents which are referred to.

I have created a template which starts from a package where the diagram is located in.

The problem is that I am not able to show the linked document in a generated document, because the element of the diagram is the hyperlink, and not the document artifact itself.
The ea_guid of the document is mentioned in the hyperlink element's name, but I don't know how I can use this in template fragments.

I also cannot drag and drop the document on the sequence diagram, because it is depicted as a lifeline.

Does anyone know how I can generate a document with the linked document via the standard document generation given the above?

Kr.

ps: I have written some vbscript code to generate a document and then I get the wanted result, but I want to make use of the standard functionality of EA as much as possible

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 - show linked document
« Reply #1 on: September 24, 2016, 03:58:41 am »
You can use virtual documents.
Use one for the part with the sequence diagram, and another for the part of the linked document, using a search and the elements GUID as parameter.

See https://bellekens.com/2015/11/12/tutorial-generate-complex-documents-from-enterprise-architect-with-a-two-step-semi-automated-approach/ for an example of that approach

Geert