Skip to content

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.

The Console is available from the bottom panel of the workspace. Click on the Console tab to open it.

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
// Get all instances of class "Person"
Person.allInstances
// Access an attribute
Person.allInstances[0].name
// Navigate a reference
Person.allInstances[0].address.street
// Count elements
Class.allInstances.length

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.