Managing Model Packages¶
A model package is a collection of models created based on usage scenarios. It defines the model elements for the devices or businesses within that scenario. Model packages simplify the model construction process, enabling users in various domains to quickly apply models to meet specific scenario requirements. This file introduces the steps for managing model packages.
Prerequisites¶
You need permission to edit model packages. If you don’t have the permissions, contact your OU administrator for access. For more information, refer to Model Management Permission Allocation.
Create Model Packages¶
A model package contains multiple models. A single model can belong to multiple model packages.
Go to Developer Console in the application portal and select Model Packages > Custom Model Packages.
Click Create Model Packages in the top left of the page and configure the model attributes as prompted, including:
Group: Select an existing model group.
Name: The name of the model
Business Identifier: Together with the group identifier, this forms the model’s unique identifier.
Identifier: Models in the default group will have identifiers matching their business identifiers.
Description: A description of the model.
3. Click Create to complete the operation.
Configure Model Packages¶
Go to Developer Console in the application portal and select Model Packages > Custom Model Packages / Shared Model Packages.
Click the Configure button on the right of the target model package to open its details page.
Note
When editing a shared model package, you need to click the Custom Configuration button in the top-left corner to switch to the custom configuration interface before making changes. The effective configuration of a shared model package = custom configuration + unchanged parts of the original configuration.
Click + Create Model Package, select the models to include in the popup, and click Confirm.
Click the Configure button on the right of the target model. In the popup, select the Basic tab and complete the following details:
Model Type:
Station
Device
Component
Custom
Device Group
Model Alias: A name for the model in the model package. When using the model through the model package, you can display the alias as needed.
Select the Image tab in the popup, then click + Add Image, fill in the following details, and click Confirm:
Identifier: Identifier of the model icon
Image: Upload the model icon
Manage Model Packages¶
In the Custom Model Packages or Shared Model Packages tabs, you can manage model packages from the list:
Click Export to export the model package.
Click Import to import an Excel or JSON file to create or update model packages in batches.
Click … > Delete on the right of the target model package to delete models. Shared model packages cannot be deleted.
Click the Edit button on the right of the target model package to modify its name or description.
On the model package details page, edit the model packages as needed.
Click … > Edit Basic Information to modify basic model package information.
Click to delete models from the model package.
Click to modify a model’s basic information or icon in the model package.
For shared model packages, switch to Custom Configuration in the top-left corner, select the models to modify, and reconfigure them in the popup.