Adding an Attribute (Service Entity)
Steps to Add an Attribute:
- Navigate to the Explorer Menu.
- Right-click an existing Service Entity and select Add Attribute.
- Click ‘+New’ in the properties panel.
- Configure the attribute properties.
- Click Save to apply changes.
- A confirmation message "Attribute Added Successfully" appears.
Attribute Properties
| Property | Description | Comments |
|---|---|---|
| Name* | Name of the attribute. | Must start with a letter. No spaces or special characters except '_'. |
| Data Type* | Defines the type of data stored. | Options: String, Integer, Long, Double, Boolean, DateTime, Binary, Complex, Map, Any, FormFile. |
| Is Array | Specifies if multiple values can be stored. | Accepts either Yes or No (default: No). |
| Example | Provides a sample value. | Used in Swagger documentation. |
| Reference Entity* | Links the attribute to another entity. | Required if Complex datatype is selected. |
| Mandatory | Defines if the attribute is required. | Accepts either Yes or No (default: No). |
| Scale | Specifies decimal precision. | Only applicable for Double data type. For example, in the number 123.456, the scale is 3 because there are three digits after the decimal point: 4, 5, and 6. |
| Precision | Total number of significant digits. | Only applicable for Double data type. For example, in the number 123.456, the precision is 6 because there are six significant digits: 1, 2, 3, ., 4, 5, and 6 |
| Date Option | Defines date formatting rules. | Options: Fixed (specific format) or Current Date (dynamic timestamp). |
| Default Value | Defines a preset value. | Optional. Useful for setting standard values. |
| Reference Key | Assigns a key when Map datatype is selected. | Required for mapping relationships. |
| Reference Value | Assigns a value when Map datatype is selected. | Can store multiple values if IsArray is enabled. |
| Description | Short description of the attribute. | Useful for documentation purposes. |
note
An asterisk (*) denotes that the property is mandatory for creating an attribute.