Content Flavors
Prerequisites
You must install the Content Flavors product.
Adding a field to an existing content typ
- Let an existing content type, e.g. "ExistingType", be present in your diagram (as a class with stereotypes <<archetype>> and <<stub>>)
- Create a class, e.g. "MyCoolFlavor", in your diagram and give it the <<flavor>> stereotype
- Add any field(s), e.g. "MyAdditionalField", to this flavor class
- Create a realization arrow from "ExistingType" to "MyCoolFlavor"
- Generate & Done
Now every new instance of ExistingType will have the MyAdditionalField field in its schema, default view and default edit form.
Limits
-
The use of the experimental content flavors product is now deprecated in favor of the more reliable and feature-rich archetypes.schemaextender.
- Content Flavors also allows custom views to be used by existing types but this feature is not supported by ArchGenXML yet.
- You may not be able to see the additional field(s) if the ExistingType uses some non-default view. You then have to manually manage this by overriding these existing views with some of your own, with or without the help of the Content Flavors product.
- The existing content type may have to be based on ATCT (to be tested)?
- Several flavors can be applied to a given type. The order of precedence can be managed through the web if the existing type follows some requirements detailed in the Content Flavors documentation.
- There are possible issues with indexing the additional fields, see CF documentation for details.
- Content Flavors was an experiment and is now deprecated in favour of the archetypes.schemaextender, which is also supported by AGX.

