Tuesday, May 10, 2005

Jumpstart CFCs with Enterprise Architect

Unfortunately, EA does have a somewhat steep learning curve. The part that handles the ColdFusion stuff is in what they call MDG technology if you are hunting around through the help files. Here's how you can get started.

  1. Create a new project
  2. On the right side of the screen you should see a "Project View" panel.
  3. At the bottom, there are generally two tabs, "Resource View" and "Project View". You'll do most of you work in the project view, but for this, switch to the resource view.
  4. At the top of the tree, you should see a folder called "MDG Technologies". Right click on it and select "Import Technology".
  5. Click the ellipsis next to filename and browse to the xml file you downloaded from my blog. You should see the options light up for the types of things that are going to be imported.
  6. Click the "Import" button
At this point, you're ready to create some cfcs. Switch back to project view and add a class diagram.
I generally do mine under "Logical view | Logical Model". Drag a class onto the stage and add a few properties and methods. Once you are done, you can right click on the class, pick a location for the file and have ea generate a cfc shell for you.

Let me know if you need a little more, but that should get you off the ground.

Updated CFC generator code


  1. I've added the text above to the notes entry in the xml file that gets imported.

  2. I like your content but the header makes me feel like im on ACID :)

  3. And it's non-toxic, but you still might have flash-backs.