Export a decision service as a JSON file
- Last Updated: October 31, 2025
- 1 minute read
- Corticon
- Documentation
The genJson option lets you export a
decision service as a JSON file. A valid license is required to run
gen.JSON in Corticon Utilities.
| Argument | Description |
|---|---|
-i <.erf>
|
Required. Path to the ruleflow (.erf)
file of the decision service. |
-o <.json> |
Path to the output (.json) file to be generated.
|
- 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.
SchemaGet the schema for the JSON representation of the ruleflow at
C:\Progress\Corticon 7.x\Utilities\Doc.
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.