The Release script configuration file uses a structure similar to that used by the model definitions themselves. Add the types and/or aspects and the relevant properties to the releasescript.get.config.xml file to define the options you want available. See the sample configuration provided for examples.
-
Locate the releasesetup.get.config.xml.sample file. For Tomcat
this will be located at:
tomcat\WEBINF\classes\alfresco\templates\webscripts\com\microstrat\kofax\releasesetup.get.config.xml.sample
Note: This is the default location used by the Tomcat application server. The location of the file can vary depending on the application server used by your installation. - Rename releasesetup.get.config.xml.sample to releasesetup.get.config.xml.
-
Reload your web script using the Web Script Index page as
follows:
- Go to http://YOURHOST:8080/alfresco/service/index.
- Click Refresh Web Scripts.
-
Open the Release Script Index tab.
This will now only allow selection of types, aspects, and properties as defined in the configuration file.
For example, you have an aspect with properties assigned to the default content model and have a document with this aspect assigned. When using Kofax integration, when the document exists version option is set, all aspect properties must be mapped and populated in the batch process, otherwise all unmapped properties are overwritten with empty strings (blanked out). This is because in the document exists case, the version option uses checkout/check in functionality, which means that the aspect as a whole is repopulated with empty strings if they are unmapped.
- Map all properties in the batch process
- Split out your aspects so that unmapped properties are part of different aspects