This is a new feature in Joget DX 8.2. |
This plugin type identifies a plugin that is aware of app import and export events.
Common use cases:
Extract some used values in the app and export & import them together.
Import additional data.
Adding post-processing after import or export.
org.joget.apps.app.model.AppImportExportAwarePlugin
This plugin interface can be used together with other plugin types.
The plugin implemented this interface will be aware of the app import and export events.
The CustomBuilderCallback
plugin interface is refactored to extend this interface
public java.lang.String importAppConfigHtml()
Used to inject html into the import app configuration page
public void importAppPostProcessing(org.joget.apps.app.model.AppDefinition appDef, byte[] zip)
To do some post processing after import based on the import app definition and the zip file
public java.lang.String exportAppConfigHtml()
Used to inject html into the export app configuration page
public void exportAppPostProcessing(org.joget.apps.app.model.AppDefinition appDef, java.util.zip.ZipOutputStream zip)
To do some post processing to the exported zip based on the app definition
SampleConsolePagePlugin
For testing purposes, this plugin injects a line to the config page and adds/reads a txt file to/from the .jwa.