Note that, starting from version 2022, 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. Refer to our Renaming
article for full information.
With Appway 10, Correctness Rules in the Data Logic are replaced by the new Catalog and Correctness Expression rules in the Data Rules tab of the Data Logic. New rules can only be added in the Data Rules tab. Existing rules defined in the previous Correctness Rules tab can still be used, edited and removed, and they still work as before. However, we recommend migrating such rules to the new Data Rules, since this enables the possibility to include those Rules in other Data Logic Business Objects using the Data Logic Include rule (see the System Upgrade 9.1. to 10 article for more information).
Consider the following information:
- Correctness Rules are deprecated in Appway 10.1 and will be removed in FNZ Studio 2023.
- The Correctness Rules tab has been renamed Correctness Rule (Legacy) and it is shown only if there is at least one Correctness Rule defined. Therefore, once the migration of all Correctness Rules in a Data Logic is completed, the Correctness Rules (Legacy) tab is no longer displayed.
In order to simplify the migration of existing Correctness Rules to the new rules, a migration tool is provided in Studio Composition under Solution Maintenance > Migration Tools > Data Logic Correctness Rules. This tool automates the migration of the Rules while providing detailed insight into any behavior changes to be expected after the migration.
Follow this procedure to migrate Correctness Rules to Data Rules:
- In the Data Logic Correctness Rules Migration Tool, select the set of existing Correctness Rules to be migrated. You can first browse all existing Correctness Rules displayed on the table, whose columns can be filtered and sorted. Then, select the set of rules to be migrated by either filtering the table, or by clicking on the rows to be migrated (multiple selection is possible using the Shift and Ctrl keys). The table lists the following data:
- Data Logic Id: the Id of the Data Logic where the rule is located.
- Rule Name: the name of the rule.
- Old Rule Type: the rule type (Catalog source/ Script Expression source) of the rule to be migrated.
- New Rule Type: the rule type resulting from the migration (Catalog rule/ Correctness Expression rule).
- Behavior Changes: indicates whether the migration of the rule results in changes of behavior. Open the table interline to browse details for each rule to be migrated. Possible behavior changes are:
- Correctness Rules with source Script Expression (new Correctness Expression rules) and source Catalog (new Catalog rules) are no longer evaluated for empty string values.
- All Correctness Rules with source Script Expression (new Correctness Expression rules) for a given property are evaluated (previously only one was evaluated for each property).
- Multiple Correctness Rules with source Catalog (new Catalog rules) defined for the same property result in a run-time error (previously only one was applied and the others were ignored).
- The Extended Error Message setting is discarded during the migration (previously it was ignored).
- Data Logic Locked By: indicates if the Data Logic is locked by any user (this prevents the migration).
- Access Rights: and if the current user has the necessary access rights on the Data Logic (if not, this also prevents the migration).
- Click on the Migrate button to execute migration. For each affected Data Logic, the migration executes these steps:
- Lock the Data Logic (if possible).
- Create a new Rule for each Correctness Rule to be migrated according to the following logic:
- Correctness Rules with source Catalog are converted into Catalog rules.
- Correctness Rules with source Script Expression are converted into Correctness Expression rules
- Copy over the setting of the existing rules into the new rules.
- Remove the existing rules.
- Upon execution of the Migrate action, a report is shown with the result of the operation (failure/success for each Data Logic).
- Consider that the new version of the Data Logic with the migrated rules is not automatically committed, therefore you need to commit it.