UmlSequenceFragment
23 Sep 20251 minute to read
Represents a fragment in a UML sequence diagram.
Fragments define conditional or grouped interactions, such as alternatives or loops.
Properties
conditions UmlSequenceFragmentConditionModel[]
Defines the conditions and corresponding message/fragment references associated with this fragment.
Each condition can represent a branch or case in the fragment (e.g., if-else, loop iteration).
conditions: [
{
content: 'Condition 1',
messageIds: ['MSG1', 'MSG2'],
fragmentIds: ['frag2']
}
]Defaults to []
id string|number
A unique identifier for the fragment.
Defaults to undefined
type UmlSequenceFragmentType
Specifies the type of the fragment, such as ‘Alternative’, ‘Loop’, or ‘Optional’.
Determines how the fragment is interpreted and rendered in the diagram.
Defaults to UmlSequenceFragmentType.Optional