Using Rose Import Tool in Pramati Studio
Overview
The Rose Import Tool imports an XMI file created using Rational Rose 2000 Enterprise Edition XMI Add-In kit, and creates a desk for it. It is used to generate sources only for the model created in Rational Rose. For details on how to convert Rose Model into an XMI file, visit http://www-140.ibm.com/developerworks/rational.
Features of Rose Import Tool
The features of Rose Import Tool are:
- Once configured, Rose Import menu item is added under the Tools menu of Pramati Studio
- It takes the XMI file (created using Rational Rose 2000 XMI Add-In feature) from the user, creates a new desk, generates the sources for the UML Model and adds them to the desk
- It compiles and builds the classes
- It identifies the bean and creates the bean properties based on the information available in the XMI document
- It enables you to write the business logic and give all the essential bean properties, deployment details and to deploy the beans using the studio tools
Configuring Rose Import Tool in Studio
To configure Rose Import Tool:
- Select Tools>Configure from the main menu and click Import Tool.
- Open roseimporttoolkit.jar from the lib/pramati directory of the Pramati Studio installation directory to add the selected tool to the list and close the panel.
Using Rose Import Tool
To import an XMI of Rational Rose Model using Rose Import Tool:
- Select Tools>Rose XMI Import.
- Enter the XMI filename in the dialog.
- Select the filename and click Import. A dialog asking to create a new desk, appears. Type a desk name, select the appropriate template, and click OK. This parses the XMI file, shows the model packages and the desk modules asking you to map the packages to appropriate desk modules.
- Select Compile and Build All Classes option to compile the generated sources. This is optional.
To undo the mapping, click << button which is enabled when a leaf node is selected.
A new module can also be added by clicking `Add Module' which is enabled when a root node is selected.
Generating sources
Click Generate Source to generate a source and add it to the appropriate desk modules. It identifies the beans and shows a CreateBeanProperties dialog to the user to confirm creation of bean properties.
After the XMI file is successfully imported, the desk view appears .
Note: You should enter the details of bean properties and deployment properties to deploy the beans successfully in Pramati Server