Logical classifications
Logical classifications combine other classifications to produce a single true or false result.
They are used when a condition depends on multiple things being true or false at the same time.
Examples:
- A customer is eligible for booking only if they are active and have a valid contract.
- A room is available if it is not under maintenance and not already booked.
- A task is ready to start if all prerequisites are complete.
Logical classifications make it possible to build larger rules from smaller ones.
What a logical classification is
A logical classification is a named condition that combines other classifications.
Instead of checking a column directly, it references existing classifications and combines their results.
Example:
Table: Customer
Existing classifications:
- Active customer
- Has valid contract
Logical classification:
Result:
| Customer | Active customer | Has valid contract | Eligible customer |
|---|---|---|---|
| Anna | true | true | true |
| Erik | true | false | false |
| Maria | false | true | false |
The logical classification does not change the data.
It simply combines the results of other classifications.
Boolean operators
Logical classifications use standard boolean operators.
AND
All referenced classifications must be true.
Example:
The result is true only if both conditions are true.
OR
At least one referenced classification must be true.
Example:
The result is true if either condition is true.
NOT
Reverses the result of another classification.
Example:
If Account suspended is true, the result becomes false.
Combining multiple classifications
Logical classifications can combine several conditions.
Example:
Result:
| Customer | Active | Contract | Payment overdue | Allowed booking |
|---|---|---|---|---|
| Anna | true | true | false | true |
| Erik | true | true | true | false |
This makes it easy to express real business rules clearly.
Reusing classifications
Logical classifications are often used to reuse existing logic.
Instead of repeating the same conditions everywhere, the system defines them once and combines them when needed.
Example structure:
Active customer
Has valid contract
Payment overdue
↓
Logical classification:
Customer allowed to book
If any underlying classification changes, the logical classification updates automatically.
A simple way to think about logical classifications
A logical classification answers a question like:
When several conditions exist, what combination should count as true?
By combining smaller classifications, the system can express complex rules while keeping each individual classification simple.
Related resources
Reference
How-to
Related concepts