Model the first rule
- Last Updated: June 13, 2022
- 3 minute read
- Corticon
- Version 7.2
- Version 7.1
- Corticon.js
- Version 2.3
Model the first rule: Cargo weighing <= 20000 kilos must be packaged in a standard container.
Step 1—Defining the rule statement
Enter the plain-language business rule into the Rule Statements section of the Rulesheet as shown.
![]()
Step 2—Define rule conditions
Model the condition of the first rule—Cargo weighing <= 20,000. You can represent this as Cargo.weight <= 20000.
- Click the Rule Vocabulary tab, expand the Cargo
entity, and then drag weight from the Vocabulary and drop it in Row a of the
Conditions pane.

- Specify a value expression for cargo weight in cell 1a (row a,
column 1). Enter <= 20000 in the cell.Note: Do not use commas in value expressions because commas are used to indicate multiple values in Corticon rule modeling.

Step 3—Define rule actions
To define the second part of the rule (Cargo weighing <= 20,000 kilos must be packaged in a standard container), define the rule action:
- Drag Cargo attribute container from the Vocabulary and
drop it in Row A of the Actions pane.

- Specify a value expression for cargo container in cell 1A (row A,
column 1). Select standard in the drop-down list. Note: The drop-down menu options were defined in the Vocabulary, which we will edit later.This action assigns the value of standard to Cargo.container.

Step 4—Link the rule statement to the rule
Link a rule statement to the rule that will be used when the rule is executed. If the conditions in the rule are met, the rule fires, triggering the rule action and sending the rule statement as a message to the application that uses the rule.
To link the rule statement to the rule, enter the Rule Statement’s Reference number, connecting the Rule Statement to the corresponding rule column in the Rulesheet. In this example, the rule is defined in column 1, so enter 1 in the Reference column of the rule statement.
The rule column is highlighted in orange, indicating that the rule is linked to the rule statement.