🚀 Welcome to MDriven Learn –  Don’t miss the latest Release Notes.
OCLOperators DirtyList

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