Static instances are used to create predefined, named Instance of Entity with predefined Attribute values |
An Instance is an actual instantiation of an entity and its associated attributes and/or relations. There are two types: static and dynamic. A static instance is specified in Blueriq Studio. A dynamic instance is created at run-time.
Where an Entity plus Attribute and/or Relation represents the definition of something, an instance represents the actual object.
Property | Description |
---|---|
Entity | Choose the entity. |
Name | Identifies the object. Maximum 50 characters (only letters, numbers and underscores (_)) are allowed. |
Attribute Values | This table sums up the attribute type and name. The value can be edited here and made static. |
Relation Values | This column sums up the relations belonging to the chosen entity. The value can be edited here and made static. |
It is is possible to refer to a specific static instance in an expression by the name that you gave this static instance in studio. The syntax of this expression is:
For example, if you have a static instance Pete of type person, and want to retrieves Pete's name, you can write the expression:
Although you are allowed to change the values of attributes and relations of a static instance at runtime, it is not allowed to delete a static instance at runtime. This results in an error. |