Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 3 Tasks : Creating a Model by Import

Creating a Model by Import
As an alternative to using the Business Object Modeler to create a business object model, you can import a model in any one of several formats, and TIBCO Business Studio will automatically convert it to a business object model. You can import:
TIBCO Business Studio translates the imported XSD or WSDL file into a business object model. This is especially useful if, for example, you have already generated UML models or XSDs that contain information that you want to incorporate in your business object model.
The way that import works with regards to imports and includes is as follows:
If MyXSD1 imports MyXSD2 (each have different namespaces), upon import each XSD file becomes a separate business object model.
If MyXSD1 includes MyXSD2 (they share the same namespace), only one business object model is created.
Importing from a Database
You can import a business object model from a database as follows:
1.
2.
3.
Right-click the Business Objects folder, and select Import > Database.
Select File > Import > Business Object Modeler > Database.
4.
The Import from Database dialog is displayed. It lists any databases that have been found.
5.
6.
The Select BOM destination location dialog is displayed. This enables you to specify where the imported business object model should be created.
The Business Objects folder of the current project is selected as the default location, You can change this, and you can specify a name for the imported file. Specify the values you want.
7.
You can now either click Finish, to import all tables in the database, or click Next to specify what to import.
8.
If you click Next, the Database Tables dialog is displayed. By default, all the tables in the database are selected.
Select or deselect database tables as you require, and then click Finish. The selected tables from the database are imported to the location you specified, and a business object model is created from them.
When a model is imported from a database:
Importing UML Models
You can import existing UML models into the Business Object Modeler as follows:
1.
Right-click the Business Objects folder, and select Import > UML Model.
Select File > Import > Business Object Modeler > UML Model.
2.
The Import UML Model dialog is displayed:
Click the Browse button to select the From Directory where you have stored the UML model. Any UML models that are found are displayed.
In this example, the UML model C:\Data\corporate.uml is selected.
3.
Browse to select the Business Objects folder into which you want to import the model.
Select the Overwrite existing resources without warning checkbox if you know you want to replace an existing model with the one you are importing; otherwise TIBCO Business Studio prompts you to confirm whether to overwrite the existing model.
4.
Click Finish. The Model is imported into the folder that you specified.
Importing XML Schema Files
To import an XML Schema file, do the following:
1.
Right-click the Business Objects folder, and select Import > XSD Schema.
Select File > Import > Business Object Modeler > XSD Schema.
2.
The Import XSD Schema dialog is displayed:
Click the Browse button to select the directory that contains the XSD file that you want to import. Then select the folder, and the specific XSD files you want to import. For example:
Click the Browse button to select the folder into which you want to import the XSD file. This must be a Business Object Model special folder.
3.
Click Finish. Depending on the size of the XSD file, there is a pause while TIBCO Business Studio converts the file to a business object model. When the business object model has been created, check the Problems view for errors or warnings. For more information about how XSD files are converted to TIBCO Business Studio objects, see Appendix A, Business Object Model Mappings to XML Schema.
Importing WSDL Files
To import a WSDL file, do the following:
1.
Right-click the Business Objects folder, and select Import > WSDL.
Select File > Import > Business Object Modeler > WSDL.
2.
The Import WSDL dialog is displayed:
Click the Browse button to select the directory that contains the WSDL file that you want to import. Then select the folder, and the specific WSDL files you want to import. For example:
Click the Browse button to select the folder into which you want to import the WSDL file. This must be a Business Object Model special folder.
Click Finish. Depending on the size of the WSDL file, there is a pause while TIBCO Business Studio converts the file to a business object model. When the business object model has been created, check the Problems view for errors or warnings. For more information about how WSDL files are converted to TIBCO Business Studio objects, see Appendix A, Business Object Model Mappings to XML Schema.

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved