skip to main content
Corticon Extensions Guide : Reviewing what is in the sample extensions : What's in the Extended Operators Sample Projects

Try Corticon Now

What's in the Extended Operators Sample Projects

The Extended Operator Java project contains a src folder with the source code for the extended operators and has on its build path the standard Java system library and CcExtensionApi.jar with the Corticon extension API:
The src folder contains the source code for three Java classes that implement extended operators:
The Extended Operator Rule Project is a set of rule assets that demonstrate the extended operator Java samples:
The Extended Operator Rule project uses the extended operators and the supporting vocabulary, Ruleflows, and Ruletests for the project. It also contains the JAR file of the extensions built from the Java project, sample-extensions.jar.
The sample project contains a Vocabulary, and three Rulesheets that demonstrate each of the new extended operators:
1. FutureValue - Determines years to retirement and the future value of the current investment with a constant interest rate.
2. RetireInLeapYear - Checks whether the retirement year is a leap year
3. DuplicateVendors - Checks to determine that there are not multiple accounts with the same vendor
The Ruleflow chains the three Rulesheets together for the Ruletest to see that the extended operators behave as expected.