<< Click to Display Table of Contents >> Navigation: Support > Reconfigurable Rulebook > Definition Objects > AttributeValueDataPacket |
An Attribute is a property that helps describes a participant, user, club or team. For example the type of rifle a participant is using (e.g. Sporter vs Precision air rifle) or an age group the participant is a member of (e.g. Junior, Open, Senior).
Attributes are highly configurable. Each Attribute will have one or more fields. Each field may be configured to be any value the user types in, a value from a pre-configured list, or a combination.
There are two types of Attributes. Attributes that rely on user input and Derived Attributes, that get their value from one or more other attributes. An example of a Derived Attribute is an age group that gets its value from an athlete’s date of birth.
An Attribute Value represents the data that is stored for the participant, user, club, or team.
Attribute Name |
Type |
Description |
AttributeDef |
String formatted as a SetName |
Formatted as a SetName. Points to the Attribute Definition. Required. |
AttributeValue |
Either an ATTRIBUTE VALUE or a list of ATTRIBUTE VALUE |
Name value pairs of the data that is stored. Will be a list if MultipleValues, in the Attribute definition is set to true. Will be a single item if MultiipleValues is set to false. Required. |
Visibility |
String formatted as a Privacy |
Visibility of this data. Required. |
Attribute{ "SetName" : "v1.0:orion:Simple Email", "HierarchicalName" : "orion:Simple Email", "DisplayName" : "Email Address", "Version": "1.1", "Type" : "ATTRIBUTE", "Owner" : "OrionAcct000001", "MultipleValues" : true, "Fields" : [ { "FieldName" : "EmailAddress", "DisplayName" : "Email Address", "ValueType" : "STRING", "FieldType" : "OPEN", "MultipleValues" : false, "Required" : true, "Validation" : { "Regex" : "[\\w-]+@([\\w-]+\\.)+[\\w-]+", "ErrorMessage" : "Invalid Email Address" } } ] }
Attribute Value{ "attribute-def" : "v1.0:orion:Simple Email", "attribute-value" : [ { "EmailAddress" : "erik@****.com" }, { "EmailAddress" : "erik_anderson@****.com" } ], "visibility" : "PRIVATE" } |
Attribute{ "SetName" : "v1.0:orion:Air Rifle Type", "HierarchicalName" : "orion:Air Rifle Type", "DisplayName" : "Air Rifle Type", "Version": "1.1", "Type" : "ATTRIBUTE", "Owner" : "OrionAcct000001", "Fields" : [ { "FieldName" : "Three-Position Air Rifle Type", "ValueType" : "STRING", "FieldType" : "CLOSED", "DefaultValue" : "Sporter", "Values" : [ { "Name" : "Sporter", "Value" : "Sporter", }, { "Name" : "Precision", "Value" : "Precision" } ] }
] }
Attribute Value{ "attribute-def" : "v1.0:orion:Simple Email", "attribute-value" : { "Three-Position Air Rifle Type" : "Precision" } "visibility" : "PRIVATE" }
|
Note:
The Reconfigurable Rulebook and functionality will be implemented with the release of Orion Scoring System v. 3.0 (TBA)