The Document-Type Relationship
Think of document types as blueprints and modules as buildings. A document type defines what kind of content a module can hold, what work item types it accepts, and how that module participates in traceability queries and reporting. The module is the actual container where engineers create and edit work items.
Why This Matters
This two-layer architecture enables:
- Automated filtering: PowerSheet RTM queries can automatically filter documents by type (e.g., “show only system requirements from systemRequirementsSpecification documents”)
- Workflow enforcement: All modules of a given type follow the same approval workflow (Draft → In Review → Approved → Published)
- Tooling integration: Risksheet knows which modules to render as interactive risk analysis tables based on document type
- Reporting consistency: Coverage reports can calculate metrics across all modules of a specific type
TestAuto2 Document Type Taxonomy
TestAuto2 defines 10 document types organized around two core workflows: the V-Model requirements cascade and risk analysis.
V-Model Document Types (Requirements Hierarchy)
These document types implement the ISO 26262 V-Model decomposition from customer needs down to design specifications:
| Document Type | Purpose | Work Item Types | Example Module |
|---|
customerSpecification | Top-level customer and regulatory requirements | Customer Requirement, User Need | CUSTOMER-REQS |
systemRequirementsSpecification | System-level functional requirements derived from customer needs | System Requirement | System Requirements Specification |
subsystemRequirementsSpecification | Subsystem requirements refining system requirements for component teams | System Requirement (scoped to subsystem) | ECU & Processing Subsystem Requirements |
designRequirementsSpecification | Implementation-level design specifications | Design Requirement | Camera Module - Design Requirements |
testsSpecification | Verification and validation test cases | Test Case, Verification Test Case, Validation Test Case | System Verification Tests |
Notice that both systemRequirementsSpecification and subsystemRequirementsSpecification use the same work item type (sysReq) but different document types. This allows PowerSheet queries to distinguish “system-level” from “subsystem-level” requirements based on which document they live in, enabling scoped traceability views.
Risk Analysis Document Types
These document types support FMEA, HARA, and control plan workflows using Nextedy Risksheet:
| Document Type | Purpose | Work Item Types | Risksheet Config |
|---|
riskSpecification | Risk assessment modules (HAZOP, HAZID, HARA, FMEA, PFMEA) | Hazard, Failure Mode, Process Failure Mode, Risk Control, Control Plan Item | risksheet.json attachment |
characteristicsSpecification | Product characteristics catalog with target values and tolerances | Characteristic | Can use PowerSheet or Risksheet |
functionsSpecification | System function catalog describing behavioral capabilities | Function | Can use PowerSheet or Risksheet |
The riskSpecification type is the most powerful and flexible. It enables engineers to create:
- HAZID/HARA modules: Analyzing hazards, operational situations, and ASIL classifications
- System/Subsystem/Component FMEA modules: Three-level failure mode analysis hierarchy
- Process FMEA modules: Manufacturing process failure analysis
- Control Plan modules: Quality control planning for critical characteristics
Each module of type riskSpecification has an attached risksheet.json configuration file that defines:
- Column structure and grouping
- Formula logic (e.g., ASIL calculation, RPN computation, Action Priority)
- Cell decorators (traffic lights, conditional formatting)
- Workflow views (progressive disclosure: initial assessment → mitigation → post-mitigation)
Special-Purpose Document Types
| Document Type | Purpose | Tool Integration |
|---|
powersheet | Dynamic traceability matrix views driven by RTM model expansion queries | Nextedy PowerSheet YAML config |
generic | Catch-all for unstructured content (narrative documents, meeting notes) | Standard LiveDoc editor |
Unlike other document types, powersheet modules don’t contain work items. Instead, they query and display work items from other modules based on RTM model expansion paths defined in their YAML configuration. Think of them as “live views” rather than “storage containers.”
How Document Types Control Workflow
Every document in TestAuto2 follows a formal approval workflow defined by its document type. The riskSpecification workflow is representative:
State meanings:
- Draft: Editable, no signature requirements. Suitable for iterative FMEA/HARA development.
- In Review: Locked for editing, awaiting signature from
project_approver role holders.
- Approved: Formal sign-off complete. Suitable for publication but still allows rework if needed.
- Published: Final release. Typically read-only in practice, used as stable baseline for compliance audits.
The rework action provides workflow flexibility while maintaining approval integrity: all existing signatures are marked obsolete, and the signature verdict is reset. Users must repeat the review/approval cycle after corrections.
How Document Types Enable Traceability Filtering
The RTM domain model uses document type constraints to ensure traceability queries return only relevant results. Consider this entity definition from rtm.yaml:
- name: SystemRequirement
polarionType: sysReq
fields:
- description
- classification
createConstraint:
documentType: systemRequirementsSpecification # ← Type filter
pickConstraint:
documentType: systemRequirementsSpecification # ← Type filter
This configuration means:
- Auto-creation: When PowerSheet creates a new System Requirement work item inline, it must place it in a document of type
systemRequirementsSpecification.
- Picker filtering: When engineers link from a System Requirement to another entity, the picker dropdown only shows documents of type
systemRequirementsSpecification.
This prevents common mistakes like accidentally linking a subsystem requirement to a system-level test case from a different module.
Common Misconceptions
”I can put any work item type in any document”
Not quite. While Polarion technically allows this, TestAuto2’s RTM model and Risksheet configurations assume that work item types match their document types. For example:
- System Requirements should live in
systemRequirementsSpecification documents
- Failure Modes should live in
riskSpecification documents
- Test Cases should live in
testsSpecification documents
Violating these conventions breaks PowerSheet expansion queries, Risksheet column formulas, and coverage reports.
”Document type and work item type are the same thing”
No. Document type defines the container (module/LiveDoc). Work item type defines the contents (individual requirements, hazards, failure modes). Multiple document types can share the same work item type (e.g., both systemRequirementsSpecification and subsystemRequirementsSpecification use sysReq).
”Generic documents are useless”
Not true. While generic documents don’t participate in automated traceability queries or Risksheet workflows, they’re perfect for:
- Meeting notes and decision records
- Narrative documentation (process guides, templates)
- Unstructured analysis content that doesn’t fit the V-Model
Just don’t expect coverage reports to track them.
”I can change document type after creation”
Technically yes, but dangerous. Changing document type after a module contains work items can break:
- PowerSheet expansion queries (documents disappear from views)
- Risksheet configurations (columns fail to resolve custom fields)
- Coverage reports (metrics suddenly exclude the module)
Always choose the correct document type before creating work items.
How to Choose the Right Document Type
Use this decision tree when creating a new module:
- Does the module contain risk analysis (FMEA/HARA/HAZOP)?
- YES: Use
riskSpecification (attach risksheet.json configuration)
- NO: Continue below
- Is it a traceability matrix view?
- YES: Use
powersheet (attach PowerSheet YAML configuration)
- NO: Continue below
- Does it contain requirements?
- YES: Choose by level:
- Customer needs:
customerSpecification
- System functional:
systemRequirementsSpecification
- Subsystem scoped:
subsystemRequirementsSpecification
- Design/implementation:
designRequirementsSpecification
- NO: Continue below
- Does it contain test cases?
- YES: Use
testsSpecification
- NO: Continue below
- Is it characteristics or functions?
- Characteristics:
characteristicsSpecification
- Functions:
functionsSpecification
- None of the above:
generic
Practical Implications
Understanding document types helps you:
- Navigate confidently: When you see a module in the document tree, its document type tells you what kind of content it holds and what workflow it follows.
- Troubleshoot traceability: If a module doesn’t appear in a PowerSheet view, check whether its document type matches the
documentType constraint in the RTM model entity definition.
- Configure Risksheet correctly: Each
riskSpecification module needs a risksheet.json attachment tuned to its specific risk analysis workflow (HARA vs SFMEA vs DFMEA vs PFMEA).
- Plan module creation: Before creating a module, decide its document type based on the work item types it will contain and how it participates in traceability.
How-To Guides