Author Topic: Requirements Info in Code Gen  (Read 2873 times)

v.apodaca

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Requirements Info in Code Gen
« on: November 17, 2015, 07:39:15 am »
I have been trying to include Requirement elment data that is associated to implementation elements (ie. Class, Function) in comments of Code Generated files.  

For example:
MyAcctManager Class ---> Requirement Element ("1.1 Add Account")

I would like to have the information "1.1 Add Account" as part of the comments for MyAcctManager Class when I do a Code Generation of the diagram.

I started out trying to add the following in the Class Notes Code Template:

Code: [Select]
%list="Requirement" @separator="\n"%
or
%list="Connector" @separator="\n"%

I have tried creating code templates for the types Requirement and Connector as well but I don't see any output for anything I've tried.

Could someone please point me in the right direction as to how to call or what macro to call correctly to get this information?  

Any assistance is greatly appreciated! Thank you.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8085
  • Karma: +118/-20
    • View Profile
Re: Requirements Info in Code Gen
« Reply #1 on: November 17, 2015, 09:27:40 am »
There is no handling of requirements in the default code templates. You'll need to create a custom template of Connector type, give it some contents and list over that.