Console
The Jjodel Console is a built-in tool for interacting programmatically with your models and metamodels. It allows you to execute expressions, query model elements, test constraints, and debug viewpoint configurations.
Accessing the Console
Section titled “Accessing the Console”The Console is available from the bottom panel of the workspace. Click on the Console tab to open it.
What You Can Do
Section titled “What You Can Do”The Console supports:
- Querying model elements — retrieve instances, navigate references, inspect attribute values
- Evaluating expressions — test JjEL (Jjodel Expression Language) and JavaScript expressions against the current model
- Debugging viewpoints — check which views apply to specific elements and why
- Inspecting the JjOM — explore the Jjodel Object Model at runtime
- Viewing logs — see errors, warnings, and informational messages generated during editing
Example Expressions
Section titled “Example Expressions”// Get all instances of class "Person"Person.allInstances
// Access an attributePerson.allInstances[0].name
// Navigate a referencePerson.allInstances[0].address.street
// Count elementsClass.allInstances.lengthLog Messages
Section titled “Log Messages”The Console also serves as a log viewer, displaying messages generated by:
- Validation rules (errors, warnings, info)
- Event handlers
- System operations (save, load, synchronization)
Log entries are timestamped and color-coded by severity.