Release Notes for Corticon.js 2.0.0.0
Item Details Knowledge Base
COR-12654

Using promise and .then asynchronous programming pattern in service callouts is not supported. Running a ruletest from Corticon Studio that calls a service callout which uses this pattern, will hang Corticon Studio.

COR-12652

Using promise and .then asynchronous programming pattern in service callout is not supported. Instead, you should use the await asynchronous programming pattern.

For example, this code using .then:
const promise = getSomeDataAsynchronously();
promise.then( (data) => {
// Got the data, now update the payload with it. });
Should be refactored to using await like this:
const data = await getSomeDataAsynchronously();
// Got the data, now update the payload with it.

For a full SCO working example using the await keyword, access the Corticon.js GitHub samples repository at

ServiceCallOut/BasicAsyncOperation

COR-12435

The rule trace view in Corticon Studio does not properly distinguish between rulesheets with identical names. If the rule trace statements from running a ruletest has entries for different rulesheets with identical names, the go to source navigation may not navigate to the correct rulesheet.

COR-12146

When removing a service callout from a project in Corticon.js Studio, the project is not automatically revalidated. Any ruleflow using the service callout will not be flagged as having an error. If there are any ruleflows using the removed callout, ruletests using the ruleflow will not run and the ruleflow will not be able to be packaged for deployment. Any references to the removed callout will need to be removed from ruleflows.

COR-11516

The files names generated for reports created from Corticon Studio have "%20" in the generated file names in place of any spaces in the asset name. The generated file names should contain spaces.

COR-9691

Custom functions are not automatically reloaded by the Corticon.js Studio Tester when the JavaScript file is modified. When running ruletests in Corticon.js Studio, the JavaScript files for any custom functions are loaded into memory. If these files are modified, they are not automatically re-loaded into memory. This results in the prior implementation of the function being used in the rule test. To force the Tester to reload the custom function either close and reopen the Tester, or close and reopen the Project.

COR-9073

Corticon.js does not support removing the Root entity by rules. Attempting to remove the Root entity will generate a "Circular reference" error when executed.