wm.tn.admin:extendedImportData
Imports data from the supplied XML, binary, or zip file containing Trading Networks data by either saving the data from an export file or by generating sources for solution deployment through webMethods Deployer. Provides extensions for each asset type and an option to filter the asset type based on internal IDs
Input Parameters
force | String If the keys in the data variable match the keys in the database, this variable indicates whether the rows in the database should be overwritten. Valid values are: true - Overwrite rows in the database if the keys from the data variable match. false - Does not overwrite rows in the database if the keys from the data variable match. |
type | Indicates whether the file that contains data is a binary, XML, or a zip file. |
replaceRuleList | String (Optional) Indicates whether the processing rules from the supplied data should replace the list of processing rules in the database. Valid values are: true - Replace all of the processing rules in the database with those in data. false - Append the processing rules in data to the rules in the database. Default. |
all | String Specifies which Trading Networks assets to import. Valid values are: true - Import all Trading Networks assets. false - Import only those Trading Networks assets that are configured in the importData document, described below. |
importDataFileName | String Indicates the name of the file from which data is to be imported. |
importData | Document The data to import into the Trading Networks database. The document contains the following keys: assetType String Indicates which asset type to import. Valid values are documenttype, documentattribute, processingrule, partner, fieldgroup, fielddefinition, externalidtype, contacttype, binarytype, profilegroup, queue, tpa, dls, functionalpermission, extendedfield, and archiveschedule. |
| all String Indicates whether to import all Trading Networks assets of a specified asset type. Valid values are: true - Import all assets of the specified asset type. false - Import only assets of a specified asset type that match the internal IDs specified in the ids variable. ids String List Specifies the internal IDs associated with the assets to import. For the queue and archive schedule asset types, the internal ID is considered the name of the asset; for all other asset types, the internal ID is the individual asset ID. |
version | Document Version information from the Trading Networks database. The document contains the following keys: major String The major Trading Networks release number. minor String The minor Trading Networks release number. |
Output Parameters
output | Document Contains the results of the import. The document contains the following keys: assets Document List The data that was imported into the Trading Networks database. The document contains the following keys: assetType String The asset type that was imported. id String The internal IDs associated with the asset. name String The name of the asset. status String The outcome of the import of the asset ( success or fail). message String The status message from the last attempt to import the asset. stacktrace String The stack trace of the exception if the import failed. errorMessages String List Any errors encountered during the import process. |