🚀 Welcome to MDriven Learn –  MDriven is now on Discord!  Don’t miss the latest Release Notes.
OCLOperators DirtyList
Created by Stephanie on 2025-01-08 · Last edited by Vale.buyondo on 2025-12-10.

DirtyList returns the collection of objects that have been changed (dirty) in the current ViewModel or OCL execution scope.

When you modify an object , change an attribute, add/remove a role, or create a new object it becomes dirty.DirtyList lets you inspect which objects have been touched but not yet saved.

Examples

List all dirty objects

selfVM.DirtyList

Count how many objects have been changed

selfVM.DirtyList->size