Skip to content

Diagram Mapping

Each mapping rule consists of one Polarion type and one EA diagram type. You can also optionally add an Extended Type to make the mapping more selective.

The default rule exports all EA diagram types as diagram items. This can be found in the provided example export mapping.

        <diagramRule>
            <matchingRule>
                <externalProperty name="_objectType" value="diagram" />
                <myumlProperty name="_objectType" value="ea_Diagram" />
            </matchingRule>
            <properties>
                <property external="title" myuml="Name" />
                <property external="description" myuml="Documentation" />
            </properties>
        </diagramRule>

For specific diagram rules you can add a diagram type and an optional extended type. Example for a SysML Block Definition diagram:

        <diagramRule>
            <matchingRule>
                <externalProperty name="_objectType" value="diagram" />
                <myumlProperty name="_objectType" value="ea_Diagram" />
                <myumlProperty name="_diagramType" value="Logical" />
                <myumlProperty name="_extendedDiagramType" value="SysML1.4::BlockDefinition" />
            </matchingRule>
            <properties>
                <property external="title" myuml="Name" />
                <property external="description" myuml="Documentation" />
            </properties>
        </diagramRule>

A Diagram's extended type can be found in the advanced section of the Diagram's Properties.

ExtendedDiagram

Supported Diagram Types

UI Type XML Type XML Stereotype
Activity Activity
Analysis Analysis
Any Diagram eaDiagram
Class Logical
Communication Collaboration
Component Component
Composite Structure CompositeStructure
Custom Custom
Deployment Deployment
Interaction Overview InteractionOverview
Object Object
Package Package
Requirement Custom Extended::Requirements
Sequence Sequence
State Machine Statechart
SysML Activity Activity SysML1.4::Activity
SysML Block Definition Logical SysML1.4::BlockDefinition
SysML Internal Block CompositeStructure SysML1.4::InternalBlock
SysML Package Package SysML1.4::Package
SysML Parametric CompositeStructure SysML1.4::Parametric
SysML Requirement Custom SysML1.4::Requirement
SysML Sequence Sequence SysML1.4::Sequence
SysML StateMachine Statechart SysML1.4::StateMachine
SysML Use Case Use Case SysML1.4::UseCase
Timing Timing
Use Case Use Case