I took Mike Rankin’s template which will do code engineering of ColdFusion from UML in Enterprise Architect and modified it a bit to my liking. Some of the changes include:

  • Changing the order which the method groups were created. It is now getters, setters, then methods
  • Removed all refernces to Variables.Instance and just placed everything into the Variables scope
  • Made the comments separating the various groups of methods a bit more subtle
  • Added line breaks between methods
  • Made all returntypes default to “any”. This comes in handy if you are generating components which are in different paths
  • Removed the CVS header (I use Subversion)
  • Other minor odds and ends

You can download said template here (use Right Click, Save As), and read how to install it here.

If you’re someone responsible for doing any sort of UML modeling of ColdFusion applications and haven’t used Enterprise Architect before, you should give it a look. It’s not perfect and sometimes a bit clunky, but for the price its a decent tool. You can even generate SQL and code for databases and languages other than SQL Server and C# respectively.