ORDERSYS: Demonstrates Round-Trip Engineering of a Visual Basic Application

   

Click to open or copy the ORDERSYS model and project files.

The ORDERSYS sample shows you how to model and round-trip engineer a Visual Basic application with Microsoft Visual Modeler 2.0. The sample consists of an order system application developed for a small seafood distributing company, the corresponding Visual Basic project, and a model of the application created in Visual Modeler 2.0. The application opens an order dialog, to which you can assign a customer and add new order rows based on the customer and article information stored in the application’s database.

The model of the ORDERSYS application makes it easier to understand how the system is structured by providing diagrams and high-level specifications of the classes. The ORDERSYS Visual Basic project has been generated from the model. By starting with a model of the application, the developers could focus on what the system was supposed to do and not how it was going to be implemented. At an early stage, two DLLs, DAO and VB, was reverse engineered into the model, to be used by other classes in the model. When the requirements and the model became stable, skeleton Visual Basic code was generated for all class modules, data members, and method specifications. Then the generated source code was refined into an executable system. During the refinement phase, the project and model was automatically kept consistent with each other by use of the round-trip engineering features (code generation and reverse engineering) of Microsoft Visual Modeler 2.0.

The ORDERSYS sample is used in the Visual Modeler Quick Start with Visual Basic tutorial for Microsoft Visual Modeler 2.0. To run the tutorial, choose Visual Modeler Help Topics from the Help menu in Visual Modeler. Expand the Quick Start with Visual Modeler book, open the first topic and follow the instructions. You can also open the Quick Start by double clicking on the qstart.hlp help file, which is located in the Microsoft Visual Modeler 2.0 installation folder.

You should use the tutorial in Quick Start with Visual Modeler to become quickly acquainted with Microsoft Visual Modeler 2.0. You will be introduced to some basic features in the tool, and learn how to:

If you only want to browse the design model of the ORDERSYS sample, without following the Quick Start, start Microsoft Visual Modeler and open ordersys.mdl. A diagram called the Three-Tiered Service Model is displayed. This diagram shows the architecture of the order system application, that is, the classes of the design model and the relations between them. Defining and maintaining the architecture and relationships within the system is one of the most important aspects of large-scale iterative development. To run the ORDERSYS application, open ordersys.vbp in Microsoft Visual Basic. On the Run menu, click Start With Full Compile.

The ORDERSYS model was built with Microsoft Visual Modeler, version 2.0, and the project was built with Microsoft Visual Basic, Professional Edition version 6.0.