How to use the Corticon.js utilities
- Last Updated: October 31, 2025
- 2 minute read
- Corticon.js
- Documentation
C:\Progress\Corticon.js_Work_2.x\license\JSStudioYou 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.
jdk-21| corticonJS.bat options |
|---|
|
| --compile options |
|---|
|
| --genJson options |
|---|
|
>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.- 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.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 |
|---|
|
test option requires a valid JavaScript enabled license file (CcLicense.jar) in the Utilities/lib folder.