Add and edit attribute nodes and their properties
- Last Updated: March 4, 2020
- 2 minute read
- Corticon
- Documentation
- Select the Entity node in the Vocabulary tree view where you want to add an attribute.
-
Right-click, choose Add Attribute, and then
use its submenu to specify the datatype of the attribute, as illustrated for a Date
attribute:

(You could instead choose the menu command Vocabulary > Add Attribute.) Note that the toolbar button
always creates a String attribute.
-
After creating the new attribute, the editor cursor lets you modify
the default name from
Attributento your preferred name. -
If your preferred datatype is a Custom Data Type, click on the
dropdown menu for the datatype...

...and then select the defined Custom Data Type you want to use for this attribute, as illustrated:
- Assign the other property values as described in the following table.
Note:
The following table lists the basic properties common to every Attribute.
| Property | Value |
| Attribute Name | Assigns a name to the new Attribute. As with Domain and Entity nodes, double-clicking the node in the tree view will also open an editing box. Name changes made in either the node or the property will update in both places; however, you should choose to refactor the name instead to insure that it perpetuates throughout the project. |
| Data Type | The default value is String. Other available data types: Boolean, Decimal, DateTime, Date, Integer and Time. You can also have a custom data type. All types are described in the Rule Language Guide and in the Build the Vocabulary Build the Vocabulary section. |
| Mandatory | A mandatory attribute cannot have a value of
null. This setting affects the members of the values sets shown in
Rulesheet drop-downs. For example, an attribute whose Mandatory value is
No will always include a null value selection in its Rulesheet
drop-downs. |
| Mode | Choose the attribute's Mode from the drop-down
list. Base attributes exist or are
used by systems outside Corticon, and are included in the XML schemas and
contracts
. Base attributes map directly to an element in
the XML CorticonRequest/Response documents or object properties processed
by the Server in production.
Transient attributes can, however, be dragged into a Ruletest's Input column and provided input values (often zero) so that calculations in tests produce results that can validate rules. Note: If you export tests that use transients to XML,
and then run them on a deployment Server, the transients are
ignored. |