Entity Types
The RTM model defines entity types under thedomainModelTypes root key. Each entity type maps to a Polarion work item type via polarionType.
| Property | Type | Default | Description |
|---|---|---|---|
domainModelTypes | object | None | Root container defining all entity types in the domain model. Each key is an entity type name. |
domainModelTypes[].name | string | None | Unique identifier for the entity type. Used in relationships and queries. |
domainModelTypes[].polarionType | string | None | Maps this entity to a Polarion work item type. If omitted, uses a generic work item type. |
domainModelTypes[].properties | array | None | List of properties available on this entity type. Each maps to a Polarion work item field. |
domainModelTypes[].properties[].name | string | None | Name of the property. Must correspond to a Polarion work item field (built-in or custom). |
Standard RTM Entity Types
Document and Chapter are built-in entity types. Document represents Polarion LiveDoc modules. Chapter represents document headings (structure elements). Neither requires a polarionType mapping.Relationships
Relationships define navigable links between entity types using Polarion link roles.| Property | Type | Default | Description |
|---|---|---|---|
relationships | array | [] | Defines all navigable relationships between entity types. |
relationships[].from | string | None | Source entity type. Must match a domainModelTypes key. |
relationships[].to | string | None | Target entity type. Must match a domainModelTypes key. |
relationships[].cardinality | string | None | Relationship multiplicity: one-to-many, many-to-one, many-to-many. |
relationships[].storage | string | None | Persistence mechanism. Use linkedWorkItems for Polarion work item links. |
relationships[].linkRole | string | None | Polarion link role ID. Must exist in project configuration. |
relationships[].fromNavPropName | string | None | Navigation property name on source entity to traverse to target. |
relationships[].toNavPropName | string | None | Navigation property name on target entity to traverse back to source. |
Standard RTM Relationships
Constraints
Entity types support three constraint types for scoping data loading and entity creation.| Constraint | Description |
|---|---|
load | Query filter defining which entities to load. Filters by document properties. |
create | Default values applied when creating new entities of this type. |
pick | Picker filter controlling which entities appear in selection dropdowns. |
Expansion Paths
In the sheet configuration, the RTM model supports multi-level expansion through navigation properties:UserNeed entities and expands two levels deep through SystemRequirement to DesignRequirement, enabling a full RTM hierarchy view in the sheet.
Complete YAML Example
See Also
- Domain Model Types — full property reference for
domainModelTypes - Relationships — relationship configuration reference
- Constraints — constraint types and syntax
- Risk Management Model — alternative model for risk analysis
- Creating Your First Data Model — tutorial for building a model from scratch
Source References
Source References
Code:
rtm_model.yaml, model.yaml, constraints-base.yaml, powersheet.yamlSources
Sources
Source Code
powersheet.yamlprod-powersheet-src/com.nextedy.powersheet.client/cypress/e2e/admin/admin.cy.tsprod-powersheet-src/com.nextedy.powersheet.client/src/modules/ConfigProvider/types/UserPermissions.d.tsprod-powersheet-src/com.nextedy.powersheet/src/META-INF/hivemodule.xmlprod-powersheet-src/com.nextedy.powersheet.client/cypress/fixtures/models/constraints-base.yaml