namespacelegacybank.eventversion"0.1.0"// TODO — declare LegacyBankActionEnum here.// See the helper drawer (right) for naming convention + the 4 variants// you need (drawn from the outbound message's `event.action` field).
TEMPLATE GUIDE
Define LegacyBankActionEnum
You're in the legacybank.event namespace — everything about what happened to a trade lives here. Convention: one namespace per domain concept, lowercase + dotted.
File-naming convention
legacybank-event-enum.rosetta follows <project>-<domain>-<kind>.rosetta. Types and enums get separate files even in the same namespace — the matching legacybank-event-type.rosetta arrives in the Lesson 4 closeout.
Enum-naming convention
PascalCase + the Enum suffix — LegacyBankActionEnum. Project-prefixed so a downstream model can host this alongside other legacy systems without name clashes.
Do it
Add an enum LegacyBankActionEnum: block (note the colon).
Below it, indent and declare four variants — one per line: NEW, AMEND, CANCEL, REPLACE (these are the four values present in the outbound message's event.action field).
Each variant carries a doc string on the next line, indented: <"Initial booking."> for NEW, and so on. The doc strings travel through to the generated Java + regulatory reports — not optional.
Hit Generate once the four variants + doc strings are in place. A green pill means the enum compiled.
Stuck? Use Open the completed runebook on the lesson panel.