In this post, we will see basic model management functions : – Export / Delete / Import
Before diving into these, i will brief you on what model is ? Model is a group of elements (metadata/source code/ .Net assemblies ) that constitutes distributable software solution. The model file can be installed / exported to/from another environment .
To perform these operations, use ModelUtil.exe which will be located in %/AOSService/PackagesLocalDirectory\Bin
Export Model file :
ModelUtil.exe –export –metadatastorepath=[path of the metadata store] –modelname=[name of the model to export] –outputpath=[path of the folder where the model file should be saved]
On executing this command, model will be exported to the specified path.
Delete the model:
ModelUtil.exe -delete -metadatastorepath=[path of the metadata store] –modelname=[name of the model to delete]
Import the model:
ModelUtil.exe -import -metadatastorepath=[path of the metadata store where model should be imported] –file=[full path of the file to import]
If the expected parameter missing , system specifies the same in the error message.
In the below command, I used the parameter “filename” instead of “file” when importing the model. So the system warns the user about the missing parameter.