How to: Create a New Model and View it in "Quadrant"
[This is prerelease documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Microsoft code name “Quadrant” is part of the code name “Oslo” modeling technologies. With the Microsoft code name “M” tools, you can easily create new models and view them in “Quadrant”. This topic walks through the basic process.
Creating a New Model
The first step is to use the “M” grammar to create a new model. The following procedure creates a new "BusinessGoals" model.
To create a new model with the "M" tools
Open the Ipad.exe application code name “Intellipad” tool for code name “Oslo”. By default, the application is installed in the following path:
<drive>\program files\Microsoft Oslo\1.0\bin
Copy the following code into the code name “Intellipad” tool for code name “Oslo” tool.
module Microsoft.Samples { export BusinessGoal, BusinessGoals; BusinessGoals: BusinessGoal*; type BusinessGoal { Id : Integer64 => AutoNumber(); Name : Text; Priority : Integer32; Description : Text?; DefinedInBusinessGoal : BusinessGoal? where value in BusinessGoals; } where identity (Id); }
The code creates a model named BusinessGoal and an extent named BusinessGoals.
Save the file as BusinessGoals.m.
Open a command window and run the following command. (Replace the <path> parameter with a directory path to which you have write access privileges.)
m.exe BusinessGoals.m -package:Image -out:<path>
The output of the command is a new file named BusinessGoals.mx. Run the next command line with that output.
mx.exe install <path>BusinessGoals.mx -database:Repository
The new models are created and inserted into the “Oslo” repository by the “M” tools.
To view the new entity-type in "Quadrant"
If it is not open, run “Quadrant”.
Optional. If “Quadrant” is already open and connected to the default repository, on the View menu, click Refresh.
In the repository explorer, expand the Catalog node.
Click Microsoft.Samples. The BusinessGoals extent appears below the node.
Drag and drop the BusinessGoals icon to an empty space on the workspace. By default, the workpad opens with a table viewer.
Creating New Entities
The workpad opens with the title BusinessGoals-Collection. The workpad is empty because no entities have been created yet. (Keep the Explorer open for the moment, or move the BusinessGoals-Collection workpad to a place where it can be easily found.)
To add new entities to the extent
Click the BusinessGoals-Collection workpad to select it.
In the Edit menu, click Insert Item. A new row appears in the table.
Click the Name field and set the value to Grow Contoso.
Click the Description field and set the value to Grow Contoso Corp. profits by 50%.
Click the Priority field and set the value to 1.
Leave the DefinedInBusinessGoal field blank.
Click Commit Row.
In the Edit menu, click Insert Item. A new row appears in the table.
Click the Name field and set the value to Hire Sales Force.
Click the Description field and set the value to Open new markets.
Click the Priority field and set the value to 2.
Click the DefinedInBusinessGoal. A downward-pointing arrow (V) and a plus sign (+) appear in the row to the right.
Click the arrow and, from the drop-down list, click Grow Contoso.
The "Hire Sales Force" goal is now a subgoal of the "Grow Contoso" goal.
Use the following table to add a third goal to the extent.
Property Value Priority
3
Name
Hire Tech Support
Description
Increase customer satisfaction
DefinedInBusinessGoal
Grow Contoso
Use the following table to add a fourth goal to the extent.
Property Value Priority
1
Name
Finish Fabrikam Merger
Description
Finalize details
DefinedInBusinessGoal
null
Use the following table to add a fifth goal to the extent.
Property Value Priority
2
Name
Meet with Fabrikam Legal
Description
Clear legal obligations
DefinedInBusinessGoal
Finish Fabrikam Merger
Explore the model
You can now explore the model using different “Quadrant” viewers.
To examine the model as a tree master/detail
Click the label Table in the upper right corner of the workpad. A drop-down list of viewers that are available for the extent appears.
From the drop-down list, click Tree Master/Detail. The workpad switches to a tree viewer.
Click the Grow Contoso node. In the right pane, details about the goal appear.
Click the triangle to the left of the Grow Contoso node. The node expands, and the BusinessGoals_DefinedInBUsinessGoals node appears in the tree.
Expand the BusinessGoals_DefinedInBUsinessGoals node. The Hire Tech Support node appears.
See Also
Tasks
How to: Use Complex Viewers in "Quadrant"