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.
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:
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.
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
We see that you have already chosen to receive marketing materials from us. If you wish to change this at any time you may do so by clicking here.
Thank you for your continued interest in Progress. Based on either your previous activity on our websites or our ongoing relationship, we will keep you updated on our products, solutions, services, company news and events. If you decide that you want to be removed from our mailing lists at any time, you can change your contact preferences by clicking here.
Let our experts teach you how to use Sitefinity's best-in-class features to deliver compelling digital experiences.Learn More