Martini Data Models Import/Export
Overview
Martini Data Models Import/Export functionality enables seamless transfer of data model files (.model) between your file system and Martini packages.
This feature simplifies sharing models across projects, backing up important data structures, and collaborating with team members.
It provides straightforward drag-and-drop import capabilities and one-click download export options.
Prerequisites
- Martini Designer installed and running
- Create a Martini Package
- Valid
.modelfiles for import operations
Importing Data Models into Martini Packages
Data model importing provides a straightforward drag-and-drop mechanism for transferring existing model files into your Martini packages.
Getting Started with Data Model Import
Import data model files directly into your Martini package using the Navigator view:
- Locate your model files in your file system using any standard file manager
- Open Martini Designer and navigate to your target Martini package in the Navigator view
- Expand the Logic directory or any of its subdirectories within your target Martini package
- Drag the
.modelfile(s) from your file manager directly into the target directory
Expected result: Your imported data models appear in the target directory and are immediately available for use in services, workflows, and other data operations.
Troubleshooting Data Model Import Issues
| Problem | Detection | Cause | Fix |
|---|---|---|---|
| Import fails | Drag-and-drop operation shows error | Corrupted or invalid .model file |
Re-export the source model and try again |
| Invalid file name error | File name validation error during import | File name doesn't follow naming conventions | Rename file using letters, digits, underscore, or dollar sign. Must start with letter, underscore, or dollar sign. Avoid Java keywords (class, import, package, etc.) |
| Imported model won't open | Model appears in the Navigator view but fails to open | Syntax errors in the imported file | Re-export the source model to ensure clean syntax |
Exporting Data Models from Martini Packages
Data model exporting provides download functionality to transfer model definitions from Martini packages to your local file system for backup, sharing, or deployment purposes.
Getting Started with Data Model Export
Export data models from your Martini package using the context menu:
- Navigate to your data model within your Martini package in the Navigator view
- Right-click on the model file (or select multiple models for batch export)
- Select Download from the context menu
- Choose your destination in the file manager that opens
- Save to complete the export operation
Expected result: Individual models export as .model files, while multiple model selections create a compressed .zip archive containing all selected models.
Troubleshooting Data Model Export Issues
| Problem | Detection | Cause | Fix |
|---|---|---|---|
| Download process stuck | Export gets stuck at "preparing download" | Model file was deleted externally | Cancel the download process, then close and expand the directory in Navigator to refresh the view. Note that the model will no longer be available. |
Helpful Resources
- Creating Data Models - Learn how to create data models
- Community Q&A: Martini Community
Have a Question? Post or search it here.