skip to main content
Corticon Studio: Quick Reference Guide : Vocabularies : Populating a new Vocabulary : Adding nodes to the Vocabulary tree view : Attribute nodes: Adding and editing attributes and their properties
 

Try Corticon Now
Attribute nodes: Adding and editing attributes and their properties
1. Select any Entity node in the Vocabulary tree view.
2. Do one of the following:
*Right-click to display the pop-up menu and choose Add Attribute
*Choose Vocabulary > Add Attribute from the menubar.
*Choose from the toolbar
3. Select the Entity in the Vocabulary tree to display its properties.
4. Assign property values as described in the following table.
The window shown here lists the basic properties common to every Attribute.
Table 16. Basic Attribute Properties
Property
Value
Attribute Name
Assign 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
Data Type
Enter the data type of the attribute. 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 Rule Modeling Guide's Creating the Vocabulary chapter.
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 generated by the Deployment Console. Base attributes map directly to an element in the XML CorticonRequest/Response documents or object properties processed by the Server in production.
Transient attributes are derived fields; they exist only during rule execution and are not part of XML schemas generated by the Deployment Console. They do not need to be included in the XML CorticonRequest documents or objects, and they are not included in the XML CorticonResponse documents or objects produced by the Server in deployment. 
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.
When the Vocabulary is showing its details, additional Attribute properties are available. These properties and their usage are discussed in the Server Integration & Deployment Guide's chapter "Preparing Studio files for deployment."
Table 17. XML Mapping and Java Object Mapping Attribute Properties
Property
Value
XML Namespace
Specifies the full namespace of XML Element Name when there is no exact match.
XML Element Name
Specifies the XML Element Name when there is no exact match.
Java Object Get Method
Manually specifies the GET method of a class property that does not conform to naming conventions of the auto-mapper.
Java Object Set Method
Manually specifies the SET method of a class property that does not conform to naming conventions of the auto-mapper.
Java Object Field Name
Manually specifies a public instance variable name.
When the Vocabulary is showing its details, additional Attribute database properties are available.
Table 18. Enterprise Data Connector (EDC) Attribute Properties
Property
Description
Values
Applicability
Column Name
Name of the database column, chosen from a drop-down list consisting of all column names associated with the Entity Table Name (see Entity Properties).
Optional, if not specified, system will infer best match from database metadata.
Value Strategy
Strategy to use to generate unique value for this column.
Native, Table, Identity, Sequence, UUID
Optional. Only enabled if attribute is an element of the Entity Identity set. Only value strategies that make sense with respect to the attribute data type will be presented in the drop-down list.
Value Sequence
The fully-qualified name of the sequence to be used.
Only enabled if attribute is an element of the Entity Identity set and Identity Strategy is Sequence. Required if enabled.
Value Table Name
The fully-qualified name of the identity table to be used, chosen from a drop-down list of all table names and sequence names.
Only enabled if attribute is an element of the Entity Identity set and Identity Strategy is Table. Optional. If not specified, the value will default to SEQUENCE_TABLE.
Value Table Name Column Name
The name of the column in the identity table that is used as the key (this column will contain the name of the entity). Chosen from a drop-down list of all columns in the table selected in the Table Name field.
Only enabled if attribute is an element of the Entity Identity set and Identity Strategy is Table. If not specified the value will default to SEQUENCE_NAME (String).
Value Table Value Column Name
The name of the column which holds the identity value. Chosen from a drop-down list of all columns in the table selected in the Table Name field.
Only enabled if attribute is an element of the Entity Identity set and Identity Strategy is Table. If not specified the value will default to NEXT_VAL (Big Integer).