Follow the tasks outlined in this article to upgrade your Appway installation from version 11.x to 2022.1.x.
Please, note that upgrading from Appway 11 to Appway 2022.2 is a necessary step before upgrading to
FNZ Studio 2022.2.
You can use this checklist to track your progress and ensure you do not miss any steps (all details are outlined in the related sections):
- Pre-upgrade, requires that you have:
- Verified technical requirements and library updates
- Cleaned the 11.x model
- Checked removed and deprecated features, and ensured you are not using features removed in Appway 2022.1
- Verified changes in default behavior
- Prepared custom extensions (if applicable)
- Created a backup
- Upgrade, requires that you have:
- Stopped Appway
- Updated Cluster Storage (if applicable)
- Updated Appway Core Platform
- Updated / installed Extensions
- Updated / installed Packages
- Checked Hazelcast updates
- Tested your installation
- Post-upgrade, requires that you have:
- Reviewed changes in default functionalities and changed features
- Verified new features
- (Optionally) Performed other optional and recommended actions
Check the following documentation resources for further information whenever applicable:
- General Documents:
- Reference Documents:
Perform these steps while still running Appway 11.x, as a preparation before the actual upgrade. This is a major upgrade and requires careful preparation and planning.
Consult the Technical Requirements article (Appway 2022.1 section) to check any possible changes regards to browsers, Application Servers, and JDK. Ensure your system complies with such requirements before continuing with the upgrade.
Moreover, see the section below for specific information on Java upgrade.
Unlike Appway Platform versions 8.0 to 11.1, which were running on Java 8, Appway 2022.1 runs only on Java 11 (see System Installation: Technical Requirements for a list of supported distributions of Java 11).
The following actions are, therefore, required:
-
Some third-party libraries in Appway need access to JDK-internal APIs. For this reason, the following command line option must be set when starting the Java application server:
--add-exports java.base/jdk.internal.ref=ALL-UNNAMED
-
When starting Appway on Java 11, you may find warnings about "illegal reflective access" in log files. See Known Issue KI-20221-1 for more information.
-
Compared to Java 8, there have been some changes to number and date formats in Java 9 - 11. See the Changes to Number and Date Formats in Java 11 section just below for full information.
Depending on the regional settings of an Appway installation, Java 11 may use different number and date formats compared to Java 8.
Example 1
For region 'German (Switzerland)' (de_CH), the group separator in numbers has changed from an Apostrophe (Unicode U+0027) to a Right Single Quotation Mark (Unicode U+2019):
- Java 8:
1'234.568 - Java 11:
1’234.568
Example 2
For region 'French (France)' (fr_FR), the short date format now has a 4-digit year instead of a 2-digit year:
- Java 8:
24/02/77 - Java 11:
24/02/1977
As a consequence:
- For new installations of Appway 2022.1, we recommend using the new number and date formats as supported by Java 11. They are based on an official standard, the Common Locale Data Repository version 33 of the Unicode Consortium. No further actions are required.
- For existing installations upgrading from Appway 11.1 and lower, we recommend configuring Java 11 to use the rules of Java 8 when formatting numbers and dates. This is to avoid breaking existing Appway Solutions or integrations with third-party systems.
- To continue using the formatting rules of Java 8 on Java 11, pass the following Java System Property on the command line when starting Appway:
-Djava.locale.providers=COMPAT,SPI
More background information can be found at the following links:
Check library updates (added, removed or upgraded libraries). Review your Solution and verify that custom libraries and other extensions are compatible with the changes outlined below. For a full list of Third-Party Libraries in Appway, check also the related article.
Library updates can also take place in subsequent Appway patch versions. This section is updated continuously with such changes, which are also reported in the related patch version Release Notes.
The following libraries were upgraded in Appway 2022.1.1:
- Caffeine from version 2.8.5 to 3.0.5
- Jackson Core, Jackson Annotations, and Jackson Module JAXB Annotations from version 2.12.3 to 2.12.6
- Jackson Databind from version 2.12.3 to 2.12.6.1
- Apache Commons Compress from version 1.5 to 1.21
- Hazelcast from version 4.0.2 to 5.0.2
It is especially important to make sure that the Appway model is error-free before upgrading. Issues without visible consequences in the current application can cause problems after upgrading.
- Go to Solution Design > Validation and run a global validation.
- Solve any errors or warnings and ensure that the Appway 11.x model is clean before moving on.
Check removed and deprecated features:
- Features removed in Appway 2022.1 — Before upgrading, check if any of the removed features are used by your Solution and if so, modify your Solution to work without these features.
For some removed features, you can use the search functionality available at Solution Design > Search to search your Solution for occurrences. - Features deprecated in Appway 2022.1 — Deprecated features do not generally require any action before upgrading. Deprecated features, in fact, will continue to work as normal in Appway 2022.1, as they are planned to be removed in minimum two years since the date of the release that deprecates the item, and this time frame gives you plenty of time to check your Solution and implement any needed changes. However, we suggest that you start considering a migration from these features following the recommended actions described in Features deprecated in Appway 2022.1.
Verify the following changes in Appway default behavior and take the recommended actions if your Solution is affected by such changes. These changes generate errors or runtime exceptions, therefore they should be addressed in the Pre-Upgrade phase.
Starting from Appway 2022.1, all errors raised during Screens scope initialization (namely, script errors in variable assignments or type mismatches for assigned variables) will break the Screen or suspend the token. Specifically:
- For Screen Includes, the standard red error box will be shown in the place of the included Screen.
- For Screen Tasks, the token will be suspended before landing to the Screen.
This new behavior fixes an issue, occurring in previous Appway versions, where exceptions were ignored (errors were only logged) in case of failure during Screen scope initialization, and Screens were rendered the best way possible. This resulted in no visible feedback, thus making the final user unaware that the an issue occurred during scope initialization.
Recommended actions:
- We recommend that you run a preliminary check by verifying all Screen assignments (both Screen Tasks and included Screens) to ensure they do not break due to script errors or type mismatches in assigned variables.
- Moreover, we recommend that you test as many scenarios as possible to verify that no Screens (Tasks and included Screens) break. This is necessary as assignments can contain scripts, and there might be cases where an issue only occurs at runtime (depending on the content of the script and on how it gets evaluated when executed with actual data).
This step applies if: You are using Startup Files.
As part of the Hazelcast upgrade to version 5.0.2 (see further details below), the timeout for a node reconnecting to a cluster was changed from 20s to infinite. This may prevent the cluster from starting up correctly if Startup Files are enabled.
Recommended action: Check and, if necessary, adjust the connection strategy for clients in the hazelcast-client.xml file
If your Appway installation contains custom extensions, make sure that they are compatible with the Appway 2022.1 release before upgrading. Contact your Appway representative or Appway Support for more details.
Create a backup of the existing 2022.1.x installation.
Follow the steps in this section to upgrade your system once it is ready.
You will need the following files:
- Latest Appway 2022.1.x version
- Compatible Appway extensions, based on those available in the current environment and the list of mandatory extensions.
- Compatible Appway Packages, including all mandatory Packages for Appway 2022.1.x as well as any other Packages which you have licensed and which are provided by Appway, delivered as one or more
AWDEPLOYMENT files.
Run a clean shutdown of the Appway installation to remove any files that are not required. For more information, see Shutting Down a Large Cluster.
To update the Appway Core Platform on your application server:
- Open the control center of your application server
- Deploy the new version of the WAR file
Note: For multi-node installations, deploy the WAR file on each node of the Cluster.
Important! If you have customized the
web.xml file, merge your custom
web.xml with the new
web.xml delivered with Appway 2022.1. Make sure that your customized
web.xml includes all new entries delivered with Appway 2022.1.x. Failure to do so can lead to unexpected behavior in the Appway Studio.
Contact
Appway Support if you require assistance when creating the updated custom
web.xml file.
You need to perform the following actions on extensions:
- Update all extensions currently running on your system.
Important! Update all of the extensions. Even if the version of an extension has not changed and it contains no new features, you must replace it with a version compiled against Appway 2022.1.x.
- Newly install any mandatory extensions for Appway 2022.1.x which are currently not available on your Appway installation (see the list of mandatory extensions in the section below).
- Verify if any extension has been removed in the Feature Removal and Deprecation with Appway 2022.1 article, and take the necessary actions (if any).
To update/install extensions, follow these steps:
- Install / update the extensions by adding them to the
<Local file system>/data-home/extensions directory. When updating extensions, make sure you update only the JAR files; any CFG files should remain the same as on your 2022.1.x system, in case you made any custom configurations.
Note: For multi-node installations, install / update the extensions on each node of the cluster.
- Make sure every extension has the proper name and is unique:
- One JAR file per extension, with the proper file name of the type OfficialExtensionName.jar must be present.
- Any other redundant JAR files with custom prefixes or suffixes (such as OfficialExtensionName-1.2.3-2022.1.1.jar or dev-OfficialExtensionName.jar and so on) must be removed.
- After starting Appway, ensure the extensions are started at System Configuration > Extensions in Appway Studio.
Mandatory extensions are an essential part of the Appway Platform and must be installed on every Appway instance. If these extensions are not installed and running, Appway itself is not considered correctly installed and set up. Mandatory extensions provide important features and strengthen the available analytical capabilities allowing you to tune your Appway installation and ensure maximum platform stability.
Ensure the following mandatory extensions are installed on your system:
- AppTask — Includes all the logic behind the autogeneration of the Data Driven UI and the logic to apply a Theme to such UI. This extension is used by Appway's App Tasks.
- AppTaskAPI — Exposes the API used to communicate with the backend (Data Logic, Theming, Process). This extension is used by Appway's App Tasks.
- ClusterTools — Provides insights into the internals of Appway Cluster and Hazelcast (see documentation).
- ComponentExtension — Contains most of the Screen Components available in Appway.
- DefaultIcons — Adds generic Workspace icons for use with Screen Components and in Solutions.
- Functions — Provides many additional functions vital to working in Appway.
- ProcessUsageTracker — Collects usage statistics (started, updated, stopped) for top-level Processes in Appway Solutions. These statistics can be accessed in the license report.
- StatisticsCollector — Collects statistics relevant for testing and tuning Appway installations (see documentation).
- SystemHealthSensors — Adds additional health sensors to the Appway Health Service (see Health Sensor documentation).
- WorkitemFinder — Provides out-of-the-box filters as well as sorting, paging, and text-based searching capabilities for Workitems (see documentation).
You need to perform the following actions on Packages:
- Install all mandatory Packages for Appway 2022.1 (see the list of mandatory Packages in the section below). If the mandatory Packages are already installed, update them to versions compatible with Appway 2022.1.
- Update all Packages which you have licensed and which are provided by Appway to versions compatible with Appway 2022.1.
To update/install update Packages, follow these steps:
- Place the
AWDEPLOYMENT files containing the Packages into the packages folder in the Data Home (<Local file system>/data/packages). The Packages are then automatically installed when Appway is started. See Importing Packages for more details on installing Packages automatically. - If you prefer to install/update Packages manually, install/update them at Solution Design > Import in the Studio after starting Appway.
Note: Updating Appway Packages such as the Design System will overwrite any custom changes you have made for such a Package. In general, modifying Packages managed by Appway is not recommended, as upgrading becomes more difficult.
Mandatory Packages are an essential part of the platform and must be available on every Appway instance. If these Packages are not installed (or not updated to a version compatible with Appway 2022.1), Appway itself is not considered correctly installed. Mandatory Packages provide important features and functionality allowing you to use your Appway installation more effectively.
Ensure the following mandatory Packages are installed on your system:
- Design System — Provides patterns, prebuilt modules, and styling to enable the straightforward implementation of a cohesive brand experience.
- Data Logic — Provides a Solution template and utility functions that enhance Appway's native Data Logic functionalities.
Hazelcast has been updated to version 5.0.2 in Appway 2022.1.1.
For security reasons, member auto-discovery (which was introduced with Hazelcast version 5.0) is disabled automatically in hazelcast.xml.
See also the section below for further implications and actions.
This step applies if: You want to avoid WARN messages on best performance and reflective access.
With the update of Hazelcast to version 5.0.2 in Appway 2022.1.1, you may also get WARN messages related to best performance and reflective access at startup.
Such WARN messages can be silenced with the following JVM options:
--add-modules java.se
--add-exports java.base/jdk.internal.ref=ALL-UNNAMED
--add-opens java.base/java.lang=ALL-UNNAMED
--add-opens java.base/java.nio=ALL-UNNAMED
--add-opens java.base/sun.nio.ch=ALL-UNNAMED
--add-opens java.management/sun.management=ALL-UNNAMED
--add-opens jdk.management/com.sun.management.internal=ALL-UNNAMED
After performing the actual upgrade, follow these steps to test your installation:
- Start Appway.
- When completely started, check the log output of the startup. Carefully examine all errors and warnings before continuing to the Studio.
- Check that the Appway version number has been updated in System Maintenance > Overview.
- Check that extension version numbers have been updated in the System Configuration > Extensions > Version column.
- Re-run the Validation report (Solution Design > Validation). Browse the validation logs (Show Validation Logs) and use its diff viewer to compare versions. Apply fixes for any new errors or warnings.
- Thoroughly test your Solution.
Perform the steps outlined in the following sections when Appway 2022.1.x is running. Not all steps may apply to your specific Solution.
Some Appway features and default functionalities may change between versions. Check the changes below to verify whether they apply to your Solution.
This step always applies. No specific actions are needed. If your Solution uses the OfflineWorklistClient extension, check the
following section for specific information.
For security reasons, Appway 2022.1 and greater will generate fully random IDs for Process Instances and Process Tokens. Existing Process Instances and Tokens will keep their old IDs. However, new Process Instances and Tokens will receive IDs with a fixed length of 32 hex characters ('0'-'9' and 'a'-'f') where the first character is always a letter ('a'-'f'). This results in an entropy of slightly less than 128 bits and makes it virtually impossible to guess the ID of a Process Instance or Process Token, or to run a successful enumeration or forced browsing attack on endpoints using such IDs. The new IDs also do not leak information about the cluster node on which they have been generated.
Previously, IDs for Process Instances and Process Tokens were generated with Appway's UID generator. Since UIDs follow a simple sequence, it was easier to predict past and future IDs. Also, UIDs can have a variable length, starting at 14 without an upper limit, which makes it harder to design things like database schemas where such IDs should be stored in table columns.
As a consequence of changing the IDs for Process Instances, Value Stores will also receive new IDs. This is because the ID of a Value Store is always the same as the ID for its associated Process Instance. URLs which carry such IDs in the URL path or as parameters may change their length and become longer (maximum + 18 characters) or shorter.
In Appway 2022.1, the size of the workflowInstanceId and workflowTokenId columns of the Database tables defined by the OfflineWorklistClient extension has been extended from 20 to 32 characters. For existing installations, this requires a manual step to update the table definitions in the Database. Execute the appropriate script, among the following, in the Database (scripts are also attached (txt)):
ORACLE
ALTER TABLE WorkflowInstances MODIFY workflowInstanceId VARCHAR2(32);
ALTER TABLE WorkflowInstanceAttributes MODIFY workflowInstanceId VARCHAR2(32);
ALTER TABLE WorkflowTokens MODIFY (workflowTokenId VARCHAR2(32), workflowInstanceId VARCHAR2(32));
ALTER TABLE WorkflowTokenAttributes MODIFY (workflowTokenId VARCHAR2(32), workflowInstanceId VARCHAR2(32));
POSTGRESQL
ALTER TABLE WorkflowInstances ALTER COLUMN workflowInstanceId type character varying(32);
ALTER TABLE WorkflowInstanceAttributes ALTER COLUMN workflowInstanceId type character varying(32);
ALTER TABLE WorkflowTokens ALTER COLUMN workflowTokenId type character varying(32);
ALTER TABLE WorkflowTokens ALTER COLUMN workflowInstanceId type character varying(32);
ALTER TABLE WorkflowTokenAttributes ALTER COLUMN workflowTokenId type character varying(32);
ALTER TABLE WorkflowTokenAttributes ALTER COLUMN workflowInstanceId type character varying(32);
SQL SERVER
ALTER TABLE WorkflowInstances ALTER COLUMN workflowInstanceId VARCHAR(32);
ALTER TABLE WorkflowInstanceAttributes ALTER COLUMN workflowInstanceId VARCHAR(32);
ALTER TABLE WorkflowTokens ALTER COLUMN workflowTokenId VARCHAR(32);
ALTER TABLE WorkflowTokens ALTER COLUMN workflowInstanceId VARCHAR(32);
ALTER TABLE WorkflowTokenAttributes ALTER COLUMN workflowTokenId VARCHAR(32);
ALTER TABLE WorkflowTokenAttributes ALTER COLUMN workflowInstanceId VARCHAR(32);
MySQL
ALTER TABLE WorkflowInstances MODIFY COLUMN workflowInstanceId VARCHAR(32);
ALTER TABLE WorkflowInstanceAttributes MODIFY COLUMN workflowInstanceId VARCHAR(32);
ALTER TABLE WorkflowTokens MODIFY COLUMN workflowTokenId VARCHAR(32);
ALTER TABLE WorkflowTokens MODIFY COLUMN workflowInstanceId VARCHAR(32);
ALTER TABLE WorkflowTokenAttributes MODIFY COLUMN workflowTokenId VARCHAR(32);
ALTER TABLE WorkflowTokenAttributes MODIFY COLUMN workflowInstanceId VARCHAR(32);
This step applies if: Your Solution uses Data Logic Collection Controls and exploits the behavior described below.
Two issues have been fixed in Data Logic Collection Controls, which imply a change of behavior. In case your Solution exploits the previous behavior (described below) at runtime, please contact Appway Support.
- Collection Controls could contain (at runtime) a Collection whose type was not compatible with the binding of the Control itself (not the same type nor a child type). This behavior was incorrect. Currently, such Controls are shown in error state in the Workspace.
- It was possible to add Elements whose type was not compatible with the binding of the Control itself (not the same type nor a child type). This behavior was incorrect. Currently, adding such Elements to a Collection is not allowed.
This step applies if: Your Solution intentionally uses Memory properties to override Environment properties.
Environment properties now have higher priority than Memory properties. Previously, Memory properties could be used to override Environment properties, which was problematic for system administration.
This is a potentially breaking change if a system intentionally uses Memory properties to override Environment properties. In this case, the system setup needs to be updated.
Appway 2022.1 brings a host of new features. Adopting these new features is not a prerequisite for successful upgrade, but the use of these features is beneficial in the long run.
See Appway 2022.1 Products card for full information.
The following sections outline further optional and recommended actions to be performed post-upgrade.
To keep your Solution up to date and make sure it uses the recommended functions and methods, we strongly advise performing an automatic migration of functions and method calls as a further post-upgrade step. This is done through the Automigrator Tool described below.
If you have not run automatic migration before, consider that you might get a large number of changes.
Follow these steps:
- Execute
Migration:MigrateFunctions, and pass the Package ID as an argument, as the function executes migration on a per-Package basis.
Example: Migration:MigrateFunctions('ClientOnboarding') migrates all occurrences of deprecated and unrecommended functions and method calls in the 'Client Onboarding' Package.
In detail, the migration function performs the following actions:
- The migration function finds all Business Objects using deprecated and unrecommended functions and method calls within the given Package.
Example – The 'Client Onboarding' Package contains the Script Function Business Object 'Test', which uses the deprecated USERROLES() function:
Function ClientOnboarding:Test(String $value) : Nothing Begin
USERROLES();
End
- The migration function replaces all such occurrences with new and recommended functions and method calls; an uncommitted version of each Business Object with migrated code is created.
Example – The Script Function Business Object 'Test' has been modified by the migration function to replace the deprecated function:
Function ClientOnboarding:Test(String $value) : Nothing Begin
User:CurrentUserListRoleIds();
End
- The migration function returns a list of Business Object IDs that have been migrated.
Example:
String[ClientOnboarding:Test]
- Based on the list of migrated Business Objects, review the changes to the Business Objects and commit them.