Classifier Import / Export

Classifier Export

To export a classifier:

  1. Make sure the "Classifiers" section is open.

  2. Place the cursor on the line of the desired classifier and press image1 "Export Classifier" button.

  3. This will download the classifier to your device.

Classifier Import

To import a classifier:

  1. Make sure the "Classifiers" section is open.

  2. Click the image2 "Import" button at the bottom of the classifiers list.

  3. Select and download the required file from your device in xml format (see below for a description of the format).

  4. The classifier will be loaded into the system and displayed in the list of existing ones.

    • If you import the classifier again, it will be updated (the classifiers are compared by name) - the new classifier will not be loaded.

    • When deleting a classifier node, all attribute values of the classified records will also be deleted.

Note

In the current implementation, part of the file cannot be loaded - old changes are overridden by new ones

Description of Xml Format

Download an example of OKPD2 classifier description in .xml format

Root field

Child fields

Description

classifier

Root element

settings

Classifier settings

version

Classifier revision

name

Classifier system name

displayName

Classifier name displayed

description

Classifier description

storageId

Storage ID

createdBy

The user on whose behalf the classifier will be created/modified

createDate

Creation date

moduleVersion

Version of the Classifiers REST module

checkPeriods

Enable/disable validity period

inactive

Marking the classifier as active/inactive

instanceId

Classifier instance ID

typeId

Object type ID

assignments

Classifier assignment settings to the entity/reference set

version

Classifier version settings

version

Revision of the classifier version

name

Version system name

displayName

Version display name

description

Version description

inheritAttributes

Enable/disable global attribute inheritance

validationPattern

Enable/disable code pattern validation

defaultVersion="true"

Marks the default version in which the insertion goes. The version cannot be inactive (inactive="true")

inactive

Active/inactive version

createdBy

The user on whose behalf the version will be created

createDate

Date of version creation

nodes

Hierarchy settings

node

Classifier node settings

node > version

Node revision

node > name

Node system name

node > displayName

Node display name

node > classifierVersion

The system name of the version in which the node is inserted

node > inactive

Active/inactive node