destructiveConnectionRule()
),
// If component does not have a corresponding element in the diagram, remove it
- and(deny(b(new Tag(MOD.ComponentToElement), Component)), deny(exists(Component)))
+ and(
+ deny(b(new Tag(MOD.ComponentToElement), Component)),
+ deny(b(new Tag(STR.IsConnectedTo), Component)),
+ deny(exists(Component)))
)
)
),
if_(b(mappedFromConnector, Component), // handle only mapped components
query(
unless(bf(MOD.ComponentToConnector, Component, Connector),
- and(deny(b(new Tag(MOD.ComponentToElement), Component)), deny(exists(Component)))
+ and(
+ deny(b(new Tag(MOD.ComponentToElement), Component)),
+ deny(b(new Tag(STR.IsConnectedTo), Component)),
+ deny(exists(Component)))
)
)
)