Book a Demo

Author Topic: Generating arctifacts  (Read 5152 times)

rafael tartalia

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Generating arctifacts
« on: April 10, 2009, 03:01:48 am »
Hi all,

I need generate artifact to EA model in simple way. The company have many pattern's for user interface and the business tier, based in your own framework (it generate Java code, JSP pages, etc). So, the use cases have a commons scenarios, and classes have commons attributes and behaviors.
We have other facet in projects: the company process. Our artifacts be have acomplish with various patterns structure, naming, etc.
I have tested many solution for this:

1. Java SDK adapter to COM library
    This is a good place, but write application have a big effort. I write an simple application generating artifacts.

2. UML Profiles
    I don't get sucess creating an pattern, as well:
        UC001 --> PACKAGE ELEMENT
          |_ UC001 --> use case element with scenarios, description, etc
                      |_ Activity diagram, actions, and so...
    Does UML Profile generate many artifacts and their relationships?

3. UML Patterns
    I don't get sucess creating an template to attempt the above structure in a clear manner (necessary create the package, edit names and diagrams).

4. XMI/CVS --> Export the default template to XMI or CVS file, and then import this in the target project (I think this solution not elegant).

I feel pleasure opinions, and i so sorry because of my bad english!    :-X

Thank's for all.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Generating arctifacts
« Reply #1 on: April 10, 2009, 04:12:09 am »
I would write a small addin to acomplish this.
I've created something similar about a year ago.
This addin allowed templates to be created in EA and this template was then copied to the new location. I also had a <name> tag that would get replaced by the name given by the user.
My template could be something like
(package)<name> Component
   (diagram)<name> Entities
..... etc...
The addin would then copy this to a new location and ask the user for a new name.
The whole structure got copied while replacing <name> with the new name. This was a simple addin that required only a few days work and worked to everyone's satisfaction.

rafael tartalia

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Generating arctifacts
« Reply #2 on: April 10, 2009, 04:29:44 am »
Thanks for your reply Geert, this information was very usefull for me.