Deployment script operations

You can use script operations to export your objects and data models for company deployment in Product Master.

The following table shows each export script operation and description. You can create scripts that call these script operations to export your company during deployment. You can combine the script operations to export specific object types in separate parts, or you can export your complete data model.
Table 1. Script operations for exporting a company for deployment
Script operation Description
new EnvObjectList Returns a container for exporting the object types. This class is used to add and retrieve the object types for export.
setTypeToExport Sets the object types for export.
addObjectByNameToExport

Sets the object for export by specifying the object name as an argument. Use the optional argument, sActionMode, to specify the action mode that the object uses for export. If you do not provide a value for this argument, the default action mode CREATE_OR_UPDATE is used on the object during import.

For catalog and Hierarchy content export, use this script operation to specify the attribute collection that is associated with the object.

For a document store partial export, use this script operation to specify the document store path.

addAllObjectsToExport Sets all the entities of a specific object type for export. Use the optional argument, sActionMode, to specify the action mode that the object uses for export. If you do not provide a value for this argument, the default action mode CREATE_OR_UPDATE is used on the object during import.
setCatalogByNameToExport Sets the catalog contents for export.
setHierarchyByNameToExport Sets the Hierarchy contents for export.
getCatalogNameToExport Returns the last values that are set with setCatalogByNameToExport.
setHierarchyMapToExport Sets the source and destination Hierarchies mappings for export. Use the optional argument, sActionMode, to specify the action mode that the object uses for export. If you do not provide a value for this argument, the default action mode CREATE_OR_UPDATE is used on the object during import.
setItemCategoryMapToExport Sets the catalog and Hierarchy item category mappings for export. Use the optional argument, sActionMode, to specify the action mode that the object uses for export. If you do not provide a value for this argument, the default action mode CREATE_OR_UPDATE is used on the object during import.
getHierarchyNameToExport Returns the last values that are set with setHierarchyByNameToExport.
getTypeToExport Returns the last object type that is set with setTypeToExport.
getTypesToExport Returns all the object types are set with setTypeToExport.
exportEnv

Exports the object types that are specified in envObjList at the specified document store path. Use the argument, sDocFilePath, to specify the directory file path of the compressed file that you export into the document store.

To create a new instance, export only the necessary objects of the document store.

importEnv

Imports the content of the exported archive file into the company and returns a string that represents the debug log.

You can print the debug log or send it as an email.

setActionModeToExport Sets the action mode in subsequent objects that are added to the export list you use for export. See Deployment action modes for details.