My FNZ Studio Version
The article you are currently reading is not compatible with your selected My Appway version.

System Installation & Upgrade

Latest Update: 22.01.2024 | Margherita Taffarel
Documentation
2022.2

Note that,starting from version 2022.2, the Appway Platform has been renamed FNZ Studio (also referred to, generically, as Platform in this article). Appway Studio (design-time environment) and Appway Workspace (runtime environment) have been renamed FNZ Studio Composition and FNZ Studio Runtime, respectively.

Please, note that, if you are on an Appway 11 version, upgrading from Appway 11 to Appway 2022.1 is a necessary step before upgrading to FNZ Studio 2022.2.

Follow the tasks outlined in this article to upgrade your Platform installation from version 2022.1.x to 2022.2.x.

Upgrade Checklist

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):

  1. Pre-upgrade, requires that you have:
    • Verified technical requirements and library updates
    • Cleaned the 2022.1.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
  2. Upgrade, requires that you have:
    • Stopped the Platform
    • Updated Cluster Storage (if applicable)
    • Updated the Core Platform
    • Updated / installed Extensions
    • Updated / installed Packages
    • Edited hazelcast.xml
    • Tested your installation
  3. Post-upgrade, requires that you have:
    • Reviewed changes in default functionalities and changed features
    • Verified new features
    • (Optionally) Performed other optional and recommended actions

Related Documentation Resources

Check the following documentation resources for further information whenever applicable:

1 Pre-Upgrade

Perform these steps while still running Appway 2022.1.x, as a preparation before the actual upgrade. This is a major upgrade and requires careful preparation and planning.

1.1 Verify Technical Requirements

Consult the Technical Requirements article (2022.2 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.

1.2 Check Library Updates

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, check also the related article.

Library updates can also take place in subsequent patch versions. This section is updated continuously with such changes, which are also reported in the related patch version Release Notes.

Library Updates in Version 2022.2.1

The following libraries were upgraded in version 2022.2.1:

  • Apache Tika from version 1.26 to 1.28.4

The following third-party library has been removed in version 2022.2.1:

  • OWASP ESAPI
    As a result of this removal, the configuration property nm.security.esapi.init has also been removed. Moreover, the startup log no longer includes messages from the initialization of ESAPI.

1.3 Clean the 2022.1.x Model

It is especially important to make sure that the model is error-free before upgrading. Issues without visible consequences in the current application can cause problems after upgrading.

  1. Go to Solution Design > Validation and run a global validation.
  2. Solve any errors or warnings and ensure that the Appway 2022.1.x model is clean before moving on.

See also Housekeeping: Cleaning up Data for more information on best practices with regards to Process design and maintenance.

1.4 Check Removed and Deprecated Features

Check removed and deprecated features:

  1. Features removed in version 2022.2 — Before upgrading, carefully check the full list of Features removed in version 2022.2 to evaluate if your Solution is affected by feature removals and follow the recommended actions.
  2. Features deprecated in version 2022.2 — Deprecated features do not generally require any action before upgrading. Deprecated features, in fact, will continue to work as normal in version 2022.2, 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 version 2022.2.

1.5 Check Changes in Default Behavior

Verify the following changes in 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.

1.5.1 Restricted Annotation on Java Classes (Breaking Change)

As part a project to remove dependencies of Solutions on Java code started in Appway 10, @Restricted annotation can be applied to internal Java classes and/or methods to block their execution in Java.
Although getter/setter methods were already correctly blocked, an erroneous workaround allowed executing them via property notation.
Starting from version 2022.2, this wrong behavior is fixed and both the following methods are now consistently blocked:

CONTEXT().getMailService().getIncomingMailConfigurations().get(0).getServer();
CONTEXT().getMailService().getIncomingMailConfigurations().get(0).server;

Moreover, a validation error is now correctly triggered in both the cases illustrated above, namely:

Restricted method com.nm.mail.IncomingMailConfiguration.getServer(). Using this method is not allowed and does not work.

However, since this behavior represents a breaking change, the license property nm.license.exprlang.java.restricted.ignoreForBeanProperties (default = false) allows restoring the previous behavior, if needed.

1.6 Prepare Custom Extensions

If your Platform installation contains custom extensions, make sure that they are compatible with version 2022.2 before upgrading. Contact Support for more details.

1.7 Create a Backup

Create a backup of the existing 2022.2.x installation.

2 Upgrade

Follow the steps in this section to upgrade your system once it is ready.

You will need the following files:

  1. Latest Platform 2022.2.x version
  2. Compatible extensions, based on those available in the current environment and the list of mandatory extensions.
  3. Compatible Packages, including all mandatory Packages as well as any other provided Packages which you have licensed, delivered as one or more AWDEPLOYMENT files.

All these files are delivered by Support.

2.1 Stop Core Platform

Run a clean shutdown of your installation to remove any files that are not required. For more information, see Shutting Down a Large Cluster.

2.2 Update Cluster Storage

Version 2022.2 internally requires a new persistent distributed map called systemEntriesMap. When upgrading to version 2022.2 this map needs to be created in Cluster Storage:

  • For the File System-based Cluster Storage and for the Cloud-native (Azure, Amazon Web Services) Cluster Storage implementations, the map is automatically created.
  • For the Relational Database Cluster Storage, it might need be created manually depending on your installation. The updated SQL schema definition files are available in the RelationalDbHazelcastStore Extension (Cluster Storage) article.

See the System Installation 2022.2 guide for more information on Cluster Storage.

2.3 Update Core Platform

To update the Core Platform on your application server:

  1. Open the control center of your application server
  2. 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 version 2022.2. Make sure that your customized web.xml includes all new entries delivered with version 2022.2.x. Failure to do so can lead to unexpected behavior in Studio Composition.

Contact Support if you require assistance when creating the updated custom web.xml file.

2.4 Update / Install Extensions

You need to perform the following actions on extensions:

  1. 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 version 2022.2.x.
  2. Newly install any mandatory extensions for Platform 2022.2.x which are currently not available on your installation (see the list of mandatory extensions in the section below).
  3. Verify if any extension has been removed in the Feature Removal and Deprecation 2022.2 article, and take the necessary actions (if any).

To update/install extensions, follow these steps:

  1. 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.2.x system, in case you made any custom configurations.
    Note: For multi-node installations, install / update the extensions on each node of the cluster.
  2. 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.2.1.jar or dev-OfficialExtensionName.jar and so on) must be removed.
  3. After starting the Platform, ensure the extensions are started at System Configuration > Extensions in Studio Composition.

2.4.1 Mandatory Extensions in version 2022.2

Mandatory extensions are an essential part of the Platform and must be installed on every instance. If these extensions are not installed and running, the Platform 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 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 App Tasks.
  • AppTaskAPI — Exposes the API used to communicate with the backend (Data Logic, Theming, Process). This extension is used by App Tasks.
  • ClusterTools — Provides insights into the internals of the Cluster and Hazelcast (see documentation).
  • ComponentExtension — Contains most of available Screen Components.
  • DefaultIcons — Adds generic Workspace icons for use with Screen Components and in Solutions.
  • Functions — Provides many additional functions vital to working in the Platform.
  • ProcessUsageTracker — Collects usage statistics (started, updated, stopped) for top-level Processes in Solutions. These statistics can be accessed in the license report.
  • StatisticsCollector — Collects statistics relevant for testing and tuning your installations (see documentation).
  • SystemHealthSensors — Adds additional health sensors to the 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).

2.2.2 DefaultUser Extension

The DefaultUser Extension, available in version 2022.2 and higher, can be used if no other mechanism to create users is available. Consider the following information:

  • It creates a user with id: nm.
  • The password of the default user can be configured using the default.user.password configuration property. This must be stored in the DefaultUser.jar.cfg file that must be created and placed in the <Local file system>/data-home/extensions folder.
    Example configuration: default.user.password = some-secure-password
  • The DefaultUser extension and the configuration file DefaultUser.jar.cfg must be uninstalled after the first user has been created, otherwise it would fail to start.

2.5 Update / Install Packages

You need to perform the following actions on Packages:

  1. Install all mandatory Packages for version 2022.2 (see the list of mandatory Packages in the section below). If the mandatory Packages are already installed, update them to versions compatible with version 2022.2.
  2. Update all the provided Packages which you have licensed to versions compatible with version 2022.2.

To update/install update Packages, follow these steps:

  1. 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 FNZ Studio is started. See Importing Packages for more details on installing Packages automatically.
  2. If you prefer to install/update Packages manually, install/update them at Solution Design > Import in Studio Composition after starting the Platform.

Note: Updating Packages such as the Design System will overwrite any custom changes you have made for such a Package. In general, modifying Packages managed by the Platform is not recommended, as upgrading becomes more difficult.

2.5.1 Mandatory Packages in version 2022.2

Mandatory Packages are an essential part of the platform and must be available on every instance. If these Packages are not installed (or not updated to a version compatible with version 2022.2), the Platform itself is not considered correctly installed. Mandatory Packages provide important features and functionality allowing you to use your 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.
    Note: If you are updating the Design System Package, see the Design System Upgrade Guide for more information on the update process.
  • Data Logic — Provides a Solution template and utility functions that enhance native Data Logic functionalities.

Download mandatory Packages from the Products page.

2.6 Edit hazelcast.xml

Due to an issue, the Expiration Time setting in the Cluster Cache table in FNZ Studio Composition (System Maintenance > Cluster Caches) as well as the value for the implicit variables insertTimestamp available in some Cluster Cache Script Functions do not work properly. For this reason, we recommend that you add the following snippet to the hazelcast.xml file to enable the per-entry-stats on the clusterCacheEntriesMap.

Note this issue is fixed in FNZ Studio 2023 LTS.
<map name="clusterCacheEntriesMap">
 <per-entry-stats-enabled>true</per-entry-stats-enabled>
 <near-cache name="clusterCacheEntriesMapNC">
   <cache-local-entries>true</cache-local-entries>
   <time-to-live-seconds>3600</time-to-live-seconds>
   <max-idle-seconds>0</max-idle-seconds>
   <invalidate-on-change>true</invalidate-on-change>
   <in-memory-format>OBJECT</in-memory-format>
   <serialize-keys>false</serialize-keys>
   <eviction eviction-policy="LRU" max-size-policy="ENTRY_COUNT" size="2147483647"/>
 </near-cache>
</map>

2.7 Test Your Installation

After performing the actual upgrade, follow these steps to test your installation:

  1. Start the Platform.
  2. When completely started, check the log output of the startup. Carefully examine all errors and warnings before continuing to Studio Composition.
  3. Check that the Platform version number has been updated in System Maintenance > Overview.
  4. Check that extension version numbers have been updated in the System Configuration > Extensions > Version column.
  5. 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.
  6. Thoroughly test your Solution.

3 Post-Upgrade

Perform the steps outlined in the following sections when Platform version 2022.2.x is running. Not all steps may apply to your specific Solution.

3.1 Check Changes in Features and Default Functionalities

Some features and default functionalities may change between versions. Check the changes below to verify whether they apply to your Solution.

3.1.1 Appway Renamed FNZ Studio

This step always applies. No action is required on your side, but check the information below to make sure you have identified the change.

Appway has been renamed FNZ Studio, and this implies a change in the application logo (default login page and Studio Composition left bar) and the favicon on the browser tab.

FNZStudioRenaming.png

3.1.2 Changes in Compliant FNZ Studio Colors

This step always applies. Some actions are required on your side. Check the information below for details.

In Studio Composition, the background and favicon color is regulated by the nm.system.color configuration property.
FNZ Studio has a set of colors which are compliant with our branding strategy. However, when upgrading from a lower version, the predefined color for that version is retained.

We highly recommend that you change such color by setting the nm.system.color configuration property (under System Configuration) to one of the following values:

  • #000000 (default color / recommended)
  • #C47BF3
  • #DE385F
  • #DF7239
  • #EECF3A

If you are using more than one environment, however, you may want to have distinct favicons on your browser window. In this case, you can set the nm.system.color configuration property of each system to one of the compliant colors above.

3.1.3 Changes in Advanced Studio Permissions

This step applies if: You are using Permissions (System Configuration > Users/Groups/Roles > Roles > [right click] > Permissions) to regulate access to different Studio Composition areas. Some actions may be required on your side. Check the information below to make sure you have identified all the changes.

While in Appway 2022.1 and lower, Permissions to a certain Role could either be granted or not granted at all, starting from version 2022.2, there are up to three levels of Permissions that can be assigned to each Role. When upgrading to version 2022.2, existing Permission settings are, therefore, migrated to the new behavior.
Moreover, some changes in the application of the Advanced Studio Permissions licensing have taken place.

Feature behavior
When upgrading to version 2022.2, existing Permissions are automatically migrated to the new three-level Permission model. Consider the upgrade information summary below, and see full details in the Advanced Studio Permission feature documentation:

Note the following:
  • Most Permissions have been reorganized and renamed for easier access. Check the Permission List Mapping in the dedicated article for full details.
  • Permission migration may require a page refresh (or logout/login) to be applied.
  1. All the Permissions that were set in 2022.1 and lower are migrated to Full Access in 2022.2.
  2. Some specific Permissions that were unset in 2022.1 and lower are migrated to Read-Only Access in 2022.2:
    • Packages
    • Process Messages
    • Logging
    • System Statistics
    • Configuration Properties
    • Users/Group/Roles
  3. All the other Permissions that were unset (their checkbox was deselected) in 2022.1 and lower are migrated to No Access in 2022.2.

Licensing
The use of Advanced Studio Permissions is subject to the Advanced Studio Permissions Licensing. In version 2022.2, some changes in the application of such license have taken place. These changes apply both to upgrades from previous versions and new installations.

  1. If the Advanced Studio Permissions License is NOT available:
    • The Administration Role has all Permissions, therefore it has full access to all Studio Composition functionalities, both related to the Core Platform and Extensions.
    • The User Role has "Workspace" Permissions, therefore it has access to Studio Runtime.
    • The Permissions dialog (System Configuration > Users/Groups/Roles > Roles > [right click] > Permissions) is NOT available.
  2. If the Advanced Studio Permissions License IS available:
    • The Administration Role has Studio Composition Permissions. It can assign Permissions to other Roles and, at the same time, Permissions can be removed from the Administrator.
    • The Permissions dialog IS then available.
  3. If the Advanced Studio Permissions License is REMOVED at some point:
    • The Administration Role regains all Permissions. Permission configurations for other Roles are "memorized" in the system in case the License is installed again at a later point.

3.1.4 Discussion Feature Disabled by Default

This step applies if: You are using the Discussion feature (Solution Design module) to send messages to other Platform users.

Following the deprecation of Discussion in Appway 2022.1, this feature is now read-only by default (the nm.studio.discussion.enabled property is set to false). This implies that user messages are disabled, while automatic activity logs are still kept. The former Discussion tab (Solution Design module) has been renamed Activity Log. See documentation.

3.1.5 Password Hashing for Local Platform Users

This step always applies. Some actions may be required on your side. Check the information below for details.

The algorithm used for hashing passwords of local Platform users has been changed from MD5 to Argon2id. Existing passwords hashed with MD5 can still be verified. New and updated passwords will be hashed with Argon2id and a random salt with 128 bit entropy.

This change does not affect remote Platform users managed by an LDAP server, and OpenID Connect provider, or any other external identity providers or user management systems. For such remote users, the Platform does not store passwords in its own user database.

To benefit from the better password protection, existing local Platform users can change their password once. This will replace the old password hashed with MD5 with a new password hashed with Argon2id. The same happens if an Administrator resets the password of a local Platform user.

Required JAAS Configuration Changes

As part of this change, support for the JAAS login module NmLoginModule has been dropped. Tomcat-based installations using the Platform's JAAS login module NmLoginModule must migrate to the new JMX-based JAAS login module JmxLoginModule.

  1. Install NmJAASLoginModules.jar version 2.0.0 or newer into $TOMCAT_HOME/lib.
  2. Update the JAAS configuration in $DATA_HOME/conf/jaas.conf, replacing NmLoginModule with JmxLoginModule.

Here is an example JAAS configuration with an application name appway and a single login module before the migration:

	appway {
		 com.nm.auth.jaas.NmLoginModule required
				debug="true"
				url="http://localhost:8080/weblistener/anonymous/listener/LoginService"
				secret="abcdef";
	};

And the same configuration after the migration:

	appway {
		 com.nm.auth.jaas.JmxLoginModule required
				debug="true";
	};

If the JAAS configuration uses an application name other than appway (first line), keep the current application name. This value must match the application name set in Tomcat's server.xml configuration file (JAASRealm attribute appName). The JmxLoginModule does not need any additional parameters. The only supported but optional parameter is debug. If the JAAS configuration contains multiple login modules (e.g., LdapLoginModule and NmLoginModule), only replace the NmLoginModule.
3. Enable JMX support in the Platform by setting the configuration property nm.jmx.enabled to true in the server configuration:
nm.jmx.enabled = true

Related Changes

If the script language function User:HashPassword(String) (formerly EncryptUserPassword(String)) is used hash a password, it automatically uses the new password hashing algorithm. The same is true for the Platform Java API method UserService.encryptPassword(String). This guarantees that procedures like automatic creation of local Platform user accounts achieve the same level of password protection.

However, please note that the function and the Java method will return different hash values on every invocation. Comparing the result of an invocation with a hash value computed earlier will not work. They can only be used to hash new passwords, not to verify an existing password.

Troubleshooting

Argon2id is configured so that every hashing operation should take between 0.01 and 0.1 seconds and use 16 MB of memory. If there are unexpected problems such as login times of several seconds, please see log files. If the calculation of a password hash takes longer that 0.5 seconds, Platform logs a warn message like the following:

Password hash time with algorithm 'argon2id' and parameters 'iterations:3,memory:14,parallelism:1': 549 ms.

If this proofs that password hashing is the reason for the login delay, please contact Support for further assistance.

Further References

See the following articles for further information:

3.1.6 Column Renamed in 'Users' Tab

This step applies if: You changed the default columns in the Users screen (System Configuration > Users/Group/Roles) and saved it as a user preference. Note that this has a minor impact.

Note that column Roles in the Users screen (System Configuration > Users/Group/Roles) has been renamed Access.
If you changed the list of available columns in the Users screen and, therefore, stored them as a User Preference (UserList.visibleColumns) you may want to replace Roles with Access in the list of columns, or just delete the User Preference and create it again.

3.1.7 Data Classes are created for Money schemas in OpenApi Extension

This change applies if: You use the OpenApi Extension 2.0.2 or higher.

OpenApi Extension 2.0.2 introduces the following change of behavior: Data Classes are now created for Money schemas which, therefore, are no longer mapped to Money Primitive Types.

However, if necessary, you can restore the previous behavior through the extension property openapi.importer.map.money2primitive, which allows mapping Money schemas to Money Primitive Types (default is false).

3.2 Adopt New Features

Version 2022.2 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 version 2022.2 Products card for full information on new features, as well as links to full Release Notes and new documents.

3.3 Perform Other Optional and Recommended Actions

The following sections outline further optional and recommended actions to be performed post-upgrade.

3.3.1 Running Automatic Migration to New Functions and Method Calls (Recommended)

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:

  1. 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]
      
  2. Based on the list of migrated Business Objects, review the changes to the Business Objects and commit them.
© 2026 Appway AG. All Rights Reserved