Nov 22, 2024. OpenRules Release 10.4.1 is a minor update for the LTS release 10.4.0 that doesn’t change the core of the product but adds several useful features requested by our customers.
1. Support for multi-lingual JSON names for OpenRules RESTful decision services
This post describes a few new features in the Glossary that allow our customers to build more flexible JSON interfaces. We’ve added new optional columns “Attribute JSON Name” and “Business Concept JSON Name” to the glossary that helps our customers build more flexible JSON interfaces.
Let’s look at the new sample project “VacationDaysJson” included in the standard installation of Release 10.4.1. Here is its glossary:

It includes two business concepts “Employee” and “Company” and their JSON names are specified in French as “l’ employée” and “l’ entreprise” in the column “Business Concept JSON Name”. Some attributes also have French names defined in the column “Attribute JSON Name”.
You can deploy this decision model as a REST service using “runLocalServer.bat”. Then if you test it with POSTMAN, you will get the following results:

Instead of French, you may use other national languages. While names in the column “Attribute” should follow the JavaBeans convention (start with a lowercase letter and are camel-cased from there), you may use longer names with spaces and special characters in these new columns.
2. Excluding Temporary Variables from Decision Service Output
The above POSTMAN’s response does not show temporary attributes extra5Days, extra3Days, and extra2Days. Why? This was achieved by marking them as “tmp” in the Glossary column “Used As”. You may use this new indicator “tmp” to exclude any variable from the decision model’s JSON response.
