An introduction to ArchGenXML — what it is, reasons to use it, who made it.
With ArchGenXML, you can create working Python code
without writing one single line of Python. It is a
command-line utility that generates fully functional Zope
Products, based on the Archetypes framework, from UML
models using XMI (
.zuml) files. The most common use-case is to generate a set of
custom content types and folders, possibly with a few
tools, a member type and some workflows thrown in.
In practice, you draw your UML diagrams in a tool which has the ability to generate XMI files, like ArgoUML or Poseidon. Once you are ready to test your product, you run ArchGenXML on the XMI file, which will generate the product directory. After generation, you will be able to install your product in Plone and have your new content types, tools and workflows available.
At present, round-trip support is not implemented: custom code can't be converted back into XMI (and thus diagrams). However, you can re-generate your product over existing code; method bodies and certain "protected" code sections will be preserved. This means that you can evolve your product's public interfaces, its methods and its attributes in the UML model, without fear of losing your hand-written code.
ArchGenXML is hosted at svn.plone.org as a subproject of the Archetypes project. It is released under GNU General Public Licence 2 or later.
- You want to save time
- You are a lazy programmer
- You don't like to reinvent the wheel
- You don't like copying and pasting code (and bugs)
- You make heavy use of references and interfaces
- You have big projects with many different custom types
- You want or need a well-documented interface to your product
- You like structured model- and pattern-driven software development
- You want to maintain your project in future without getting a headache
and many other good and odd reasons.
The project was initially started by Phil Auersperg. Thanks to his laziness :-)
- Xiru.org, Brazil (Fabiano Weimar dos Santos) sponsors a valuable amount of money into workflow support (State diagrams -> DCWorkflow, will go into release 1.2),
- PilotSystems, Paris, France (David Sapiro),
- OpenSource.ag, Innsbruck, Austria (Georg Pleger).
If you want to contribute ArchGenXML by improving the code, helping with documentation or sponsoring it to make us improve it, please contact one of us.