diff --git a/capellambse/model/crosslayer/capellacommon.py b/capellambse/model/crosslayer/capellacommon.py index 12f73b5f0..fac8fefdf 100644 --- a/capellambse/model/crosslayer/capellacommon.py +++ b/capellambse/model/crosslayer/capellacommon.py @@ -97,6 +97,9 @@ class StateTransition(c.GenericElement): triggers = c.AttrProxyAccessor( c.GenericElement, "triggers", aslist=c.MixedElementList ) + effects = c.AttrProxyAccessor( + c.GenericElement, "effect", aslist=c.MixedElementList + ) guard = c.AttrProxyAccessor(capellacore.Constraint, "guard") diff --git a/tests/data/melodymodel/5_0/Melody Model Test.aird b/tests/data/melodymodel/5_0/Melody Model Test.aird index 511c40f9a..b1c9b11f2 100644 --- a/tests/data/melodymodel/5_0/Melody Model Test.aird +++ b/tests/data/melodymodel/5_0/Melody Model Test.aird @@ -8,7 +8,7 @@ - + @@ -652,7 +652,7 @@ - + @@ -663,14 +663,14 @@ - + - + @@ -684,13 +684,13 @@ - + - + @@ -723,7 +723,7 @@ - + @@ -936,21 +936,21 @@ - + - + - + - + - + @@ -1068,18 +1068,18 @@ - + - + - + - - + + @@ -1232,7 +1232,7 @@ - + @@ -1302,6 +1302,9 @@ + KEEP_LOCATION + KEEP_SIZE + KEEP_RATIO @@ -1310,6 +1313,9 @@ + KEEP_LOCATION + KEEP_SIZE + KEEP_RATIO diff --git a/tests/data/melodymodel/5_0/Melody Model Test.capella b/tests/data/melodymodel/5_0/Melody Model Test.capella index cfbdb1f81..9787aaaf6 100644 --- a/tests/data/melodymodel/5_0/Melody Model Test.capella +++ b/tests/data/melodymodel/5_0/Melody Model Test.capella @@ -1008,7 +1008,8 @@ The predator is far away + target="#6c48b9c5-0d43-4a43-9e9d-9559cb52c83e" effect="#e3ccf45c-d714-40cd-9261-21f5b79f1a77 #0e0164c3-076e-42c1-8f82-7a43ab84385c" + triggers="#55b90f9a-c5af-47fc-9c1c-48090414d1f1">