English |
---|
Importing a Joget AppJoget Apps are packaged files that contain Form, |
...
...
UI, Process definitions, custom plugin, and or app data. |
...
Apps can be exported from another Joget installation, or downloaded from the Joget Marketplace. Importing a new app into an environment with an existing App ID will result in the creation of a new App Version. You may also choose to retain or override environment variables and plugin default properties by checking on the checkboxes. |
Example:-
- App with Id "leaveSystem" with App Version 2 (Process Version 10) exists in the environment.
- Importing an App with the same App Id will will result in the creation of an App with the ID "leaveSystem" with App Version 3 (and Process Version 11).
To import an app, log in to the App Center as as an admin or a user with an "admin role" (See See Managing Users for more information).
- Click on the Import App button (see Figure 1).
Image Removed
Image Added
Figure 1: App Center buttons
- You can also import apps from the Design App dashboard (the URL is httpshttp://localhost:8080/jw/web/desktop/apps/userview/appcenter/home/_/home).
Image Removed
Image Added
Figure 2: Import the app via the Design App page
In the Import App popup window, select the app ".jwa" file from your hard disk folder folder and click on on the Upload button.
Click on the Show Advanced Options hyperlink to manage the import options, as follows:
Publish the app after importing if you want to run the app.
- At the top left, click on the Not Published or Version button Versions button.
- A window will popup the pop up the App Configuration Management. In the Manage App Version tab, click Click on the app version radio button and then click on Publish button.
Image Removed
Image Added
Figure 4: Publish an app
You can also manage the following app import options:
- New Version: Clone this app into the next version number.
- Publish: Publish for users to run the app.
- Unpublish: Unpublish to hide the app.
- View: Jump to this version to view the app elements.
- Delete: Permanently delete this app. App data and process data related to this app will not be deleted.
You cannot undo or reverse an app deletion. You can import your app which you have previously exported or restore from a database backup (caution, a restore may affect other apps and Joget data).
- Click the Launch button to run the published app. The app will open in a new browser tab.
Image RemovedImage Added
Figure 5: Run a published app
Panel |
---|
borderColor | purple |
---|
bgColor | white |
---|
titleColor | black |
---|
borderWidth | 1 |
---|
titleBGColor | #ddccff |
---|
borderStyle | solid |
---|
title | New feature |
---|
|
New Import Feature in Joget DX 8 version 8.1 onwards.- Joget DX 8 version 8.1 onwards support zipping folder like `crm_1` from app_src folder and use it to import app.
- This feature will support the use of zipped files from app_src folder to be imported into Joget DX.
- Steps to use this feature
- Go to
installation folder/wflow/app_src/<app name> eg: crm - Zip one of the app's version folder eg:
crm_1
Image Added
Image Added
- A new app version for the
crm app should be created. (Version 2) (new app if does not exist)
Image Added |
Import App Troubleshooting
There will be cases where you will get an error when importing an app to a new Joget DX Environment.
Image Added
Figure 6: Import Error
These are potential errors that could cause the error and how to fix it.
- java.sql.SQLException: Column 'id' cannot be null in Joget log.
- The error was caused by a missing id in the appDefinition.xml of the exported app.
- To fix this, go to the exported app .jwa file and open appDefinition.xml, this requires you to search id one-by-one to check if there's an id with no value.Image Added
- In the figure above, in line 1441, an Environment Variable id's value is not set. In this sample case, we will set the id with "test".
- Image Added
- Replace the "<id>test</id>" with the correctly declared one from your original app to avoid possible conflict / mismatch, save it in your .jwa file and test the app import again.
- The error should not re-occur.
App Configuration Management
The App Configuration Management popup window has the following additional management tabs:
Exporting a Joget App
The Export option option allows one to export out the entire app design into a single file. This is useful when one is performing a backup or transferring the app into to another server.
- To export an app, the first login to any Userview UI in the current app as an administrator.
- In the Admin Bar on the right, click on All Apps, choose the App intended, and select Properties & Export on the left.
Image Removed
the App Composer of the Application click on the Export Button on the top left.
Image AddedClick on the Export button along the top.
- A file .jwa extension will be generated. This is a zip file you can open in any zip or compression utility. You can now take this .jwa file and import it into another Joget platform.
...
Joget DX has a new feature where you can select to include the following data or plugin plugins when exporting apps:
- The app's transaction data records.
- The custom plugins used in your app (This option is not available if you are running on Joget Cloud).
Note |
---|
When the "Export plugins" property is checked: If Joget App Git is enabled (default behavior), Joget will search the "wflow/app_src/[appId]/[appVersion]/plugins" folder for any custom plugins used in the app to include it into in the exported app file. If Joget App Git is disabled, Joget will search the app's component definitions for matching classpaths instead. Reference: Git Configuration - Disabling Git In Joget DX |
The above-selected elements will be compressed and added to the "appname.jwa" file. When you import this app into a new Joget platform, the data records will be added in to the database and any custom plugins added to Joget's ".\wflow\app_plugins\" folder.
Caution: If the app's transaction records are huge, export and import of the app could take a long time and may cause a performance issue for other Joget users. If you have a lot of data records, it is better to use a database utility to perform a database SQLdump.
Image RemovedImage Added
Figure 7: Exporting An App
Related Documentation
...