Book a Demo

Author Topic: Proposal for "LinkedRequirement" code gen templ  (Read 3341 times)

ChrisDr

  • EA User
  • **
  • Posts: 29
  • Karma: +0/-0
    • View Profile
Proposal for "LinkedRequirement" code gen templ
« on: September 29, 2009, 03:57:09 pm »
Hi,
as described in http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1239014388 I need to document realized requirements in the source code for tracing with an external tool. The new "requirement*" field subst macros help, but only for internal requirements, not for external ones.

Proposal would be to introduce a new template "LinkedRequirement" (similar to LinkedClassBase) to be able to list realized external requirement names withing the notes of the class.

Thoughts? Opinions?

Best regards,
Chris

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Proposal for "LinkedRequirement" code gen temp
« Reply #1 on: September 30, 2009, 08:16:47 am »
You will be able to get to them with something like the following.

Code: [Select]
%list="Connector__Requirements" @separator="\n" connectorType="Realisation" and connectorSourceElemGUID=classGUID and connectorDestElemType="Requirement"%
Note: Two underscores above and Realisation with an 's'.

Then create a custom template for Connector called Requirements and use the connectorDestElem* macros to get the properties.