Attributes - Overview
What are attributes?
In a rule engine, attributes are pieces of information or data that are used to make decisions or apply rules. They help the rule engine understand and evaluate different situations or conditions.
For example, for an airline business, the attributes required to compute the point accrual would be:
- Flight destination: Determines specific rules or decisions for the destination.
- Passenger age: Applies different rules or policies based on age groups.
- Flight time: Triggers rules or actions based on departure or arrival time.
- Ticket class: Applies different rules or services based on ticket class.
Access the Attributes Manager
To access Attributes Manager, go to the Rule Engine tab and click on the settings icon at the top right, as shown in the image below.
Attribute Field Description
The attribute has several fields that can be specified:
- Attribute name: This field is used to provide a name for the attribute.
- Data type: This field specifies the type of data that the attribute will store. It can be a string, number, boolean etc.
- API/File key: This field is used to specify the key or identifier that will be used to access the attribute's value from an API or file.
- The field is unique: This field indicates whether the attribute's value must be unique across all instances or records. If this field is set to true, then each instance or record must have a unique value for this attribute.
- The field is mandatory: This field specifies whether the attribute is required or optional. If this field is set to true, then the attribute must have a value and cannot be left empty.
Managing Attributes
Navigate to "Rule Engine > click on the icon " and manage the attributes based on your requirements. The Attribute Settings section in Loyalife allows admins to manage key configurations for:
To manage points configurations please visit the link https://help.loyalife.xoxoday.com/v7.16/docs/point-definition#/
Pre-requisitesA user needs permission from admin in User Access Management in order to create attributes.
Updated 6 months ago
