Log in

The 1000 steps program to MDriven

From MDrivenWiki

We are not sure there will be exactly 1000 steps - there may be more - but the in order to learn you can start at step 1 and make sure you master the steps in order. Soon you will be a productive information modeler bringing business value to your customers at an unprecedented speed.

Whenever you loose your way you can backtrack to a step that touches upon your current pain point and follow along from there.

Steps 1 to 40 :

Video 1: Mdriven Education step 1-40 : The Basics

Title Content Time(segment start)
Introduction 00:00
Getting started Download Mdriven designer, create a new file and save. 00:42
Class, attribute, debugger Create a class, create an attribute, using debugger 02:10
Seeker and objects Seeker, create objects 05:08
Search Search function, tree and rightside menu 09.22
Association Association/relation, cardinality/multiplicity, autodiagram 11:06
Multilink Multilink 17:00

Start MDrivenDesigner, Basic modelling, classes and associations, Press Play

1 Start MDrivenDesigner by clicking the clickonce link on

2 Create new empty model - save the file as c:\temp\MDrivenEduction\Start.modlr or eqvivalent

3 Create a class Person - save the model - from now on save the model often - use ctrl+s

4 Create an attribute Name of type string in class Person

5 Press Play - choose XML persistence - Start system - Show debugger

6 In the debugger - in an Expression box write the OCL expression to show all instances of your class Person with the operator allinstances, note the empty result list - you have no Person objects

7 In the debugger, Bring up a seeker, search -> empty, Create 2 person objects

8 In the AutoForm for person 1 give it your name, in person 2 write some other name

9 Save the created Person objects from the save button in the debugger

10 Find the saved xml file on disk in the same location as your model file

11 Open the xml file with notepad or what have you - find your name - close the file

12 In the debugger expression box use the expression to find all persons from step 6 - note the result - two rows

13 Close Debugger, close Play dialog, Close MDrivenDesigner, save if asked, Then restart by performing step 1

14 Open recent files - your file, press play and go into debugger as step5

15 perform step 12 - ensure your 2 person-objects survived

16 Close debugger, close play-dialog(system prototyper)

17 Find class Person in Tree to the right by filling in the search box on top of tree

18 Note 2 rows, One is the class - the other result is the property. Select Person class in tree - look at the property inspector below tree - Change its default color to cyan (or what looks nice)

19 In the search-box press escape or clear search-box - note tree structure of entire model in tree. You can always find things in the model here

20 Find the diagram1 in tree - double click to open

21 Diagram1 may be empty - drag and drop Person class from tree onto diagram

22 Press the "Start!" in top left corner to show Start-wizard if it does not already show

23 right-click diagram - choose "Add class"

24 Rename new class to Car

25 Use zoom buttons or ctr-wheel to zoom your diagram

26 Enter AssociationMode by pressing association arrow in tool-button

27 click-drag-hold association from Person - hold mouse - move to car - release

28 Rename "Cars" association-end name to "CarsIUsedToOwn" - make sure it has cardinality 0..* (zero to many)

29 Rename "Person" association-end name to "PreviousOwner"  - make sure it has cardinality 0..1 (zero or one)

30 Add an attribute to class Car with name RegistrationNumber of type string

31 Find the Car in the tree by using the search box

32 double click the Car in the tree - note that the screen is not your diagram - it is an auto diagram

33 note the link in the auto diagram to class Person - click class Person - note the auto diagram shift to center Person and show Car on the side

34 Find your way back to the diagram1 by finding it in the tree

35 Play-button, xml persistence, debugger, Expression to list allinstances of Person

36 click up the person with your name

37 note the new multilink button for CarsIUsedToOwn - click it

38 Use add new button to create 3 cars I used to own

39 click up the auto form for each car - give them registrationNumber OldCar1 to OldCar3

40 Save the debugger data

Next chapter

The 1000 steps program to MDriven 41 to 75