How to use the Corticon.js utilities
- Last Updated: October 26, 2026
- 3 minute read
- Corticon.js
- Version 2.4
- Documentation
Note: If you did not apply a license during the installation of the Corticon.js, add valid license at: C:\Progress\Corticon.js_Work_2.x\license\JSStudio
You can script continuous integration and continuous delivery (CI/CD) when you use the Corticon.js utilities to make changes to software rapidly and iteratively. You can use the corticonJS command line utility with the following options and sub-options:
- Package rules for deployment
- Generate a JSON report
- Generate rule reports
- Run rule tests
The utility is bundled with the Corticon JavaScript Studio installation in its Utilities/bin directory.
Note: The utilities require jdk-21
| corticonJS.bat options |
|---|
|
| --compile options |
|---|
|
| --genJson options |
|---|
|
Example:
>corticonJS -g
-i "C:\Progress\Corticon.js 2.4\Samples\TutorialJS\TutorialJS\Tutorial-Done\tutorial_example.erf"
-o "C:\Progress\Corticon.js 2.4\Samples\TutorialJS\TutorialJS\Tutorial-Done\GenerateJSON.json"
A valid license is required to run gen.JSON in Corticon.js Utilities.
The generated JSON will contain a full representation of the decision service, including all rulesheets, rules, and related attributes. The following assets must be accessible to the utility:
- Vocabulary (
.ecore) - Rulesheets (
.ers) - Nested ruleflows (
.erf)
If the export is successful, the utility exits with code 0. If the export fails, the utility exits with a non-zero code, and error messages are output to the console and potentially logged for further troubleshooting.
Format of the Generated JSON
The generated JSON contains only the functional aspects of the decision service (rulesheets, rules, conditions, actions, vocabulary, etc.). Formatting information (such as UI-related or presentation data) is not included. The format is consistent with the JSON used by the Corticon AI Assistant.
Usability in CI/CD
The utility integrates smoothly into CI/CD processes, enabling users to export decision services in JSON format for reporting as part of their deployment pipelines.
Note: Get the schema for the JSON representation of the ruleflow at C:\Progress\Corticon.js 2.4\Javascript Utilities\Doc.
| --report options |
|---|
|
The files related to reports are in your Corticon.js Work directory's Reports folder.
| --test options |
|---|
|
Note: The test option requires a valid JavaScript enabled license file (CcLicense.jar) in the Utilities/lib folder.