How to modify a metamodel with FarkiBot
Modify M2 changes a metamodel you already have: add element types, relationship types, property types or enumeration values, rename them, or adjust the relationship rules. Describe the change in plain language. FarkiBot writes the new version of the metamodel and shows you a diff. Farkitect then applies it in place, through the metamodel upgrade, so every model built on the metamodel keeps all its elements, relationships and values.
It works whether or not any model uses the metamodel yet, even in a project with no models at all. Shape the metamodel first, then build a model on it with Generate M1.
Before you start, set up FarkiBot. You need admin access: only admins change metamodels.
Modify a metamodel
Section titled “Modify a metamodel”- Open View > FarkiBot and switch the task dropdown to Modify M2
- Choose the metamodel in the Metamodel dropdown. Used by shows the models that import it, or no models yet
- Describe the change
- Press Enter
- Review the diff
- Click Review Upgrade…. The upgrade shows its plan
- Save the project backup the upgrade asks for, then click Apply
Write the instruction
Section titled “Write the instruction”Say what should change, in the terms you’d use with a colleague:
- “Add a Major Customer element type with Annual Revenues and Relationship History, and a Populates relationship from Major Customer to Customer Segment”
- “Add a Retiring value to Lifecycle Status”
- “Rename Contract to Agreement”
- “Allow Serving from Application Component to Business Actor”
FarkiBot puts a new element type in the layer it belongs with, gives it that layer’s colours and an icon in the same style, and adds it to the relationship rules it needs. Without that, a new type couldn’t be connected to anything. It says in the new type’s notes which relationships it allowed.
Renames keep what uses them. A renamed type, property type or value keeps its old name as a former name, so the upgrade carries its elements and values over to the new name. If FarkiBot forgets to record it, Farkitect does: a type that kept its identity but changed its name was renamed. The card lists each rename it recorded.
Read the diff
Section titled “Read the diff”FarkiBot writes the whole metamodel again with your change applied. The diff is how you check that it kept everything you didn’t ask about:
- Removals are shown first and in red. If you asked only for additions and see a removal, FarkiBot dropped something. Discard and try again, or use a stronger LLM.
- What your models use is called out on the card. If the new version removes a type, property type or value that a model uses, the card says so in red, with how many elements, relationships or values, for example Removes Contract, used by 14 elements.
- A rename shows in the diff as one item removed and one added. The card doesn’t count it as a removal, because the upgrade follows the rename.
How it is applied
Section titled “How it is applied”Review Upgrade… first checks that nobody changed the metamodel since FarkiBot read it. If someone did, nothing happens: run the change again over the current metamodel.
It then opens the metamodel upgrade with FarkiBot’s file. The upgrade matches every type in it to the existing one and updates it in place, so nothing a model holds changes type:
- An addition, the usual change, needs no decisions: the plan, the backup, then Apply.
- A metamodel no model uses needs no decisions either, whatever the change.
- Removing something a model uses is a decision in the plan: Retire (the default: keep the elements, flagged), Map to another type, or Delete them.
The upgrade always asks for a project backup first. That is your undo, and it covers the models as well as the metamodel. The card then shows Upgraded.
Afterwards, the new types are in the Palette, and Generate M1 and Modify M1 use the changed metamodel straight away.
What FarkiBot is sent
Section titled “What FarkiBot is sent”- The metamodel, in full, including colours, shapes and icons, so it can keep them and you can ask for appearance changes.
- What your models use of it, as names and counts: the types with elements, the pairs each relationship type joins, the property types holding values, and the enumeration values in use. With this, FarkiBot avoids removing or renaming anything in use unless you ask. Element names and other values are not sent.
- Your instruction, and any attachments, such as a standard’s change list.
Limits
Section titled “Limits”- Size. FarkiBot sends the whole metamodel and writes it back. Most metamodels fit. A very large one, such as ArchiMate 4, may not: FarkiBot then says it can’t complete the change, rather than returning a shortened metamodel. Nothing is changed.
- The metamodel only. To change a model as well, for example to turn some elements into a new type, run Modify M2 first, then Modify M1.
- The metamodel’s name stays. FarkiBot keeps the metamodel’s name. Its version changes only if you ask.