Skip to main content
diagram
This model reference is derived from source code configuration. Verify entity type names and property mappings against your project configuration.

Entity Types

Entity types in the risk management model use the workItems array format with explicit name and type fields.
PropertyTypeDefaultDescription
workItems[].namestringNoneUnique identifier for the entity type in the domain model.
workItems[].typestringNonePolarion work item type ID this entity maps to.
workItems[].propertiesarray[]Property definitions for this entity type.

Entity Property Configuration

Each property supports additional configuration for storage, type, and enum constraints.
PropertyTypeDefaultDescription
workItems[].properties[].namestringNoneProperty name used in queries and data binding.
workItems[].properties[].typestringNoneData type of the property. Determines validation and rendering.
workItems[].properties[].storagestringcustomFieldStorage mechanism in Polarion. Determines how the value is persisted.
workItems[].properties[].customFieldNamestringNonePolarion custom field ID when storage is customField.
workItems[].properties[].enumValuesarrayNoneAllowed values when property type is enum.
workItems[].properties[].targetTypestringNoneTarget entity type for navigation properties.
workItems[].properties[].cardinalitystringmany-to-oneRelationship multiplicity for navigation properties.
workItems[].properties[].navigabilitystringunidirectionalWhether the relationship can be traversed in both directions.

Relationships

PropertyTypeDefaultDescription
relationshipsarray[]Relationship definitions between entity types.
relationships[].fromstringNoneSource entity type. Must match a workItems[].name value.
relationships[].tostringNoneTarget entity type. Must match a workItems[].name value.
relationships[].rolestringNonePolarion link role implementing this relationship.
relationships[].cardinalitystringNoneMultiplicity defining how many instances can be linked.
relationships[].navigabilitystringunidirectionalWhether the relationship supports bidirectional traversal.
relationships[].storagestringlinkedWorkItemPersistence mechanism. Uses Polarion work item links.
relationships[].fromNavPropNamestringNoneNavigation property on source entity for forward traversal.
relationships[].toNavPropNamestringNoneNavigation property on target entity for reverse traversal.
The risk management model uses role instead of linkRole and linkedWorkItem (singular) instead of linkedWorkItems (plural) compared to the RTM model format. Verify which format your model version uses.

Example Entity Definitions

workItems:
  - name: Hazard
    type: hazard
    properties:
      - name: description
      - name: severity
        type: enum
        enumValues:
          - catastrophic
          - critical
          - marginal
          - negligible
      - name: probability
        type: enum
        storage: customField
        customFieldName: c_probability
        enumValues:
          - frequent
          - probable
          - occasional
          - remote
          - improbable

  - name: RiskControl
    type: riskControl
    properties:
      - name: description
      - name: controlType
        type: enum
        storage: customField
        customFieldName: c_controlType
        enumValues:
          - design
          - protective
          - information

Example Relationships

relationships:
  - from: Hazard
    to: RiskControl
    role: mitigates
    cardinality: one-to-many
    navigability: unidirectional
    storage: linkedWorkItem
    fromNavPropName: riskControls
    toNavPropName: hazards

Complete YAML Example

workItems:
  - name: Hazard
    type: hazard
    properties:
      - name: description
      - name: severity
        type: enum
        enumValues:
          - catastrophic
          - critical
          - marginal
          - negligible
      - name: probability
        type: enum
        storage: customField
        customFieldName: c_probability
        enumValues:
          - frequent
          - probable
          - occasional
          - remote
          - improbable

  - name: RiskControl
    type: riskControl
    properties:
      - name: description
      - name: controlType
        type: enum
        storage: customField
        customFieldName: c_controlType
        enumValues:
          - design
          - protective
          - information

relationships:
  - from: Hazard
    to: RiskControl
    role: mitigates
    cardinality: one-to-many
    navigability: unidirectional
    storage: linkedWorkItem
    fromNavPropName: riskControls
    toNavPropName: hazards
Polarion custom field IDs typically use the c_ prefix (e.g., c_probability). The customFieldName property must match the exact ID defined in Polarion’s custom field configuration.

See Also

Code: riskmanagement_model.yaml, whole_rtm.template.yaml
Source Code
  • riskmanagement_model.yaml
  • prod-powersheet-src/com.nextedy.powersheet.client/cypress/fixtures/configurations/whole_rtm.template.yaml