The Corticon.js 1.2 release is now available. It delivers powerful new features and enhancements:
Below you will find a more detailed description of each feature.
When you work with a vocabulary file, you can access the new menu "Populate Vocabulary from JSON" as shown here and point to a JSON file:
As you can see in the screenshot below, generating the decision service is a new option to deploy to the cloud along with AWS Lambda and Azure Functions.
Of course, the decision services can also be generated as part of a CI/CD process via a command line utility.
Try Corticon.js for free
We have added a set of operators to deal with the date or time parts only of a DateTime object.
Checking if two dates or two times are equal. You can now use these two operators:
We also have added comparators (greater and less) with these operators:
The full list is:
These five operators all work the same way, only the returned data type is different.
There are all invoked with two parameters:
For example, the following expression:
getDateTime ( "from Session Data", "lastLogin" ) could be used in a rulesheet to get the last login from session data.
As you can notice, even though the first parameter specifies the custom function to execute, spaces and other characters can be used to make the rulesheet more readable.
Support for multiple Decision Services on the same Html Page
There were ways to have more than one decision service in the same html page with Corticon.js V1.0 and V1.1 but it was not as simple as it could be. Customers have reported they use more than one decision service in the same html page quite often, so in V1.2 we decided to simplify this feature.
Now a set of Corticon engines execution functions are created with one execute function per included decision service. The set is available on the window object as an array property called corticonEngines. Each entry in the array contains an object literal with the execute function.
Here is an example where we include two decision services in the same html page and then later on in some script we invoke each one of them separately:
const result1 = window.corticonEngines.execute(payload1, configuration);
const result2 = window.corticonEngines.execute(payload2, configuration);
We hope you will enjoy this release and do not hesitate to contact us if you have any questions or need help with your cloud migration.
Webinar: Learn the benefits of Corticon.js
Subscribe to get all the news, info and tutorials you need to build better business apps and sites
You have the right to request deletion of your Personal Information at any time.
You can also ask us not to pass your Personal Information to third parties here: Do Not Sell My Info
Let our experts teach you how to use Sitefinity's best-in-class features to deliver compelling digital experiences.
Copyright © 2021 Progress Software Corporation and/or its subsidiaries or affiliates.All Rights Reserved.
Progress, Telerik, Ipswitch, Chef and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.