Переглянути джерело

[YAKHMI-916] Fixed extract subdiagram refactoring for more than one composite level. Added tests.

tomqc86@googlemail.com 11 роки тому
батько
коміт
fe85066a55
12 змінених файлів з 850 додано та 389 видалено
  1. 43 4
      plugins/org.yakindu.sct.refactoring/src/org/yakindu/sct/refactoring/refactor/impl/ExtractSubdiagramRefactoring.java
  2. 25 3
      plugins/org.yakindu.sct.refactoring/src/org/yakindu/sct/refactoring/utils/RefactoringHelper.java
  3. 3 1
      test-plugins/org.yakindu.sct.refactoring.tests/src/org/yakindu/sct/refactoring/refactor/AllTests.java
  4. 14 0
      test-plugins/org.yakindu.sct.refactoring.tests/src/org/yakindu/sct/refactoring/refactor/RefactoringTest.java
  5. 0 12
      test-plugins/org.yakindu.sct.refactoring.tests/src/org/yakindu/sct/refactoring/refactor/StateBasedRefactoringTest.java
  6. 71 0
      test-plugins/org.yakindu.sct.refactoring.tests/src/org/yakindu/sct/refactoring/refactor/impl/ExtractSubdiagramRefactoringTest.java
  7. 0 170
      test-plugins/org.yakindu.sct.refactoring.tests/testmodels/refactoring/create_submachine/after.sct
  8. 201 0
      test-plugins/org.yakindu.sct.refactoring.tests/testmodels/refactoring/create_submachine/after_twoComposites.sct
  9. 342 0
      test-plugins/org.yakindu.sct.refactoring.tests/testmodels/refactoring/create_submachine/after_twoEntryPoints.sct
  10. 151 0
      test-plugins/org.yakindu.sct.refactoring.tests/testmodels/refactoring/create_submachine/before_twoComposites.sct
  11. 0 0
      test-plugins/org.yakindu.sct.refactoring.tests/testmodels/refactoring/create_submachine/before_twoEntryPoints.sct
  12. 0 199
      test-plugins/org.yakindu.sct.refactoring.tests/testmodels/refactoring/create_submachine/sub.sct

+ 43 - 4
plugins/org.yakindu.sct.refactoring/src/org/yakindu/sct/refactoring/refactor/impl/ExtractSubdiagramRefactoring.java

@@ -37,6 +37,7 @@ import org.yakindu.sct.model.sgraph.ReactionProperty;
 import org.yakindu.sct.model.sgraph.Region;
 import org.yakindu.sct.model.sgraph.SGraphFactory;
 import org.yakindu.sct.model.sgraph.State;
+import org.yakindu.sct.model.sgraph.Statechart;
 import org.yakindu.sct.model.sgraph.Transition;
 import org.yakindu.sct.model.sgraph.Vertex;
 import org.yakindu.sct.model.stext.stext.EntryPointSpec;
@@ -152,7 +153,7 @@ public class ExtractSubdiagramRefactoring extends AbstractRefactoring<View> {
 	}
 
 	protected void createSemanticEntryPoint(Transition transition, String name) {
-		Region entryPointTarget = transition.getTarget().getParentRegion();
+		Region entryPointTarget = getEntryPointContainer(transition);
 		Entry entryPoint = null;
 		Iterator<Vertex> iterator = entryPointTarget.getVertices().iterator();
 		while (iterator.hasNext()) {
@@ -173,15 +174,53 @@ public class ExtractSubdiagramRefactoring extends AbstractRefactoring<View> {
 		entryPointTransition.setTarget(transition.getTarget());
 	}
 
+	private Region getEntryPointContainer(Transition transition) {
+		// entry point container is the subdiagram's state's region which contains the transition target
+		EObject firstParentRegion = transition.getTarget().getParentRegion();
+		return getOutermostParentRegion(firstParentRegion);
+	}
+	
+	private Region getExitPointContainer(Transition transition) {
+		// exit point container is the subdiagram's state's region which contains the transition source
+		EObject firstParentRegion = transition.getSource().getParentRegion();
+		return getOutermostParentRegion(firstParentRegion);
+	}
+
+	private Region getOutermostParentRegion(EObject element) {
+		while (!(element.eContainer() instanceof Statechart)) {
+			EObject container = element.eContainer();
+			if (container instanceof State) {
+				State parentState = (State) container;
+				if (parentState.equals(subdiagram.getElement())) {
+					return (Region) element;
+				}
+				element = parentState.getParentRegion();
+			}
+			else {
+				element = element.eContainer();
+			}
+		}
+		return null;
+	}
+	
 	protected void createExitPoint(Edge edge, Diagram subdiagram) {
 		Transition transition = (Transition) edge.getElement();
+		// create semantic exit point
 		String name = getExitPointName(transition);
-		Region exitPointTarget = transition.getSource().getParentRegion();
+		Region exitPointContainer = getExitPointContainer(transition);
 		Exit exitPoint = SGraphFactory.eINSTANCE.createExit();
 		exitPoint.setName(name);
-		exitPointTarget.getVertices().add(exitPoint);
+		exitPointContainer.getVertices().add(exitPoint);
+		// create node for exit point
+		View exitPointContainerView = helper.getViewForSemanticElement(exitPointContainer, subdiagram);
+		View exitPointRegionCompartment = ViewUtil.getChildBySemanticHint(exitPointContainerView, SemanticHints.REGION_COMPARTMENT);
+		Node exitNode = ViewService.createNode(exitPointRegionCompartment, exitPoint, SemanticHints.EXIT, preferencesHint);
+		// re-wire existing transition to new exit point
 		Vertex oldTarget = transition.getTarget();
 		transition.setTarget(exitPoint);
+		ViewService.createEdge(edge.getSource(), exitNode, transition, SemanticHints.TRANSITION,
+				preferencesHint);
+		// create transition from selected state to former transition target
 		Transition exitPointTransition = SGraphFactory.eINSTANCE.createTransition();
 		exitPointTransition.setSource((State) subdiagram.getElement());
 		exitPointTransition.setTarget(oldTarget);
@@ -189,7 +228,7 @@ public class ExtractSubdiagramRefactoring extends AbstractRefactoring<View> {
 				preferencesHint);
 		EList<ReactionProperty> properties = exitPointTransition.getProperties();
 		ExitPointSpec exitPointSpec = StextFactory.eINSTANCE.createExitPointSpec();
-		// A transition can only have one entry point so alter the existing
+		// A transition can only have one exit point so alter the existing
 		for (ReactionProperty reactionProperty : properties) {
 			if (reactionProperty instanceof ExitPointSpec) {
 				exitPointSpec = (ExitPointSpec) reactionProperty;

+ 25 - 3
plugins/org.yakindu.sct.refactoring/src/org/yakindu/sct/refactoring/utils/RefactoringHelper.java

@@ -7,7 +7,11 @@ import java.util.List;
 import java.util.Set;
 
 import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.common.util.TreeIterator;
+import org.eclipse.emf.ecore.EObject;
 import org.eclipse.emf.ecore.util.EcoreUtil;
+import org.eclipse.gmf.runtime.notation.Diagram;
+import org.eclipse.gmf.runtime.notation.View;
 import org.yakindu.base.expressions.expressions.Expression;
 import org.yakindu.sct.model.sgraph.CompositeElement;
 import org.yakindu.sct.model.sgraph.Effect;
@@ -23,9 +27,7 @@ import org.yakindu.sct.model.stext.stext.ReactionEffect;
 import org.yakindu.sct.model.stext.stext.ReactionTrigger;
 
 /**
- * Utility class providing several methods useful for refactoring commands.
- * 
- * TODO should be split up if it gets too big
+ * Utility class providing several convenience methods used in refactoring commands.
  * 
  * @author thomas kutz - Initial contribution and API
  *
@@ -293,4 +295,24 @@ public class RefactoringHelper {
 		return true;
 	}
 	
+	/**
+	 * Returns for the given semantic element the notation view element in the given diagram
+	 * @param semanticElement
+	 * @param diagram
+	 * @return
+	 */
+	public View getViewForSemanticElement(EObject semanticElement, Diagram diagram) {
+		TreeIterator<EObject> allContents = diagram.eAllContents();
+		while (allContents.hasNext()) {
+			EObject next = allContents.next();
+			if (next instanceof View) {
+				View view = (View) next;
+				if (EcoreUtil.equals(view.getElement(), semanticElement)) {
+					return view;
+				}
+			}
+		}
+		throw new IllegalArgumentException("No view found for semantic element "+semanticElement);
+	}
+	
 }

+ 3 - 1
test-plugins/org.yakindu.sct.refactoring.tests/src/org/yakindu/sct/refactoring/refactor/AllTests.java

@@ -13,6 +13,7 @@ package org.yakindu.sct.refactoring.refactor;
 import org.junit.runner.RunWith;
 import org.junit.runners.Suite;
 import org.junit.runners.Suite.SuiteClasses;
+import org.yakindu.sct.refactoring.refactor.impl.ExtractSubdiagramRefactoringTest;
 import org.yakindu.sct.refactoring.refactor.impl.FoldIncomingActionsRefactoringTest;
 import org.yakindu.sct.refactoring.refactor.impl.FoldOutgoingActionsRefactoringTest;
 import org.yakindu.sct.refactoring.refactor.impl.GroupStatesIntoCompositeRefactoringTest;
@@ -30,7 +31,8 @@ import org.yakindu.sct.refactoring.refactor.impl.UnfoldExitActionsRefactoringTes
 		FoldOutgoingActionsRefactoringTest.class, RenameRefactoringTest.class,
 		UnfoldEntryActionsRefactoringTest.class,
 		UnfoldExitActionsRefactoringTest.class,
-		GroupStatesIntoCompositeRefactoringTest.class})
+		GroupStatesIntoCompositeRefactoringTest.class,
+		ExtractSubdiagramRefactoringTest.class})
 public class AllTests {
 
 }

+ 14 - 0
test-plugins/org.yakindu.sct.refactoring.tests/src/org/yakindu/sct/refactoring/refactor/RefactoringTest.java

@@ -10,8 +10,12 @@
  */
 package org.yakindu.sct.refactoring.refactor;
 
+import java.util.List;
+
+import org.eclipse.xtext.EcoreUtil2;
 import org.eclipse.xtext.parser.IParser;
 import org.junit.Assert;
+import org.yakindu.sct.model.sgraph.State;
 import org.yakindu.sct.model.sgraph.Statechart;
 import org.yakindu.sct.refactoring.refactor.util.SctEqualityHelper;
 import org.yakindu.sct.refactoring.test.models.RefactoringTestModels;
@@ -37,4 +41,14 @@ public class RefactoringTest {
 			Assert.fail("Equality check on statecharts failed!");
 		}
 	}
+	
+	protected State getStateByName(Statechart statechart, String name) {
+		List<State> allStates = EcoreUtil2.getAllContentsOfType(statechart, State.class);
+		for (State state : allStates) {
+			if (state.getName().equals(name)) {
+				return state;
+			}
+		}
+		return null;
+	}
 }

+ 0 - 12
test-plugins/org.yakindu.sct.refactoring.tests/src/org/yakindu/sct/refactoring/refactor/StateBasedRefactoringTest.java

@@ -10,9 +10,6 @@
  */
 package org.yakindu.sct.refactoring.refactor;
 
-import java.util.List;
-
-import org.eclipse.xtext.EcoreUtil2;
 import org.eclipse.xtext.junit4.InjectWith;
 import org.eclipse.xtext.junit4.XtextRunner;
 import org.junit.Assert;
@@ -67,13 +64,4 @@ public abstract class StateBasedRefactoringTest extends RefactoringTest {
 
 	protected abstract AbstractRefactoring<?> getRefactoring(State state);
 
-	protected State getStateByName(Statechart statechart, String name) {
-		List<State> allStates = EcoreUtil2.getAllContentsOfType(statechart, State.class);
-		for (State state : allStates) {
-			if (state.getName().equals(name)) {
-				return state;
-			}
-		}
-		return null;
-	}
 }

+ 71 - 0
test-plugins/org.yakindu.sct.refactoring.tests/src/org/yakindu/sct/refactoring/refactor/impl/ExtractSubdiagramRefactoringTest.java

@@ -0,0 +1,71 @@
+package org.yakindu.sct.refactoring.refactor.impl;
+
+import static org.yakindu.sct.refactoring.test.models.RefactoringTestModels.CREATE_SUBMACHINE;
+
+import java.util.Collections;
+
+import org.eclipse.emf.ecore.util.EcoreUtil;
+import org.eclipse.emf.transaction.impl.TransactionalEditingDomainImpl;
+import org.eclipse.gmf.runtime.notation.Diagram;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.xtext.junit4.InjectWith;
+import org.eclipse.xtext.junit4.XtextRunner;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.yakindu.sct.model.sgraph.Statechart;
+import org.yakindu.sct.model.sgraph.resource.AbstractSCTResource;
+import org.yakindu.sct.refactoring.refactor.RefactoringTest;
+import org.yakindu.sct.refactoring.utils.RefactoringHelper;
+import org.yakindu.sct.test.models.TestModelInjectorProvider;
+
+@RunWith(XtextRunner.class)
+@InjectWith(TestModelInjectorProvider.class)
+public class ExtractSubdiagramRefactoringTest extends RefactoringTest {
+
+	@Test
+	public void testTwoEntryPoints() {
+		testRefactoring(
+				CREATE_SUBMACHINE + "before_twoEntryPoints.sct", 
+				CREATE_SUBMACHINE + "after_twoEntryPoints.sct", 
+				"Composite");
+	}
+	
+	@Test
+	public void testTwoComposites() {
+		testRefactoring(
+				CREATE_SUBMACHINE + "before_twoComposites.sct", 
+				CREATE_SUBMACHINE + "after_twoComposites.sct", 
+				"Composite_Composite_A");
+	}
+
+	private void testRefactoring(String pathToInitialSct, String pathToExpectedSct, String contextElementName) {
+		Statechart initial = models
+				.loadStatechartFromResource(pathToInitialSct);
+
+		TransactionalEditingDomainImpl.FactoryImpl.INSTANCE.createEditingDomain(initial.eResource().getResourceSet());
+		
+		View contextView = getViewForState(initial, contextElementName);
+
+		ExtractSubdiagramRefactoring refactoring = new ExtractSubdiagramRefactoring();
+		refactoring.setContextObjects(Collections.singletonList(contextView));
+		
+		AbstractSCTResource initialRes = (AbstractSCTResource) initial.eResource();
+		initialRes.setSerializerEnabled(true);
+		refactoring.execute();
+		initialRes.setSerializerEnabled(false);
+		initialRes.linkSpecificationElements();
+
+		Statechart expected = models
+				.loadStatechartFromResource(pathToExpectedSct);
+		
+		compareStatecharts(initial, expected);
+	}
+
+	private View getViewForState(Statechart initial, String stateName) {
+		Diagram diagram = (Diagram) EcoreUtil.getObjectByType(initial.eResource().getContents(), NotationPackage.Literals.DIAGRAM);
+		RefactoringHelper helper = new RefactoringHelper();
+		return helper.getViewForSemanticElement(getStateByName(initial, stateName), diagram);
+	}
+
+}

+ 0 - 170
test-plugins/org.yakindu.sct.refactoring.tests/testmodels/refactoring/create_submachine/after.sct

@@ -1,170 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.2/notation" xmlns:sgraph="http://www.yakindu.org/sct/sgraph/2.0.0">
-  <sgraph:Statechart xmi:id="_NEjmkMdmEeGOoP2Ze98WBQ" specification="interface :&#xA;in event event1&#xA;in event event2&#xA;in event event3" name="after_grouping">
-    <regions xmi:id="_NEjmk8dmEeGOoP2Ze98WBQ" name="main region">
-      <vertices xsi:type="sgraph:Entry" xmi:id="_NEkNpsdmEeGOoP2Ze98WBQ">
-        <outgoingTransitions xmi:id="_NEmC08dmEeGOoP2Ze98WBQ" target="_NEk0t8dmEeGOoP2Ze98WBQ"/>
-      </vertices>
-      <vertices xsi:type="sgraph:State" xmi:id="_NEk0t8dmEeGOoP2Ze98WBQ" name="A" incomingTransitions="_NEmC08dmEeGOoP2Ze98WBQ">
-        <outgoingTransitions xmi:id="_q-EGYMmqEeGJr-muz4j25w" specification="" target="_jeUXUMmqEeGJr-muz4j25w"/>
-        <outgoingTransitions xmi:id="_9rKCMMmrEeGJr-muz4j25w" specification="event1 / raise sub.event1" target="_3n-XwMmrEeGJr-muz4j25w"/>
-      </vertices>
-      <vertices xsi:type="sgraph:State" xmi:id="_XzbkEMdmEeGOoP2Ze98WBQ" name="E" incomingTransitions="__NKAcMmrEeGJr-muz4j25w"/>
-      <vertices xsi:type="sgraph:State" xmi:id="_jeUXUMmqEeGJr-muz4j25w" name="A2" incomingTransitions="_q-EGYMmqEeGJr-muz4j25w">
-        <outgoingTransitions xmi:id="_-cqXoMmrEeGJr-muz4j25w" specification="event2 / raise sub.event2" target="_3n-XwMmrEeGJr-muz4j25w"/>
-      </vertices>
-      <vertices xsi:type="sgraph:State" xmi:id="_3n-XwMmrEeGJr-muz4j25w" name="SubmachineState" incomingTransitions="_9rKCMMmrEeGJr-muz4j25w _-cqXoMmrEeGJr-muz4j25w" substatechartId="sub">
-        <outgoingTransitions xmi:id="__NKAcMmrEeGJr-muz4j25w" specification="" target="_XzbkEMdmEeGOoP2Ze98WBQ"/>
-      </vertices>
-    </regions>
-  </sgraph:Statechart>
-  <notation:Diagram xmi:id="_NEjmkcdmEeGOoP2Ze98WBQ" type="org.yakindu.sct.ui.editor.editor.StatechartDiagramEditor" element="_NEjmkMdmEeGOoP2Ze98WBQ" measurementUnit="Pixel">
-    <children xmi:id="_NEjmlMdmEeGOoP2Ze98WBQ" type="Region" element="_NEjmk8dmEeGOoP2Ze98WBQ">
-      <children xsi:type="notation:DecorationNode" xmi:id="_NEkNoMdmEeGOoP2Ze98WBQ" type="RegionName">
-        <styles xsi:type="notation:ShapeStyle" xmi:id="_NEkNocdmEeGOoP2Ze98WBQ"/>
-        <layoutConstraint xsi:type="notation:Location" xmi:id="_NEkNosdmEeGOoP2Ze98WBQ"/>
-      </children>
-      <children xsi:type="notation:Shape" xmi:id="_NEkNo8dmEeGOoP2Ze98WBQ" type="RegionCompartment" fontName="Verdana" lineColor="4210752">
-        <children xmi:id="_NEkNp8dmEeGOoP2Ze98WBQ" type="Entry" element="_NEkNpsdmEeGOoP2Ze98WBQ">
-          <children xmi:id="_NEk0sMdmEeGOoP2Ze98WBQ" type="BorderItemLabelContainer">
-            <children xsi:type="notation:DecorationNode" xmi:id="_NEk0s8dmEeGOoP2Ze98WBQ" type="BorderItemLabel">
-              <styles xsi:type="notation:ShapeStyle" xmi:id="_NEk0tMdmEeGOoP2Ze98WBQ"/>
-              <layoutConstraint xsi:type="notation:Location" xmi:id="_NEk0tcdmEeGOoP2Ze98WBQ"/>
-            </children>
-            <styles xsi:type="notation:ShapeStyle" xmi:id="_NEk0scdmEeGOoP2Ze98WBQ" fontName="Verdana" lineColor="4210752"/>
-            <layoutConstraint xsi:type="notation:Bounds" xmi:id="_NEk0ssdmEeGOoP2Ze98WBQ"/>
-          </children>
-          <styles xsi:type="notation:ShapeStyle" xmi:id="_NEkNqMdmEeGOoP2Ze98WBQ" fontName="Verdana" lineColor="4210752"/>
-          <layoutConstraint xsi:type="notation:Bounds" xmi:id="_NEk0tsdmEeGOoP2Ze98WBQ" x="50" y="23"/>
-        </children>
-        <children xmi:id="_NElbwcdmEeGOoP2Ze98WBQ" type="State" element="_NEk0t8dmEeGOoP2Ze98WBQ">
-          <children xsi:type="notation:DecorationNode" xmi:id="_NElbxcdmEeGOoP2Ze98WBQ" type="StateName">
-            <styles xsi:type="notation:ShapeStyle" xmi:id="_NElbxsdmEeGOoP2Ze98WBQ"/>
-            <layoutConstraint xsi:type="notation:Location" xmi:id="_NElbx8dmEeGOoP2Ze98WBQ"/>
-          </children>
-          <children xsi:type="notation:Compartment" xmi:id="_NElbyMdmEeGOoP2Ze98WBQ" type="StateTextCompartment">
-            <children xsi:type="notation:Shape" xmi:id="_NElbycdmEeGOoP2Ze98WBQ" type="StateTextCompartmentExpression" fontName="Verdana" lineColor="4210752">
-              <layoutConstraint xsi:type="notation:Bounds" xmi:id="_NElbysdmEeGOoP2Ze98WBQ"/>
-            </children>
-          </children>
-          <children xsi:type="notation:Compartment" xmi:id="_NEmC0MdmEeGOoP2Ze98WBQ" type="StateFigureCompartment"/>
-          <styles xsi:type="notation:ShapeStyle" xmi:id="_NElbwsdmEeGOoP2Ze98WBQ" fontName="Verdana" fillColor="15981773" lineColor="12632256"/>
-          <styles xsi:type="notation:FontStyle" xmi:id="_NElbw8dmEeGOoP2Ze98WBQ"/>
-          <styles xsi:type="notation:BooleanValueStyle" xmi:id="_NEmC0cdmEeGOoP2Ze98WBQ"/>
-          <layoutConstraint xsi:type="notation:Bounds" xmi:id="_NEmC0sdmEeGOoP2Ze98WBQ" x="40" y="91"/>
-        </children>
-        <children xmi:id="_XzhqsMdmEeGOoP2Ze98WBQ" type="State" element="_XzbkEMdmEeGOoP2Ze98WBQ">
-          <children xsi:type="notation:DecorationNode" xmi:id="_XziRw8dmEeGOoP2Ze98WBQ" type="StateName">
-            <styles xsi:type="notation:ShapeStyle" xmi:id="_XziRxMdmEeGOoP2Ze98WBQ"/>
-            <layoutConstraint xsi:type="notation:Location" xmi:id="_XziRxcdmEeGOoP2Ze98WBQ"/>
-          </children>
-          <children xsi:type="notation:Compartment" xmi:id="_XziRxsdmEeGOoP2Ze98WBQ" type="StateTextCompartment">
-            <children xsi:type="notation:Shape" xmi:id="_Xzi40MdmEeGOoP2Ze98WBQ" type="StateTextCompartmentExpression" fontName="Verdana" lineColor="4210752">
-              <layoutConstraint xsi:type="notation:Bounds" xmi:id="_Xzi40cdmEeGOoP2Ze98WBQ"/>
-            </children>
-          </children>
-          <children xsi:type="notation:Compartment" xmi:id="_Xzi40sdmEeGOoP2Ze98WBQ" type="StateFigureCompartment"/>
-          <styles xsi:type="notation:ShapeStyle" xmi:id="_XziRwMdmEeGOoP2Ze98WBQ" fontName="Verdana" fillColor="15981773" lineColor="12632256"/>
-          <styles xsi:type="notation:FontStyle" xmi:id="_XziRwcdmEeGOoP2Ze98WBQ"/>
-          <styles xsi:type="notation:BooleanValueStyle" xmi:id="_Xzi408dmEeGOoP2Ze98WBQ"/>
-          <layoutConstraint xsi:type="notation:Bounds" xmi:id="_XziRwsdmEeGOoP2Ze98WBQ" x="561" y="167"/>
-        </children>
-        <children xmi:id="_jehLoMmqEeGJr-muz4j25w" type="State" element="_jeUXUMmqEeGJr-muz4j25w">
-          <children xsi:type="notation:DecorationNode" xmi:id="_jehysMmqEeGJr-muz4j25w" type="StateName">
-            <styles xsi:type="notation:ShapeStyle" xmi:id="_jehyscmqEeGJr-muz4j25w"/>
-            <layoutConstraint xsi:type="notation:Location" xmi:id="_jehyssmqEeGJr-muz4j25w"/>
-          </children>
-          <children xsi:type="notation:Compartment" xmi:id="_jeiZwMmqEeGJr-muz4j25w" type="StateTextCompartment">
-            <children xsi:type="notation:Shape" xmi:id="_jeiZwcmqEeGJr-muz4j25w" type="StateTextCompartmentExpression" fontName="Verdana" lineColor="4210752">
-              <layoutConstraint xsi:type="notation:Bounds" xmi:id="_jeiZwsmqEeGJr-muz4j25w"/>
-            </children>
-          </children>
-          <children xsi:type="notation:Compartment" xmi:id="_jeiZw8mqEeGJr-muz4j25w" type="StateFigureCompartment"/>
-          <styles xsi:type="notation:ShapeStyle" xmi:id="_jehLocmqEeGJr-muz4j25w" fontName="Verdana" fillColor="15981773" lineColor="12632256"/>
-          <styles xsi:type="notation:FontStyle" xmi:id="_jehLosmqEeGJr-muz4j25w"/>
-          <styles xsi:type="notation:BooleanValueStyle" xmi:id="_jejA0MmqEeGJr-muz4j25w"/>
-          <layoutConstraint xsi:type="notation:Bounds" xmi:id="_jehLo8mqEeGJr-muz4j25w" x="41" y="227"/>
-        </children>
-        <children xmi:id="_39acQMmrEeGJr-muz4j25w" type="SubmachineState" element="_3n-XwMmrEeGJr-muz4j25w">
-          <children xsi:type="notation:DecorationNode" xmi:id="_39bDUMmrEeGJr-muz4j25w" type="StateName">
-            <styles xsi:type="notation:ShapeStyle" xmi:id="_39bDUcmrEeGJr-muz4j25w"/>
-            <layoutConstraint xsi:type="notation:Location" xmi:id="_39bDUsmrEeGJr-muz4j25w"/>
-          </children>
-          <children xsi:type="notation:Compartment" xmi:id="_39bDU8mrEeGJr-muz4j25w" type="StateTextCompartment">
-            <children xsi:type="notation:Shape" xmi:id="_39bDVMmrEeGJr-muz4j25w" type="StateTextCompartmentExpression" fontName="Verdana" lineColor="4210752">
-              <layoutConstraint xsi:type="notation:Bounds" xmi:id="_39bDVcmrEeGJr-muz4j25w"/>
-            </children>
-          </children>
-          <children xsi:type="notation:Compartment" xmi:id="_39bDVsmrEeGJr-muz4j25w" type="StateFigureCompartment"/>
-          <styles xsi:type="notation:ShapeStyle" xmi:id="_39acQcmrEeGJr-muz4j25w" fontName="Verdana" fillColor="15981773" lineColor="12632256"/>
-          <styles xsi:type="notation:FontStyle" xmi:id="_39acQsmrEeGJr-muz4j25w"/>
-          <styles xsi:type="notation:BooleanValueStyle" xmi:id="_39bDV8mrEeGJr-muz4j25w"/>
-          <layoutConstraint xsi:type="notation:Bounds" xmi:id="_39acQ8mrEeGJr-muz4j25w" x="201" y="159" width="206" height="79"/>
-        </children>
-        <layoutConstraint xsi:type="notation:Bounds" xmi:id="_NEkNpMdmEeGOoP2Ze98WBQ"/>
-      </children>
-      <styles xsi:type="notation:ShapeStyle" xmi:id="_NEjmlcdmEeGOoP2Ze98WBQ" fontName="Verdana" fillColor="15790320" lineColor="12632256"/>
-      <layoutConstraint xsi:type="notation:Bounds" xmi:id="_NEkNpcdmEeGOoP2Ze98WBQ" x="220" y="10" width="701" height="400"/>
-    </children>
-    <children xsi:type="notation:Shape" xmi:id="_NEmp48dmEeGOoP2Ze98WBQ" type="StatechartText" fontName="Verdana" lineColor="4210752">
-      <children xsi:type="notation:DecorationNode" xmi:id="_NEmp5cdmEeGOoP2Ze98WBQ" type="StatechartName">
-        <styles xsi:type="notation:ShapeStyle" xmi:id="_NEmp5sdmEeGOoP2Ze98WBQ"/>
-        <layoutConstraint xsi:type="notation:Location" xmi:id="_NEmp58dmEeGOoP2Ze98WBQ"/>
-      </children>
-      <children xsi:type="notation:Shape" xmi:id="_NEmp6MdmEeGOoP2Ze98WBQ" type="StatechartTextExpression" fontName="Verdana" lineColor="4210752">
-        <layoutConstraint xsi:type="notation:Bounds" xmi:id="_NEmp6cdmEeGOoP2Ze98WBQ"/>
-      </children>
-      <layoutConstraint xsi:type="notation:Bounds" xmi:id="_NEmp6sdmEeGOoP2Ze98WBQ" x="10" y="10" width="200" height="400"/>
-    </children>
-    <styles xsi:type="notation:DiagramStyle" xmi:id="_NEjmksdmEeGOoP2Ze98WBQ"/>
-    <edges xmi:id="_NEmC1MdmEeGOoP2Ze98WBQ" type="Transition" element="_NEmC08dmEeGOoP2Ze98WBQ" source="_NEkNp8dmEeGOoP2Ze98WBQ" target="_NElbwcdmEeGOoP2Ze98WBQ">
-      <children xsi:type="notation:DecorationNode" xmi:id="_NEmp4MdmEeGOoP2Ze98WBQ" type="TransitionExpression">
-        <styles xsi:type="notation:ShapeStyle" xmi:id="_NEmp4cdmEeGOoP2Ze98WBQ"/>
-        <layoutConstraint xsi:type="notation:Location" xmi:id="_NEmp4sdmEeGOoP2Ze98WBQ" y="10"/>
-      </children>
-      <styles xsi:type="notation:ConnectorStyle" xmi:id="_NEmC1cdmEeGOoP2Ze98WBQ" lineColor="4210752"/>
-      <styles xsi:type="notation:FontStyle" xmi:id="_NEmC18dmEeGOoP2Ze98WBQ" fontName="Verdana"/>
-      <bendpoints xsi:type="notation:RelativeBendpoints" xmi:id="_NEmC1sdmEeGOoP2Ze98WBQ" points="[0, 0, 0, 0]$[0, 0, 0, 0]"/>
-    </edges>
-    <edges xmi:id="_q-MpQMmqEeGJr-muz4j25w" type="Transition" element="_q-EGYMmqEeGJr-muz4j25w" source="_NElbwcdmEeGOoP2Ze98WBQ" target="_jehLoMmqEeGJr-muz4j25w">
-      <children xsi:type="notation:DecorationNode" xmi:id="_q-NQUcmqEeGJr-muz4j25w" type="TransitionExpression">
-        <styles xsi:type="notation:ShapeStyle" xmi:id="_q-NQUsmqEeGJr-muz4j25w"/>
-        <layoutConstraint xsi:type="notation:Location" xmi:id="_q-NQU8mqEeGJr-muz4j25w" y="10"/>
-      </children>
-      <styles xsi:type="notation:ConnectorStyle" xmi:id="_q-MpQcmqEeGJr-muz4j25w" lineColor="4210752"/>
-      <styles xsi:type="notation:FontStyle" xmi:id="_q-NQUMmqEeGJr-muz4j25w" fontName="Verdana"/>
-      <bendpoints xsi:type="notation:RelativeBendpoints" xmi:id="_q-MpQsmqEeGJr-muz4j25w" points="[-3, 24, 2, -93]$[-3, 112, 2, -5]"/>
-      <targetAnchor xsi:type="notation:IdentityAnchor" xmi:id="_q-XBUMmqEeGJr-muz4j25w" id="(0.325,0.11320754716981132)"/>
-    </edges>
-    <edges xmi:id="_9rNFgMmrEeGJr-muz4j25w" type="Transition" element="_9rKCMMmrEeGJr-muz4j25w" source="_NElbwcdmEeGOoP2Ze98WBQ" target="_39acQMmrEeGJr-muz4j25w">
-      <children xsi:type="notation:DecorationNode" xmi:id="_9rNskcmrEeGJr-muz4j25w" type="TransitionExpression">
-        <styles xsi:type="notation:ShapeStyle" xmi:id="_9rNsksmrEeGJr-muz4j25w"/>
-        <layoutConstraint xsi:type="notation:Location" xmi:id="_9rNsk8mrEeGJr-muz4j25w" x="7" y="-25"/>
-      </children>
-      <styles xsi:type="notation:ConnectorStyle" xmi:id="_9rNFgcmrEeGJr-muz4j25w" lineColor="4210752"/>
-      <styles xsi:type="notation:FontStyle" xmi:id="_9rNskMmrEeGJr-muz4j25w" fontName="Verdana"/>
-      <bendpoints xsi:type="notation:RelativeBendpoints" xmi:id="_9rNFgsmrEeGJr-muz4j25w" points="[18, 7, -138, -58]$[157, 44, 1, -21]"/>
-      <targetAnchor xsi:type="notation:IdentityAnchor" xmi:id="_9rTzMMmrEeGJr-muz4j25w" id="(0.06310679611650485,0.2911392405063291)"/>
-    </edges>
-    <edges xmi:id="_-cuCAMmrEeGJr-muz4j25w" type="Transition" element="_-cqXoMmrEeGJr-muz4j25w" source="_jehLoMmqEeGJr-muz4j25w" target="_39acQMmrEeGJr-muz4j25w">
-      <children xsi:type="notation:DecorationNode" xmi:id="_-cuCBMmrEeGJr-muz4j25w" type="TransitionExpression">
-        <styles xsi:type="notation:ShapeStyle" xmi:id="_-cuCBcmrEeGJr-muz4j25w"/>
-        <layoutConstraint xsi:type="notation:Location" xmi:id="_-cuCBsmrEeGJr-muz4j25w" x="2" y="22"/>
-      </children>
-      <styles xsi:type="notation:ConnectorStyle" xmi:id="_-cuCAcmrEeGJr-muz4j25w" lineColor="4210752"/>
-      <styles xsi:type="notation:FontStyle" xmi:id="_-cuCA8mrEeGJr-muz4j25w" fontName="Verdana"/>
-      <bendpoints xsi:type="notation:RelativeBendpoints" xmi:id="_-cuCAsmrEeGJr-muz4j25w" points="[18, -5, -154, 43]$[173, -18, 1, 30]"/>
-      <targetAnchor xsi:type="notation:IdentityAnchor" xmi:id="_-c0IoMmrEeGJr-muz4j25w" id="(0.14563106796116504,0.5949367088607594)"/>
-    </edges>
-    <edges xmi:id="__NNDwMmrEeGJr-muz4j25w" type="Transition" element="__NKAcMmrEeGJr-muz4j25w" source="_39acQMmrEeGJr-muz4j25w" target="_XzhqsMdmEeGOoP2Ze98WBQ">
-      <children xsi:type="notation:DecorationNode" xmi:id="__NNq0MmrEeGJr-muz4j25w" type="TransitionExpression">
-        <styles xsi:type="notation:ShapeStyle" xmi:id="__NNq0cmrEeGJr-muz4j25w"/>
-        <layoutConstraint xsi:type="notation:Location" xmi:id="__NNq0smrEeGJr-muz4j25w" y="10"/>
-      </children>
-      <styles xsi:type="notation:ConnectorStyle" xmi:id="__NNDwcmrEeGJr-muz4j25w" lineColor="4210752"/>
-      <styles xsi:type="notation:FontStyle" xmi:id="__NNDw8mrEeGJr-muz4j25w" fontName="Verdana"/>
-      <bendpoints xsi:type="notation:RelativeBendpoints" xmi:id="__NNDwsmrEeGJr-muz4j25w" points="[24, -3, -176, -8]$[196, -19, -4, -24]"/>
-      <sourceAnchor xsi:type="notation:IdentityAnchor" xmi:id="__NQuIMmrEeGJr-muz4j25w" id="(0.883495145631068,0.3670886075949367)"/>
-    </edges>
-  </notation:Diagram>
-</xmi:XMI>

+ 201 - 0
test-plugins/org.yakindu.sct.refactoring.tests/testmodels/refactoring/create_submachine/after_twoComposites.sct

@@ -0,0 +1,201 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.2/notation" xmlns:sgraph="http://www.yakindu.org/sct/sgraph/2.0.0">
+  <sgraph:Statechart xmi:id="_1_y9UOr8EeOY6Jei9gSPQw" specification="" name="test23">
+    <regions xmi:id="_1_zkYur8EeOY6Jei9gSPQw" name="main region">
+      <vertices xsi:type="sgraph:Entry" xmi:id="_1_0yger8EeOY6Jei9gSPQw">
+        <outgoingTransitions xmi:id="_1_2ns-r8EeOY6Jei9gSPQw" specification=" # > entry_A0" target="_4os5QOr8EeOY6Jei9gSPQw"/>
+      </vertices>
+      <vertices xsi:type="sgraph:FinalState" xmi:id="_3ErhwOr8EeOY6Jei9gSPQw" incomingTransitions="_cubp9-sAEeOsdKncm9SrMw"/>
+      <vertices xsi:type="sgraph:State" xmi:id="_4os5QOr8EeOY6Jei9gSPQw" specification="" name="Composite_Composite_A" incomingTransitions="_1_2ns-r8EeOY6Jei9gSPQw">
+        <outgoingTransitions xmi:id="_cubp9-sAEeOsdKncm9SrMw" specification=" # exit_A0 >" target="_3ErhwOr8EeOY6Jei9gSPQw"/>
+        <regions xmi:id="_4otgUOr8EeOY6Jei9gSPQw" name="inner region">
+          <vertices xsi:type="sgraph:State" xmi:id="_34DfcOr8EeOY6Jei9gSPQw" specification="" name="Composite_A">
+            <regions xmi:id="_34EGgOr8EeOY6Jei9gSPQw" name="inner region">
+              <vertices xsi:type="sgraph:State" xmi:id="_1_1ZlOr8EeOY6Jei9gSPQw" specification="" name="A" incomingTransitions="_cuX_kOsAEeOsdKncm9SrMw">
+                <outgoingTransitions xmi:id="_3a30MOr8EeOY6Jei9gSPQw" specification="" target="_cuab0OsAEeOsdKncm9SrMw"/>
+              </vertices>
+            </regions>
+          </vertices>
+          <vertices xsi:type="sgraph:Entry" xmi:id="_cuXYgOsAEeOsdKncm9SrMw" name="entry_A0">
+            <outgoingTransitions xmi:id="_cuX_kOsAEeOsdKncm9SrMw" specification="" target="_1_1ZlOr8EeOY6Jei9gSPQw"/>
+          </vertices>
+          <vertices xsi:type="sgraph:Exit" xmi:id="_cuab0OsAEeOsdKncm9SrMw" name="exit_A0" incomingTransitions="_3a30MOr8EeOY6Jei9gSPQw"/>
+        </regions>
+      </vertices>
+    </regions>
+  </sgraph:Statechart>
+  <notation:Diagram xmi:id="_1_zkYOr8EeOY6Jei9gSPQw" type="org.yakindu.sct.ui.editor.editor.StatechartDiagramEditor" element="_1_y9UOr8EeOY6Jei9gSPQw" measurementUnit="Pixel">
+    <children xmi:id="_1_zkY-r8EeOY6Jei9gSPQw" type="Region" element="_1_zkYur8EeOY6Jei9gSPQw">
+      <children xsi:type="notation:DecorationNode" xmi:id="_1_0LcOr8EeOY6Jei9gSPQw" type="RegionName">
+        <styles xsi:type="notation:ShapeStyle" xmi:id="_1_0Lcer8EeOY6Jei9gSPQw"/>
+        <layoutConstraint xsi:type="notation:Location" xmi:id="_1_0Lcur8EeOY6Jei9gSPQw"/>
+      </children>
+      <children xsi:type="notation:Shape" xmi:id="_1_0Lc-r8EeOY6Jei9gSPQw" type="RegionCompartment" fontName="Verdana" lineColor="4210752">
+        <children xmi:id="_1_0ygur8EeOY6Jei9gSPQw" type="Entry" element="_1_0yger8EeOY6Jei9gSPQw">
+          <children xmi:id="_1_0yher8EeOY6Jei9gSPQw" type="BorderItemLabelContainer">
+            <children xsi:type="notation:DecorationNode" xmi:id="_1_1ZkOr8EeOY6Jei9gSPQw" type="BorderItemLabel">
+              <styles xsi:type="notation:ShapeStyle" xmi:id="_1_1Zker8EeOY6Jei9gSPQw"/>
+              <layoutConstraint xsi:type="notation:Location" xmi:id="_1_1Zkur8EeOY6Jei9gSPQw"/>
+            </children>
+            <styles xsi:type="notation:ShapeStyle" xmi:id="_1_0yhur8EeOY6Jei9gSPQw" fontName="Verdana" lineColor="4210752"/>
+            <layoutConstraint xsi:type="notation:Bounds" xmi:id="_1_0yh-r8EeOY6Jei9gSPQw"/>
+          </children>
+          <styles xsi:type="notation:ShapeStyle" xmi:id="_1_0yg-r8EeOY6Jei9gSPQw" fontName="Verdana" lineColor="4210752"/>
+          <layoutConstraint xsi:type="notation:Bounds" xmi:id="_1_1Zk-r8EeOY6Jei9gSPQw" x="56" y="29"/>
+        </children>
+        <children xsi:type="notation:Shape" xmi:id="_3EsI0Or8EeOY6Jei9gSPQw" type="FinalState" element="_3ErhwOr8EeOY6Jei9gSPQw" fontName="Verdana" lineColor="4210752">
+          <layoutConstraint xsi:type="notation:Bounds" xmi:id="_3EsI0er8EeOY6Jei9gSPQw" x="292" y="137"/>
+        </children>
+        <children xmi:id="_4ouHYOr8EeOY6Jei9gSPQw" type="State" element="_4os5QOr8EeOY6Jei9gSPQw">
+          <children xsi:type="notation:DecorationNode" xmi:id="_4ouucOr8EeOY6Jei9gSPQw" type="StateName">
+            <styles xsi:type="notation:ShapeStyle" xmi:id="_4ouucer8EeOY6Jei9gSPQw"/>
+            <layoutConstraint xsi:type="notation:Location" xmi:id="_4ouucur8EeOY6Jei9gSPQw"/>
+          </children>
+          <children xsi:type="notation:Compartment" xmi:id="_4ouuc-r8EeOY6Jei9gSPQw" type="StateTextCompartment">
+            <children xsi:type="notation:Shape" xmi:id="_4ouudOr8EeOY6Jei9gSPQw" type="StateTextCompartmentExpression" fontName="Verdana" lineColor="4210752">
+              <layoutConstraint xsi:type="notation:Bounds" xmi:id="_4ouuder8EeOY6Jei9gSPQw"/>
+            </children>
+          </children>
+          <children xsi:type="notation:Compartment" xmi:id="_4ouudur8EeOY6Jei9gSPQw" type="StateFigureCompartment"/>
+          <styles xsi:type="notation:ShapeStyle" xmi:id="_4ouHYer8EeOY6Jei9gSPQw" fontName="Verdana" fillColor="15981773" lineColor="12632256"/>
+          <styles xsi:type="notation:FontStyle" xmi:id="_4ouHYur8EeOY6Jei9gSPQw"/>
+          <styles xsi:type="notation:BooleanValueStyle" xmi:id="_4ovVgOr8EeOY6Jei9gSPQw" name="isHorizontal" booleanValue="true"/>
+          <styles xsi:type="notation:BooleanValueStyle" xmi:id="_cuWKYOsAEeOsdKncm9SrMw" name="isInline"/>
+          <layoutConstraint xsi:type="notation:Bounds" xmi:id="_4ovVger8EeOY6Jei9gSPQw" x="-5" y="121"/>
+        </children>
+        <layoutConstraint xsi:type="notation:Bounds" xmi:id="_1_0LdOr8EeOY6Jei9gSPQw"/>
+      </children>
+      <styles xsi:type="notation:ShapeStyle" xmi:id="_1_zkZOr8EeOY6Jei9gSPQw" fontName="Verdana" fillColor="15790320" lineColor="12632256"/>
+      <layoutConstraint xsi:type="notation:Bounds" xmi:id="_1_0ygOr8EeOY6Jei9gSPQw" x="220" y="10" width="561" height="400"/>
+    </children>
+    <children xsi:type="notation:Shape" xmi:id="_1_3Ox-r8EeOY6Jei9gSPQw" type="StatechartText" fontName="Verdana" lineColor="4210752">
+      <children xsi:type="notation:DecorationNode" xmi:id="_1_310Or8EeOY6Jei9gSPQw" type="StatechartName">
+        <styles xsi:type="notation:ShapeStyle" xmi:id="_1_310er8EeOY6Jei9gSPQw"/>
+        <layoutConstraint xsi:type="notation:Location" xmi:id="_1_310ur8EeOY6Jei9gSPQw"/>
+      </children>
+      <children xsi:type="notation:Shape" xmi:id="_1_310-r8EeOY6Jei9gSPQw" type="StatechartTextExpression" fontName="Verdana" lineColor="4210752">
+        <layoutConstraint xsi:type="notation:Bounds" xmi:id="_1_311Or8EeOY6Jei9gSPQw"/>
+      </children>
+      <layoutConstraint xsi:type="notation:Bounds" xmi:id="_1_311er8EeOY6Jei9gSPQw" x="10" y="10" width="200" height="400"/>
+    </children>
+    <styles xsi:type="notation:DiagramStyle" xmi:id="_1_zkYer8EeOY6Jei9gSPQw"/>
+    <edges xmi:id="_1_3OwOr8EeOY6Jei9gSPQw" type="Transition" element="_1_2ns-r8EeOY6Jei9gSPQw" source="_1_0ygur8EeOY6Jei9gSPQw" target="_4ouHYOr8EeOY6Jei9gSPQw">
+      <children xsi:type="notation:DecorationNode" xmi:id="_1_3OxOr8EeOY6Jei9gSPQw" type="TransitionExpression">
+        <styles xsi:type="notation:ShapeStyle" xmi:id="_1_3Oxer8EeOY6Jei9gSPQw"/>
+        <layoutConstraint xsi:type="notation:Location" xmi:id="_1_3Oxur8EeOY6Jei9gSPQw" x="1" y="-40"/>
+      </children>
+      <styles xsi:type="notation:ConnectorStyle" xmi:id="_1_3Ower8EeOY6Jei9gSPQw" lineColor="4210752"/>
+      <styles xsi:type="notation:FontStyle" xmi:id="_1_3Ow-r8EeOY6Jei9gSPQw" fontName="Verdana"/>
+      <bendpoints xsi:type="notation:RelativeBendpoints" xmi:id="_1_3Owur8EeOY6Jei9gSPQw" points="[0, 0, 0, 0]$[0, 0, 0, 0]"/>
+    </edges>
+    <edges xmi:id="_cucRAOsAEeOsdKncm9SrMw" type="Transition" element="_cubp9-sAEeOsdKncm9SrMw" source="_4ouHYOr8EeOY6Jei9gSPQw" target="_3EsI0Or8EeOY6Jei9gSPQw">
+      <children xsi:type="notation:DecorationNode" xmi:id="_cucRBOsAEeOsdKncm9SrMw" type="TransitionExpression">
+        <styles xsi:type="notation:ShapeStyle" xmi:id="_cucRBesAEeOsdKncm9SrMw"/>
+        <layoutConstraint xsi:type="notation:Location" xmi:id="_cucRBusAEeOsdKncm9SrMw" y="10"/>
+      </children>
+      <styles xsi:type="notation:ConnectorStyle" xmi:id="_cucRAesAEeOsdKncm9SrMw" lineColor="4210752"/>
+      <styles xsi:type="notation:FontStyle" xmi:id="_cucRA-sAEeOsdKncm9SrMw" fontName="Verdana"/>
+      <bendpoints xsi:type="notation:RelativeBendpoints" xmi:id="_cucRAusAEeOsdKncm9SrMw" points="[0, 0, 0, 0]$[0, 0, 0, 0]"/>
+    </edges>
+  </notation:Diagram>
+  <notation:Diagram xmi:id="_cuWKYesAEeOsdKncm9SrMw" type="org.yakindu.sct.ui.editor.editor.StatechartDiagramEditor" element="_4os5QOr8EeOY6Jei9gSPQw" measurementUnit="Pixel">
+    <children xmi:id="_4ovVgur8EeOY6Jei9gSPQw" type="Region" element="_4otgUOr8EeOY6Jei9gSPQw">
+      <children xsi:type="notation:DecorationNode" xmi:id="_4ov8kOr8EeOY6Jei9gSPQw" type="RegionName">
+        <styles xsi:type="notation:ShapeStyle" xmi:id="_4ov8ker8EeOY6Jei9gSPQw"/>
+        <layoutConstraint xsi:type="notation:Location" xmi:id="_4ov8kur8EeOY6Jei9gSPQw"/>
+      </children>
+      <children xsi:type="notation:Shape" xmi:id="_4pEssOr8EeOY6Jei9gSPQw" type="RegionCompartment" fontName="Verdana" lineColor="4210752">
+        <children xmi:id="_34EtkOr8EeOY6Jei9gSPQw" type="State" element="_34DfcOr8EeOY6Jei9gSPQw">
+          <children xsi:type="notation:DecorationNode" xmi:id="_34FUoOr8EeOY6Jei9gSPQw" type="StateName">
+            <styles xsi:type="notation:ShapeStyle" xmi:id="_34FUoer8EeOY6Jei9gSPQw"/>
+            <layoutConstraint xsi:type="notation:Location" xmi:id="_34FUour8EeOY6Jei9gSPQw"/>
+          </children>
+          <children xsi:type="notation:Compartment" xmi:id="_34FUo-r8EeOY6Jei9gSPQw" type="StateTextCompartment">
+            <children xsi:type="notation:Shape" xmi:id="_34FUpOr8EeOY6Jei9gSPQw" type="StateTextCompartmentExpression" fontName="Verdana" lineColor="4210752">
+              <layoutConstraint xsi:type="notation:Bounds" xmi:id="_34FUper8EeOY6Jei9gSPQw"/>
+            </children>
+          </children>
+          <children xsi:type="notation:Compartment" xmi:id="_34F7sOr8EeOY6Jei9gSPQw" type="StateFigureCompartment">
+            <children xmi:id="_34F7s-r8EeOY6Jei9gSPQw" type="Region" element="_34EGgOr8EeOY6Jei9gSPQw">
+              <children xsi:type="notation:DecorationNode" xmi:id="_34GiwOr8EeOY6Jei9gSPQw" type="RegionName">
+                <styles xsi:type="notation:ShapeStyle" xmi:id="_34Giwer8EeOY6Jei9gSPQw"/>
+                <layoutConstraint xsi:type="notation:Location" xmi:id="_34Giwur8EeOY6Jei9gSPQw"/>
+              </children>
+              <children xsi:type="notation:Shape" xmi:id="_34Giw-r8EeOY6Jei9gSPQw" type="RegionCompartment" fontName="Verdana" lineColor="4210752">
+                <children xmi:id="_1_2AoOr8EeOY6Jei9gSPQw" type="State" element="_1_1ZlOr8EeOY6Jei9gSPQw">
+                  <children xsi:type="notation:DecorationNode" xmi:id="_1_2ApOr8EeOY6Jei9gSPQw" type="StateName">
+                    <styles xsi:type="notation:ShapeStyle" xmi:id="_1_2Aper8EeOY6Jei9gSPQw"/>
+                    <layoutConstraint xsi:type="notation:Location" xmi:id="_1_2Apur8EeOY6Jei9gSPQw"/>
+                  </children>
+                  <children xsi:type="notation:Compartment" xmi:id="_1_2Ap-r8EeOY6Jei9gSPQw" type="StateTextCompartment">
+                    <children xsi:type="notation:Shape" xmi:id="_1_2AqOr8EeOY6Jei9gSPQw" type="StateTextCompartmentExpression" fontName="Verdana" lineColor="4210752">
+                      <layoutConstraint xsi:type="notation:Bounds" xmi:id="_1_2Aqer8EeOY6Jei9gSPQw"/>
+                    </children>
+                  </children>
+                  <children xsi:type="notation:Compartment" xmi:id="_1_2nsOr8EeOY6Jei9gSPQw" type="StateFigureCompartment"/>
+                  <styles xsi:type="notation:ShapeStyle" xmi:id="_1_2Aoer8EeOY6Jei9gSPQw" fontName="Verdana" fillColor="15981773" lineColor="12632256"/>
+                  <styles xsi:type="notation:FontStyle" xmi:id="_1_2Aour8EeOY6Jei9gSPQw"/>
+                  <styles xsi:type="notation:BooleanValueStyle" xmi:id="_1_2nser8EeOY6Jei9gSPQw" name="isHorizontal" booleanValue="true"/>
+                  <layoutConstraint xsi:type="notation:Bounds" xmi:id="_34HJ0Or8EeOY6Jei9gSPQw" x="48" y="21"/>
+                </children>
+                <layoutConstraint xsi:type="notation:Bounds" xmi:id="_34GixOr8EeOY6Jei9gSPQw"/>
+              </children>
+              <styles xsi:type="notation:ShapeStyle" xmi:id="_34F7tOr8EeOY6Jei9gSPQw" fontName="Verdana" fillColor="15790320" lineColor="12632256"/>
+              <layoutConstraint xsi:type="notation:Bounds" xmi:id="_34F7ter8EeOY6Jei9gSPQw"/>
+            </children>
+          </children>
+          <styles xsi:type="notation:ShapeStyle" xmi:id="_34Etker8EeOY6Jei9gSPQw" fontName="Verdana" fillColor="15981773" lineColor="12632256"/>
+          <styles xsi:type="notation:FontStyle" xmi:id="_34Etkur8EeOY6Jei9gSPQw"/>
+          <styles xsi:type="notation:BooleanValueStyle" xmi:id="_34F7ser8EeOY6Jei9gSPQw" name="isHorizontal" booleanValue="true"/>
+          <layoutConstraint xsi:type="notation:Bounds" xmi:id="_4pF60Or8EeOY6Jei9gSPQw" x="78" y="75" width="176" height="208"/>
+        </children>
+        <children xmi:id="_cuab0esAEeOsdKncm9SrMw" type="Exit" element="_cuab0OsAEeOsdKncm9SrMw">
+          <children xmi:id="_cuab1OsAEeOsdKncm9SrMw" type="BorderItemLabelContainer">
+            <children xsi:type="notation:DecorationNode" xmi:id="_cubC4OsAEeOsdKncm9SrMw" type="BorderItemLabel">
+              <styles xsi:type="notation:ShapeStyle" xmi:id="_cubC4esAEeOsdKncm9SrMw"/>
+              <layoutConstraint xsi:type="notation:Location" xmi:id="_cubC4usAEeOsdKncm9SrMw"/>
+            </children>
+            <styles xsi:type="notation:ShapeStyle" xmi:id="_cuab1esAEeOsdKncm9SrMw" fontName="Verdana" lineColor="4210752"/>
+            <layoutConstraint xsi:type="notation:Bounds" xmi:id="_cuab1usAEeOsdKncm9SrMw"/>
+          </children>
+          <styles xsi:type="notation:ShapeStyle" xmi:id="_cuab0usAEeOsdKncm9SrMw" fontName="Verdana" lineColor="4210752"/>
+          <layoutConstraint xsi:type="notation:Bounds" xmi:id="_cuab0-sAEeOsdKncm9SrMw"/>
+        </children>
+        <children xmi:id="_c7IpMOsAEeOsdKncm9SrMw" type="Entry" element="_cuXYgOsAEeOsdKncm9SrMw">
+          <children xmi:id="_c7IpM-sAEeOsdKncm9SrMw" type="BorderItemLabelContainer">
+            <children xsi:type="notation:DecorationNode" xmi:id="_c7IpNusAEeOsdKncm9SrMw" type="BorderItemLabel">
+              <styles xsi:type="notation:ShapeStyle" xmi:id="_c7IpN-sAEeOsdKncm9SrMw"/>
+              <layoutConstraint xsi:type="notation:Location" xmi:id="_c7IpOOsAEeOsdKncm9SrMw"/>
+            </children>
+            <styles xsi:type="notation:ShapeStyle" xmi:id="_c7IpNOsAEeOsdKncm9SrMw" fontName="Verdana" lineColor="4210752"/>
+            <layoutConstraint xsi:type="notation:Bounds" xmi:id="_c7IpNesAEeOsdKncm9SrMw"/>
+          </children>
+          <styles xsi:type="notation:ShapeStyle" xmi:id="_c7IpMesAEeOsdKncm9SrMw" fontName="Verdana" lineColor="4210752"/>
+          <layoutConstraint xsi:type="notation:Bounds" xmi:id="_c7IpMusAEeOsdKncm9SrMw" x="-11" y="47"/>
+        </children>
+        <layoutConstraint xsi:type="notation:Bounds" xmi:id="_4pEsser8EeOY6Jei9gSPQw"/>
+      </children>
+      <styles xsi:type="notation:ShapeStyle" xmi:id="_4ovVg-r8EeOY6Jei9gSPQw" fontName="Verdana" fillColor="15790320" lineColor="12632256"/>
+      <layoutConstraint xsi:type="notation:Bounds" xmi:id="_4ovVhOr8EeOY6Jei9gSPQw" width="389" height="333"/>
+    </children>
+    <styles xsi:type="notation:DiagramStyle" xmi:id="_cuWxcOsAEeOsdKncm9SrMw"/>
+    <edges xmi:id="_cubp8OsAEeOsdKncm9SrMw" type="Transition" element="_3a30MOr8EeOY6Jei9gSPQw" source="_1_2AoOr8EeOY6Jei9gSPQw" target="_cuab0esAEeOsdKncm9SrMw">
+      <children xsi:type="notation:DecorationNode" xmi:id="_cubp9OsAEeOsdKncm9SrMw" type="TransitionExpression">
+        <styles xsi:type="notation:ShapeStyle" xmi:id="_cubp9esAEeOsdKncm9SrMw"/>
+        <layoutConstraint xsi:type="notation:Location" xmi:id="_cubp9usAEeOsdKncm9SrMw" y="10"/>
+      </children>
+      <styles xsi:type="notation:ConnectorStyle" xmi:id="_cubp8esAEeOsdKncm9SrMw" lineColor="4210752"/>
+      <styles xsi:type="notation:FontStyle" xmi:id="_cubp8-sAEeOsdKncm9SrMw" fontName="Verdana"/>
+      <bendpoints xsi:type="notation:RelativeBendpoints" xmi:id="_cubp8usAEeOsdKncm9SrMw" points="[-13, -24, 140, 147]$[-82, -155, 71, 16]$[-146, -170, 7, 1]"/>
+    </edges>
+    <edges xmi:id="_c7LFcOsAEeOsdKncm9SrMw" type="Transition" element="_cuX_kOsAEeOsdKncm9SrMw" source="_c7IpMOsAEeOsdKncm9SrMw" target="_1_2AoOr8EeOY6Jei9gSPQw">
+      <children xsi:type="notation:DecorationNode" xmi:id="_c7LFdOsAEeOsdKncm9SrMw" type="TransitionExpression">
+        <styles xsi:type="notation:ShapeStyle" xmi:id="_c7LFdesAEeOsdKncm9SrMw"/>
+        <layoutConstraint xsi:type="notation:Location" xmi:id="_c7LFdusAEeOsdKncm9SrMw" y="10"/>
+      </children>
+      <styles xsi:type="notation:ConnectorStyle" xmi:id="_c7LFcesAEeOsdKncm9SrMw" lineColor="4210752"/>
+      <styles xsi:type="notation:FontStyle" xmi:id="_c7LFc-sAEeOsdKncm9SrMw" fontName="Verdana"/>
+      <bendpoints xsi:type="notation:RelativeBendpoints" xmi:id="_c7LFcusAEeOsdKncm9SrMw" points="[1, 7, -163, -117]$[11, 77, -153, -47]$[147, 118, -17, -6]"/>
+    </edges>
+  </notation:Diagram>
+</xmi:XMI>

+ 342 - 0
test-plugins/org.yakindu.sct.refactoring.tests/testmodels/refactoring/create_submachine/after_twoEntryPoints.sct

@@ -0,0 +1,342 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.2/notation" xmlns:sgraph="http://www.yakindu.org/sct/sgraph/2.0.0">
+  <sgraph:Statechart xmi:id="_NEjmkMdmEeGOoP2Ze98WBQ" specification="interface :&#xA;in event event1&#xA;in event event2&#xA;in event event3" name="after_grouping">
+    <regions xmi:id="_NEjmk8dmEeGOoP2Ze98WBQ" name="main region">
+      <vertices xsi:type="sgraph:Entry" xmi:id="_NEkNpsdmEeGOoP2Ze98WBQ">
+        <outgoingTransitions xmi:id="_NEmC08dmEeGOoP2Ze98WBQ" target="_NEk0t8dmEeGOoP2Ze98WBQ"/>
+      </vertices>
+      <vertices xsi:type="sgraph:State" xmi:id="_NEk0t8dmEeGOoP2Ze98WBQ" name="A" incomingTransitions="_NEmC08dmEeGOoP2Ze98WBQ">
+        <outgoingTransitions xmi:id="_QTY6EMdmEeGOoP2Ze98WBQ" specification="event1 # > entry_B0" target="_wr22MMdmEeGOoP2Ze98WBQ"/>
+        <outgoingTransitions xmi:id="_q-EGYMmqEeGJr-muz4j25w" specification="" target="_jeUXUMmqEeGJr-muz4j25w"/>
+      </vertices>
+      <vertices xsi:type="sgraph:State" xmi:id="_XzbkEMdmEeGOoP2Ze98WBQ" specification="" name="E" incomingTransitions="_iI41kesCEeOsdKncm9SrMw"/>
+      <vertices xsi:type="sgraph:State" xmi:id="_wr22MMdmEeGOoP2Ze98WBQ" specification="" name="Composite" incomingTransitions="_kxXTkMmqEeGJr-muz4j25w _QTY6EMdmEeGOoP2Ze98WBQ">
+        <outgoingTransitions xmi:id="_iI41kesCEeOsdKncm9SrMw" specification=" # exit_D0 >" target="_XzbkEMdmEeGOoP2Ze98WBQ"/>
+        <regions xmi:id="_ABNPkMdnEeGOoP2Ze98WBQ" name="Inner">
+          <vertices xsi:type="sgraph:State" xmi:id="_Tmj7AMdmEeGOoP2Ze98WBQ" name="D" incomingTransitions="_UaJ7IMdmEeGOoP2Ze98WBQ _U8B5IMdmEeGOoP2Ze98WBQ">
+            <outgoingTransitions xmi:id="_YboMgMdmEeGOoP2Ze98WBQ" specification="event3" target="_iIyH4OsCEeOsdKncm9SrMw"/>
+          </vertices>
+          <vertices xsi:type="sgraph:State" xmi:id="_Rr0soMdmEeGOoP2Ze98WBQ" specification="" name="C" incomingTransitions="_SJMlIMdmEeGOoP2Ze98WBQ _iIa7gOsCEeOsdKncm9SrMw">
+            <outgoingTransitions xmi:id="_UaJ7IMdmEeGOoP2Ze98WBQ" specification="" target="_Tmj7AMdmEeGOoP2Ze98WBQ"/>
+          </vertices>
+          <vertices xsi:type="sgraph:State" xmi:id="_OTYKIMdmEeGOoP2Ze98WBQ" specification="" name="B" incomingTransitions="_iInIwesCEeOsdKncm9SrMw">
+            <outgoingTransitions xmi:id="_SJMlIMdmEeGOoP2Ze98WBQ" specification="event3" target="_Rr0soMdmEeGOoP2Ze98WBQ"/>
+            <outgoingTransitions xmi:id="_U8B5IMdmEeGOoP2Ze98WBQ" specification="" target="_Tmj7AMdmEeGOoP2Ze98WBQ"/>
+          </vertices>
+          <vertices xsi:type="sgraph:Entry" xmi:id="_iIaUcOsCEeOsdKncm9SrMw" name="entry_C0">
+            <outgoingTransitions xmi:id="_iIa7gOsCEeOsdKncm9SrMw" specification="" target="_Rr0soMdmEeGOoP2Ze98WBQ"/>
+          </vertices>
+          <vertices xsi:type="sgraph:Entry" xmi:id="_iInIwOsCEeOsdKncm9SrMw" name="entry_B0">
+            <outgoingTransitions xmi:id="_iInIwesCEeOsdKncm9SrMw" specification="" target="_OTYKIMdmEeGOoP2Ze98WBQ"/>
+          </vertices>
+          <vertices xsi:type="sgraph:Exit" xmi:id="_iIyH4OsCEeOsdKncm9SrMw" name="exit_D0" incomingTransitions="_YboMgMdmEeGOoP2Ze98WBQ"/>
+        </regions>
+      </vertices>
+      <vertices xsi:type="sgraph:State" xmi:id="_jeUXUMmqEeGJr-muz4j25w" name="A2" incomingTransitions="_q-EGYMmqEeGJr-muz4j25w">
+        <outgoingTransitions xmi:id="_kxXTkMmqEeGJr-muz4j25w" specification="event2 # > entry_C0" target="_wr22MMdmEeGOoP2Ze98WBQ"/>
+      </vertices>
+    </regions>
+  </sgraph:Statechart>
+  <notation:Diagram xmi:id="_NEjmkcdmEeGOoP2Ze98WBQ" type="org.yakindu.sct.ui.editor.editor.StatechartDiagramEditor" element="_NEjmkMdmEeGOoP2Ze98WBQ" measurementUnit="Pixel">
+    <children xmi:id="_NEjmlMdmEeGOoP2Ze98WBQ" type="Region" element="_NEjmk8dmEeGOoP2Ze98WBQ">
+      <children xsi:type="notation:DecorationNode" xmi:id="_NEkNoMdmEeGOoP2Ze98WBQ" type="RegionName">
+        <styles xsi:type="notation:ShapeStyle" xmi:id="_NEkNocdmEeGOoP2Ze98WBQ"/>
+        <layoutConstraint xsi:type="notation:Location" xmi:id="_NEkNosdmEeGOoP2Ze98WBQ"/>
+      </children>
+      <children xsi:type="notation:Shape" xmi:id="_NEkNo8dmEeGOoP2Ze98WBQ" type="RegionCompartment" fontName="Verdana" lineColor="4210752">
+        <children xmi:id="_NEkNp8dmEeGOoP2Ze98WBQ" type="Entry" element="_NEkNpsdmEeGOoP2Ze98WBQ">
+          <children xmi:id="_NEk0sMdmEeGOoP2Ze98WBQ" type="BorderItemLabelContainer">
+            <children xsi:type="notation:DecorationNode" xmi:id="_NEk0s8dmEeGOoP2Ze98WBQ" type="BorderItemLabel">
+              <styles xsi:type="notation:ShapeStyle" xmi:id="_NEk0tMdmEeGOoP2Ze98WBQ"/>
+              <layoutConstraint xsi:type="notation:Location" xmi:id="_NEk0tcdmEeGOoP2Ze98WBQ"/>
+            </children>
+            <styles xsi:type="notation:ShapeStyle" xmi:id="_NEk0scdmEeGOoP2Ze98WBQ" fontName="Verdana" lineColor="4210752"/>
+            <layoutConstraint xsi:type="notation:Bounds" xmi:id="_NEk0ssdmEeGOoP2Ze98WBQ"/>
+          </children>
+          <styles xsi:type="notation:ShapeStyle" xmi:id="_NEkNqMdmEeGOoP2Ze98WBQ" fontName="Verdana" lineColor="4210752"/>
+          <layoutConstraint xsi:type="notation:Bounds" xmi:id="_NEk0tsdmEeGOoP2Ze98WBQ" x="50" y="23"/>
+        </children>
+        <children xmi:id="_NElbwcdmEeGOoP2Ze98WBQ" type="State" element="_NEk0t8dmEeGOoP2Ze98WBQ">
+          <children xsi:type="notation:DecorationNode" xmi:id="_NElbxcdmEeGOoP2Ze98WBQ" type="StateName">
+            <styles xsi:type="notation:ShapeStyle" xmi:id="_NElbxsdmEeGOoP2Ze98WBQ"/>
+            <layoutConstraint xsi:type="notation:Location" xmi:id="_NElbx8dmEeGOoP2Ze98WBQ"/>
+          </children>
+          <children xsi:type="notation:Compartment" xmi:id="_NElbyMdmEeGOoP2Ze98WBQ" type="StateTextCompartment">
+            <children xsi:type="notation:Shape" xmi:id="_NElbycdmEeGOoP2Ze98WBQ" type="StateTextCompartmentExpression" fontName="Verdana" lineColor="4210752">
+              <layoutConstraint xsi:type="notation:Bounds" xmi:id="_NElbysdmEeGOoP2Ze98WBQ"/>
+            </children>
+          </children>
+          <children xsi:type="notation:Compartment" xmi:id="_NEmC0MdmEeGOoP2Ze98WBQ" type="StateFigureCompartment"/>
+          <styles xsi:type="notation:ShapeStyle" xmi:id="_NElbwsdmEeGOoP2Ze98WBQ" fontName="Verdana" fillColor="15981773" lineColor="12632256"/>
+          <styles xsi:type="notation:FontStyle" xmi:id="_NElbw8dmEeGOoP2Ze98WBQ"/>
+          <styles xsi:type="notation:BooleanValueStyle" xmi:id="_NEmC0cdmEeGOoP2Ze98WBQ"/>
+          <layoutConstraint xsi:type="notation:Bounds" xmi:id="_NEmC0sdmEeGOoP2Ze98WBQ" x="40" y="91"/>
+        </children>
+        <children xmi:id="_XzhqsMdmEeGOoP2Ze98WBQ" type="State" element="_XzbkEMdmEeGOoP2Ze98WBQ">
+          <children xsi:type="notation:DecorationNode" xmi:id="_XziRw8dmEeGOoP2Ze98WBQ" type="StateName">
+            <styles xsi:type="notation:ShapeStyle" xmi:id="_XziRxMdmEeGOoP2Ze98WBQ"/>
+            <layoutConstraint xsi:type="notation:Location" xmi:id="_XziRxcdmEeGOoP2Ze98WBQ"/>
+          </children>
+          <children xsi:type="notation:Compartment" xmi:id="_XziRxsdmEeGOoP2Ze98WBQ" type="StateTextCompartment">
+            <children xsi:type="notation:Shape" xmi:id="_Xzi40MdmEeGOoP2Ze98WBQ" type="StateTextCompartmentExpression" fontName="Verdana" lineColor="4210752">
+              <layoutConstraint xsi:type="notation:Bounds" xmi:id="_Xzi40cdmEeGOoP2Ze98WBQ"/>
+            </children>
+          </children>
+          <children xsi:type="notation:Compartment" xmi:id="_Xzi40sdmEeGOoP2Ze98WBQ" type="StateFigureCompartment"/>
+          <styles xsi:type="notation:ShapeStyle" xmi:id="_XziRwMdmEeGOoP2Ze98WBQ" fontName="Verdana" fillColor="15981773" lineColor="12632256"/>
+          <styles xsi:type="notation:FontStyle" xmi:id="_XziRwcdmEeGOoP2Ze98WBQ"/>
+          <styles xsi:type="notation:BooleanValueStyle" xmi:id="_Xzi408dmEeGOoP2Ze98WBQ"/>
+          <layoutConstraint xsi:type="notation:Bounds" xmi:id="_XziRwsdmEeGOoP2Ze98WBQ" x="561" y="167"/>
+        </children>
+        <children xmi:id="_5l-RgMdmEeGOoP2Ze98WBQ" type="SubmachineState" element="_wr22MMdmEeGOoP2Ze98WBQ">
+          <children xsi:type="notation:DecorationNode" xmi:id="_5l-RhMdmEeGOoP2Ze98WBQ" type="StateName">
+            <styles xsi:type="notation:ShapeStyle" xmi:id="_5l-RhcdmEeGOoP2Ze98WBQ"/>
+            <layoutConstraint xsi:type="notation:Location" xmi:id="_5l-4kMdmEeGOoP2Ze98WBQ"/>
+          </children>
+          <children xsi:type="notation:Compartment" xmi:id="_5l-4kcdmEeGOoP2Ze98WBQ" type="StateTextCompartment">
+            <children xsi:type="notation:Shape" xmi:id="_5l-4ksdmEeGOoP2Ze98WBQ" type="StateTextCompartmentExpression" fontName="Verdana" lineColor="4210752">
+              <layoutConstraint xsi:type="notation:Bounds" xmi:id="_5l-4k8dmEeGOoP2Ze98WBQ"/>
+            </children>
+          </children>
+          <children xsi:type="notation:Compartment" xmi:id="_5l-4lMdmEeGOoP2Ze98WBQ" type="StateFigureCompartment"/>
+          <styles xsi:type="notation:ShapeStyle" xmi:id="_5l-RgcdmEeGOoP2Ze98WBQ" fontName="Verdana" fillColor="15981773" lineColor="12632256"/>
+          <styles xsi:type="notation:FontStyle" xmi:id="_5l-RgsdmEeGOoP2Ze98WBQ"/>
+          <styles xsi:type="notation:BooleanValueStyle" xmi:id="_5l-4lcdmEeGOoP2Ze98WBQ"/>
+          <styles xsi:type="notation:BooleanValueStyle" xmi:id="_iIYfQOsCEeOsdKncm9SrMw" name="isInline"/>
+          <layoutConstraint xsi:type="notation:Bounds" xmi:id="_5l-Rg8dmEeGOoP2Ze98WBQ" x="213" y="149" width="138" height="71"/>
+        </children>
+        <children xmi:id="_jehLoMmqEeGJr-muz4j25w" type="State" element="_jeUXUMmqEeGJr-muz4j25w">
+          <children xsi:type="notation:DecorationNode" xmi:id="_jehysMmqEeGJr-muz4j25w" type="StateName">
+            <styles xsi:type="notation:ShapeStyle" xmi:id="_jehyscmqEeGJr-muz4j25w"/>
+            <layoutConstraint xsi:type="notation:Location" xmi:id="_jehyssmqEeGJr-muz4j25w"/>
+          </children>
+          <children xsi:type="notation:Compartment" xmi:id="_jeiZwMmqEeGJr-muz4j25w" type="StateTextCompartment">
+            <children xsi:type="notation:Shape" xmi:id="_jeiZwcmqEeGJr-muz4j25w" type="StateTextCompartmentExpression" fontName="Verdana" lineColor="4210752">
+              <layoutConstraint xsi:type="notation:Bounds" xmi:id="_jeiZwsmqEeGJr-muz4j25w"/>
+            </children>
+          </children>
+          <children xsi:type="notation:Compartment" xmi:id="_jeiZw8mqEeGJr-muz4j25w" type="StateFigureCompartment"/>
+          <styles xsi:type="notation:ShapeStyle" xmi:id="_jehLocmqEeGJr-muz4j25w" fontName="Verdana" fillColor="15981773" lineColor="12632256"/>
+          <styles xsi:type="notation:FontStyle" xmi:id="_jehLosmqEeGJr-muz4j25w"/>
+          <styles xsi:type="notation:BooleanValueStyle" xmi:id="_jejA0MmqEeGJr-muz4j25w"/>
+          <layoutConstraint xsi:type="notation:Bounds" xmi:id="_jehLo8mqEeGJr-muz4j25w" x="41" y="227"/>
+        </children>
+        <layoutConstraint xsi:type="notation:Bounds" xmi:id="_NEkNpMdmEeGOoP2Ze98WBQ"/>
+      </children>
+      <styles xsi:type="notation:ShapeStyle" xmi:id="_NEjmlcdmEeGOoP2Ze98WBQ" fontName="Verdana" fillColor="15790320" lineColor="12632256"/>
+      <layoutConstraint xsi:type="notation:Bounds" xmi:id="_NEkNpcdmEeGOoP2Ze98WBQ" x="220" y="10" width="701" height="400"/>
+    </children>
+    <children xsi:type="notation:Shape" xmi:id="_NEmp48dmEeGOoP2Ze98WBQ" type="StatechartText" fontName="Verdana" lineColor="4210752">
+      <children xsi:type="notation:DecorationNode" xmi:id="_NEmp5cdmEeGOoP2Ze98WBQ" type="StatechartName">
+        <styles xsi:type="notation:ShapeStyle" xmi:id="_NEmp5sdmEeGOoP2Ze98WBQ"/>
+        <layoutConstraint xsi:type="notation:Location" xmi:id="_NEmp58dmEeGOoP2Ze98WBQ"/>
+      </children>
+      <children xsi:type="notation:Shape" xmi:id="_NEmp6MdmEeGOoP2Ze98WBQ" type="StatechartTextExpression" fontName="Verdana" lineColor="4210752">
+        <layoutConstraint xsi:type="notation:Bounds" xmi:id="_NEmp6cdmEeGOoP2Ze98WBQ"/>
+      </children>
+      <layoutConstraint xsi:type="notation:Bounds" xmi:id="_NEmp6sdmEeGOoP2Ze98WBQ" x="10" y="10" width="200" height="400"/>
+    </children>
+    <styles xsi:type="notation:DiagramStyle" xmi:id="_NEjmksdmEeGOoP2Ze98WBQ"/>
+    <edges xmi:id="_NEmC1MdmEeGOoP2Ze98WBQ" type="Transition" element="_NEmC08dmEeGOoP2Ze98WBQ" source="_NEkNp8dmEeGOoP2Ze98WBQ" target="_NElbwcdmEeGOoP2Ze98WBQ">
+      <children xsi:type="notation:DecorationNode" xmi:id="_NEmp4MdmEeGOoP2Ze98WBQ" type="TransitionExpression">
+        <styles xsi:type="notation:ShapeStyle" xmi:id="_NEmp4cdmEeGOoP2Ze98WBQ"/>
+        <layoutConstraint xsi:type="notation:Location" xmi:id="_NEmp4sdmEeGOoP2Ze98WBQ" y="10"/>
+      </children>
+      <styles xsi:type="notation:ConnectorStyle" xmi:id="_NEmC1cdmEeGOoP2Ze98WBQ" lineColor="4210752"/>
+      <styles xsi:type="notation:FontStyle" xmi:id="_NEmC18dmEeGOoP2Ze98WBQ" fontName="Verdana"/>
+      <bendpoints xsi:type="notation:RelativeBendpoints" xmi:id="_NEmC1sdmEeGOoP2Ze98WBQ" points="[0, 0, 0, 0]$[0, 0, 0, 0]"/>
+    </edges>
+    <edges xmi:id="_QTbWUMdmEeGOoP2Ze98WBQ" type="Transition" element="_QTY6EMdmEeGOoP2Ze98WBQ" source="_NElbwcdmEeGOoP2Ze98WBQ" target="_5l-RgMdmEeGOoP2Ze98WBQ">
+      <children xsi:type="notation:DecorationNode" xmi:id="_QTbWVMdmEeGOoP2Ze98WBQ" type="TransitionExpression">
+        <styles xsi:type="notation:ShapeStyle" xmi:id="_QTbWVcdmEeGOoP2Ze98WBQ"/>
+        <layoutConstraint xsi:type="notation:Location" xmi:id="_QTbWVsdmEeGOoP2Ze98WBQ" x="-22" y="10"/>
+      </children>
+      <styles xsi:type="notation:ConnectorStyle" xmi:id="_QTbWUcdmEeGOoP2Ze98WBQ" lineColor="4210752"/>
+      <styles xsi:type="notation:FontStyle" xmi:id="_QTbWU8dmEeGOoP2Ze98WBQ" fontName="Verdana"/>
+      <bendpoints xsi:type="notation:RelativeBendpoints" xmi:id="_QTbWUsdmEeGOoP2Ze98WBQ" points="[18, 0, -160, 3]$[179, 22, 1, 25]"/>
+      <targetAnchor xsi:type="notation:IdentityAnchor" xmi:id="_QTeZoMdmEeGOoP2Ze98WBQ" id="(0.075,0.49056603773584906)"/>
+    </edges>
+    <edges xmi:id="_SJPocMdmEeGOoP2Ze98WBQ" type="Transition" element="_SJMlIMdmEeGOoP2Ze98WBQ" source="_OTjwUMdmEeGOoP2Ze98WBQ" target="_Rr-doMdmEeGOoP2Ze98WBQ">
+      <children xsi:type="notation:DecorationNode" xmi:id="_SJQPgcdmEeGOoP2Ze98WBQ" type="TransitionExpression">
+        <styles xsi:type="notation:ShapeStyle" xmi:id="_SJQPgsdmEeGOoP2Ze98WBQ"/>
+        <layoutConstraint xsi:type="notation:Location" xmi:id="_SJQPg8dmEeGOoP2Ze98WBQ" x="9" y="22"/>
+      </children>
+      <styles xsi:type="notation:ConnectorStyle" xmi:id="_SJPoccdmEeGOoP2Ze98WBQ" lineColor="4210752"/>
+      <styles xsi:type="notation:FontStyle" xmi:id="_SJQPgMdmEeGOoP2Ze98WBQ" fontName="Verdana"/>
+      <bendpoints xsi:type="notation:RelativeBendpoints" xmi:id="_SJPocsdmEeGOoP2Ze98WBQ" points="[-8, 12, 1, -83]$[-8, 91, 1, -4]"/>
+      <sourceAnchor xsi:type="notation:IdentityAnchor" xmi:id="_SJTS0MdmEeGOoP2Ze98WBQ" id="(0.625,0.7547169811320755)"/>
+      <targetAnchor xsi:type="notation:IdentityAnchor" xmi:id="_SJTS0cdmEeGOoP2Ze98WBQ" id="(0.4,0.20754716981132076)"/>
+    </edges>
+    <edges xmi:id="_UaQo0MdmEeGOoP2Ze98WBQ" type="Transition" element="_UaJ7IMdmEeGOoP2Ze98WBQ" source="_Rr-doMdmEeGOoP2Ze98WBQ" target="_TmozgMdmEeGOoP2Ze98WBQ">
+      <children xsi:type="notation:DecorationNode" xmi:id="_UaQo1MdmEeGOoP2Ze98WBQ" type="TransitionExpression">
+        <styles xsi:type="notation:ShapeStyle" xmi:id="_UaQo1cdmEeGOoP2Ze98WBQ"/>
+        <layoutConstraint xsi:type="notation:Location" xmi:id="_UaQo1sdmEeGOoP2Ze98WBQ" y="10"/>
+      </children>
+      <styles xsi:type="notation:ConnectorStyle" xmi:id="_UaQo0cdmEeGOoP2Ze98WBQ" lineColor="4210752"/>
+      <styles xsi:type="notation:FontStyle" xmi:id="_UaQo08dmEeGOoP2Ze98WBQ" fontName="Verdana"/>
+      <bendpoints xsi:type="notation:RelativeBendpoints" xmi:id="_UaQo0sdmEeGOoP2Ze98WBQ" points="[18, -9, -90, 51]$[101, -36, -7, 24]"/>
+    </edges>
+    <edges xmi:id="_U8H_wMdmEeGOoP2Ze98WBQ" type="Transition" element="_U8B5IMdmEeGOoP2Ze98WBQ" source="_OTjwUMdmEeGOoP2Ze98WBQ" target="_TmozgMdmEeGOoP2Ze98WBQ">
+      <children xsi:type="notation:DecorationNode" xmi:id="_U8Im0cdmEeGOoP2Ze98WBQ" type="TransitionExpression">
+        <styles xsi:type="notation:ShapeStyle" xmi:id="_U8Im0sdmEeGOoP2Ze98WBQ"/>
+        <layoutConstraint xsi:type="notation:Location" xmi:id="_U8Im08dmEeGOoP2Ze98WBQ" y="10"/>
+      </children>
+      <styles xsi:type="notation:ConnectorStyle" xmi:id="_U8H_wcdmEeGOoP2Ze98WBQ" lineColor="4210752"/>
+      <styles xsi:type="notation:FontStyle" xmi:id="_U8Im0MdmEeGOoP2Ze98WBQ" fontName="Verdana"/>
+      <bendpoints xsi:type="notation:RelativeBendpoints" xmi:id="_U8H_wsdmEeGOoP2Ze98WBQ" points="[18, 8, -95, -59]$[131, 59, 18, -8]"/>
+    </edges>
+    <edges xmi:id="_kxhEkMmqEeGJr-muz4j25w" type="Transition" element="_kxXTkMmqEeGJr-muz4j25w" source="_jehLoMmqEeGJr-muz4j25w" target="_5l-RgMdmEeGOoP2Ze98WBQ">
+      <children xsi:type="notation:DecorationNode" xmi:id="_kxhElMmqEeGJr-muz4j25w" type="TransitionExpression">
+        <styles xsi:type="notation:ShapeStyle" xmi:id="_kxhElcmqEeGJr-muz4j25w"/>
+        <layoutConstraint xsi:type="notation:Location" xmi:id="_kxhElsmqEeGJr-muz4j25w" x="-26" y="9"/>
+      </children>
+      <styles xsi:type="notation:ConnectorStyle" xmi:id="_kxhEkcmqEeGJr-muz4j25w" lineColor="4210752"/>
+      <styles xsi:type="notation:FontStyle" xmi:id="_kxhEk8mqEeGJr-muz4j25w" fontName="Verdana"/>
+      <bendpoints xsi:type="notation:RelativeBendpoints" xmi:id="_kxhEksmqEeGJr-muz4j25w" points="[18, -1, -170, -1]$[184, -24, -4, -24]"/>
+    </edges>
+    <edges xmi:id="_q-MpQMmqEeGJr-muz4j25w" type="Transition" element="_q-EGYMmqEeGJr-muz4j25w" source="_NElbwcdmEeGOoP2Ze98WBQ" target="_jehLoMmqEeGJr-muz4j25w">
+      <children xsi:type="notation:DecorationNode" xmi:id="_q-NQUcmqEeGJr-muz4j25w" type="TransitionExpression">
+        <styles xsi:type="notation:ShapeStyle" xmi:id="_q-NQUsmqEeGJr-muz4j25w"/>
+        <layoutConstraint xsi:type="notation:Location" xmi:id="_q-NQU8mqEeGJr-muz4j25w" y="10"/>
+      </children>
+      <styles xsi:type="notation:ConnectorStyle" xmi:id="_q-MpQcmqEeGJr-muz4j25w" lineColor="4210752"/>
+      <styles xsi:type="notation:FontStyle" xmi:id="_q-NQUMmqEeGJr-muz4j25w" fontName="Verdana"/>
+      <bendpoints xsi:type="notation:RelativeBendpoints" xmi:id="_q-MpQsmqEeGJr-muz4j25w" points="[-3, 24, 2, -93]$[-3, 112, 2, -5]"/>
+      <targetAnchor xsi:type="notation:IdentityAnchor" xmi:id="_q-XBUMmqEeGJr-muz4j25w" id="(0.325,0.11320754716981132)"/>
+    </edges>
+    <edges xmi:id="_iI41kusCEeOsdKncm9SrMw" type="Transition" element="_iI41kesCEeOsdKncm9SrMw" source="_5l-RgMdmEeGOoP2Ze98WBQ" target="_XzhqsMdmEeGOoP2Ze98WBQ">
+      <children xsi:type="notation:DecorationNode" xmi:id="_iI5coesCEeOsdKncm9SrMw" type="TransitionExpression">
+        <styles xsi:type="notation:ShapeStyle" xmi:id="_iI5cousCEeOsdKncm9SrMw"/>
+        <layoutConstraint xsi:type="notation:Location" xmi:id="_iI5co-sCEeOsdKncm9SrMw" y="10"/>
+      </children>
+      <styles xsi:type="notation:ConnectorStyle" xmi:id="_iI41k-sCEeOsdKncm9SrMw" lineColor="4210752"/>
+      <styles xsi:type="notation:FontStyle" xmi:id="_iI5coOsCEeOsdKncm9SrMw" fontName="Verdana"/>
+      <bendpoints xsi:type="notation:RelativeBendpoints" xmi:id="_iI41lOsCEeOsdKncm9SrMw" points="[0, 0, 0, 0]$[0, 0, 0, 0]"/>
+    </edges>
+  </notation:Diagram>
+  <notation:Diagram xmi:id="_iIZtYOsCEeOsdKncm9SrMw" type="org.yakindu.sct.ui.editor.editor.StatechartDiagramEditor" element="_wr22MMdmEeGOoP2Ze98WBQ" measurementUnit="Pixel">
+    <children xmi:id="_ABSvIMdnEeGOoP2Ze98WBQ" type="Region" element="_ABNPkMdnEeGOoP2Ze98WBQ">
+      <children xsi:type="notation:DecorationNode" xmi:id="_ABTWMMdnEeGOoP2Ze98WBQ" type="RegionName">
+        <styles xsi:type="notation:ShapeStyle" xmi:id="_ABTWMcdnEeGOoP2Ze98WBQ"/>
+        <layoutConstraint xsi:type="notation:Location" xmi:id="_ABTWMsdnEeGOoP2Ze98WBQ"/>
+      </children>
+      <children xsi:type="notation:Shape" xmi:id="_ABTWM8dnEeGOoP2Ze98WBQ" type="RegionCompartment" fontName="Verdana" lineColor="4210752">
+        <children xmi:id="_TmozgMdmEeGOoP2Ze98WBQ" type="State" element="_Tmj7AMdmEeGOoP2Ze98WBQ">
+          <children xsi:type="notation:DecorationNode" xmi:id="_TmozhMdmEeGOoP2Ze98WBQ" type="StateName">
+            <styles xsi:type="notation:ShapeStyle" xmi:id="_TmozhcdmEeGOoP2Ze98WBQ"/>
+            <layoutConstraint xsi:type="notation:Location" xmi:id="_TmozhsdmEeGOoP2Ze98WBQ"/>
+          </children>
+          <children xsi:type="notation:Compartment" xmi:id="_Tmozh8dmEeGOoP2Ze98WBQ" type="StateTextCompartment">
+            <children xsi:type="notation:Shape" xmi:id="_TmpakMdmEeGOoP2Ze98WBQ" type="StateTextCompartmentExpression" fontName="Verdana" lineColor="4210752">
+              <layoutConstraint xsi:type="notation:Bounds" xmi:id="_TmpakcdmEeGOoP2Ze98WBQ"/>
+            </children>
+          </children>
+          <children xsi:type="notation:Compartment" xmi:id="_TmpaksdmEeGOoP2Ze98WBQ" type="StateFigureCompartment"/>
+          <styles xsi:type="notation:ShapeStyle" xmi:id="_TmozgcdmEeGOoP2Ze98WBQ" fontName="Verdana" fillColor="15981773" lineColor="12632256"/>
+          <styles xsi:type="notation:FontStyle" xmi:id="_TmozgsdmEeGOoP2Ze98WBQ"/>
+          <styles xsi:type="notation:BooleanValueStyle" xmi:id="_Tmpak8dmEeGOoP2Ze98WBQ"/>
+          <layoutConstraint xsi:type="notation:Bounds" xmi:id="_Tmozg8dmEeGOoP2Ze98WBQ" x="156" y="53"/>
+        </children>
+        <children xmi:id="_Rr-doMdmEeGOoP2Ze98WBQ" type="State" element="_Rr0soMdmEeGOoP2Ze98WBQ">
+          <children xsi:type="notation:DecorationNode" xmi:id="_Rr_EsMdmEeGOoP2Ze98WBQ" type="StateName">
+            <styles xsi:type="notation:ShapeStyle" xmi:id="_Rr_EscdmEeGOoP2Ze98WBQ"/>
+            <layoutConstraint xsi:type="notation:Location" xmi:id="_Rr_EssdmEeGOoP2Ze98WBQ"/>
+          </children>
+          <children xsi:type="notation:Compartment" xmi:id="_Rr_Es8dmEeGOoP2Ze98WBQ" type="StateTextCompartment">
+            <children xsi:type="notation:Shape" xmi:id="_Rr_EtMdmEeGOoP2Ze98WBQ" type="StateTextCompartmentExpression" fontName="Verdana" lineColor="4210752">
+              <layoutConstraint xsi:type="notation:Bounds" xmi:id="_Rr_EtcdmEeGOoP2Ze98WBQ"/>
+            </children>
+          </children>
+          <children xsi:type="notation:Compartment" xmi:id="_Rr_EtsdmEeGOoP2Ze98WBQ" type="StateFigureCompartment"/>
+          <styles xsi:type="notation:ShapeStyle" xmi:id="_Rr-docdmEeGOoP2Ze98WBQ" fontName="Verdana" fillColor="15981773" lineColor="12632256"/>
+          <styles xsi:type="notation:FontStyle" xmi:id="_Rr-dosdmEeGOoP2Ze98WBQ"/>
+          <styles xsi:type="notation:BooleanValueStyle" xmi:id="_Rr_Et8dmEeGOoP2Ze98WBQ"/>
+          <layoutConstraint xsi:type="notation:Bounds" xmi:id="_Rr-do8dmEeGOoP2Ze98WBQ" x="25" y="125"/>
+        </children>
+        <children xmi:id="_OTjwUMdmEeGOoP2Ze98WBQ" type="State" element="_OTYKIMdmEeGOoP2Ze98WBQ">
+          <children xsi:type="notation:DecorationNode" xmi:id="_OTjwVMdmEeGOoP2Ze98WBQ" type="StateName">
+            <styles xsi:type="notation:ShapeStyle" xmi:id="_OTjwVcdmEeGOoP2Ze98WBQ"/>
+            <layoutConstraint xsi:type="notation:Location" xmi:id="_OTkXYMdmEeGOoP2Ze98WBQ"/>
+          </children>
+          <children xsi:type="notation:Compartment" xmi:id="_OTkXYcdmEeGOoP2Ze98WBQ" type="StateTextCompartment">
+            <children xsi:type="notation:Shape" xmi:id="_OTkXYsdmEeGOoP2Ze98WBQ" type="StateTextCompartmentExpression" fontName="Verdana" lineColor="4210752">
+              <layoutConstraint xsi:type="notation:Bounds" xmi:id="_OTkXY8dmEeGOoP2Ze98WBQ"/>
+            </children>
+          </children>
+          <children xsi:type="notation:Compartment" xmi:id="_OTkXZMdmEeGOoP2Ze98WBQ" type="StateFigureCompartment"/>
+          <styles xsi:type="notation:ShapeStyle" xmi:id="_OTjwUcdmEeGOoP2Ze98WBQ" fontName="Verdana" fillColor="15981773" lineColor="12632256"/>
+          <styles xsi:type="notation:FontStyle" xmi:id="_OTjwUsdmEeGOoP2Ze98WBQ"/>
+          <styles xsi:type="notation:BooleanValueStyle" xmi:id="_OTkXZcdmEeGOoP2Ze98WBQ"/>
+          <layoutConstraint xsi:type="notation:Bounds" xmi:id="_OTjwU8dmEeGOoP2Ze98WBQ" x="25" y="-18"/>
+        </children>
+        <children xmi:id="_iIyH4esCEeOsdKncm9SrMw" type="Exit" element="_iIyH4OsCEeOsdKncm9SrMw">
+          <children xmi:id="_iIyu8OsCEeOsdKncm9SrMw" type="BorderItemLabelContainer">
+            <children xsi:type="notation:DecorationNode" xmi:id="_iIyu8-sCEeOsdKncm9SrMw" type="BorderItemLabel">
+              <styles xsi:type="notation:ShapeStyle" xmi:id="_iIyu9OsCEeOsdKncm9SrMw"/>
+              <layoutConstraint xsi:type="notation:Location" xmi:id="_iIyu9esCEeOsdKncm9SrMw"/>
+            </children>
+            <styles xsi:type="notation:ShapeStyle" xmi:id="_iIyu8esCEeOsdKncm9SrMw" fontName="Verdana" lineColor="4210752"/>
+            <layoutConstraint xsi:type="notation:Bounds" xmi:id="_iIyu8usCEeOsdKncm9SrMw"/>
+          </children>
+          <styles xsi:type="notation:ShapeStyle" xmi:id="_iIyH4usCEeOsdKncm9SrMw" fontName="Verdana" lineColor="4210752"/>
+          <layoutConstraint xsi:type="notation:Bounds" xmi:id="_iIyH4-sCEeOsdKncm9SrMw" x="296" y="65"/>
+        </children>
+        <children xmi:id="_i1KswOsCEeOsdKncm9SrMw" type="Entry" element="_iIaUcOsCEeOsdKncm9SrMw">
+          <children xmi:id="_i1LT0OsCEeOsdKncm9SrMw" type="BorderItemLabelContainer">
+            <children xsi:type="notation:DecorationNode" xmi:id="_i1LT0-sCEeOsdKncm9SrMw" type="BorderItemLabel">
+              <styles xsi:type="notation:ShapeStyle" xmi:id="_i1LT1OsCEeOsdKncm9SrMw"/>
+              <layoutConstraint xsi:type="notation:Location" xmi:id="_i1LT1esCEeOsdKncm9SrMw"/>
+            </children>
+            <styles xsi:type="notation:ShapeStyle" xmi:id="_i1LT0esCEeOsdKncm9SrMw" fontName="Verdana" lineColor="4210752"/>
+            <layoutConstraint xsi:type="notation:Bounds" xmi:id="_i1LT0usCEeOsdKncm9SrMw"/>
+          </children>
+          <styles xsi:type="notation:ShapeStyle" xmi:id="_i1KswesCEeOsdKncm9SrMw" fontName="Verdana" lineColor="4210752"/>
+          <layoutConstraint xsi:type="notation:Bounds" xmi:id="_i1KswusCEeOsdKncm9SrMw" x="-33" y="141"/>
+        </children>
+        <children xmi:id="_i1L64OsCEeOsdKncm9SrMw" type="Entry" element="_iInIwOsCEeOsdKncm9SrMw">
+          <children xmi:id="_i1L64-sCEeOsdKncm9SrMw" type="BorderItemLabelContainer">
+            <children xsi:type="notation:DecorationNode" xmi:id="_i1L65usCEeOsdKncm9SrMw" type="BorderItemLabel">
+              <styles xsi:type="notation:ShapeStyle" xmi:id="_i1L65-sCEeOsdKncm9SrMw"/>
+              <layoutConstraint xsi:type="notation:Location" xmi:id="_i1L66OsCEeOsdKncm9SrMw"/>
+            </children>
+            <styles xsi:type="notation:ShapeStyle" xmi:id="_i1L65OsCEeOsdKncm9SrMw" fontName="Verdana" lineColor="4210752"/>
+            <layoutConstraint xsi:type="notation:Bounds" xmi:id="_i1L65esCEeOsdKncm9SrMw"/>
+          </children>
+          <styles xsi:type="notation:ShapeStyle" xmi:id="_i1L64esCEeOsdKncm9SrMw" fontName="Verdana" lineColor="4210752"/>
+          <layoutConstraint xsi:type="notation:Bounds" xmi:id="_i1L64usCEeOsdKncm9SrMw" x="-33" y="-2"/>
+        </children>
+        <layoutConstraint xsi:type="notation:Bounds" xmi:id="_ABTWNMdnEeGOoP2Ze98WBQ"/>
+      </children>
+      <styles xsi:type="notation:ShapeStyle" xmi:id="_ABSvIcdnEeGOoP2Ze98WBQ" fontName="Verdana" fillColor="15790320" lineColor="12632256"/>
+      <layoutConstraint xsi:type="notation:Bounds" xmi:id="_ABSvIsdnEeGOoP2Ze98WBQ" width="432" height="297"/>
+    </children>
+    <styles xsi:type="notation:DiagramStyle" xmi:id="_iIZtYesCEeOsdKncm9SrMw"/>
+    <edges xmi:id="_iI4OgOsCEeOsdKncm9SrMw" type="Transition" element="_YboMgMdmEeGOoP2Ze98WBQ" source="_TmozgMdmEeGOoP2Ze98WBQ" target="_iIyH4esCEeOsdKncm9SrMw">
+      <children xsi:type="notation:DecorationNode" xmi:id="_iI4OhOsCEeOsdKncm9SrMw" type="TransitionExpression">
+        <styles xsi:type="notation:ShapeStyle" xmi:id="_iI4OhesCEeOsdKncm9SrMw"/>
+        <layoutConstraint xsi:type="notation:Location" xmi:id="_iI41kOsCEeOsdKncm9SrMw" x="-19" y="9"/>
+      </children>
+      <styles xsi:type="notation:ConnectorStyle" xmi:id="_iI4OgesCEeOsdKncm9SrMw" lineColor="4210752"/>
+      <styles xsi:type="notation:FontStyle" xmi:id="_iI4Og-sCEeOsdKncm9SrMw" fontName="Verdana"/>
+      <bendpoints xsi:type="notation:RelativeBendpoints" xmi:id="_iI4OgusCEeOsdKncm9SrMw" points="[0, 0, 0, 0]$[0, 0, 0, 0]"/>
+    </edges>
+    <edges xmi:id="_i1QMUOsCEeOsdKncm9SrMw" type="Transition" element="_iInIwesCEeOsdKncm9SrMw" source="_i1L64OsCEeOsdKncm9SrMw" target="_OTjwUMdmEeGOoP2Ze98WBQ">
+      <children xsi:type="notation:DecorationNode" xmi:id="_i1QzYesCEeOsdKncm9SrMw" type="TransitionExpression">
+        <styles xsi:type="notation:ShapeStyle" xmi:id="_i1QzYusCEeOsdKncm9SrMw"/>
+        <layoutConstraint xsi:type="notation:Location" xmi:id="_i1QzY-sCEeOsdKncm9SrMw" y="10"/>
+      </children>
+      <styles xsi:type="notation:ConnectorStyle" xmi:id="_i1QMUesCEeOsdKncm9SrMw" lineColor="4210752"/>
+      <styles xsi:type="notation:FontStyle" xmi:id="_i1QzYOsCEeOsdKncm9SrMw" fontName="Verdana"/>
+      <bendpoints xsi:type="notation:RelativeBendpoints" xmi:id="_i1QMUusCEeOsdKncm9SrMw" points="[-4, -6, 126, 184]$[-114, -166, 16, 24]"/>
+    </edges>
+    <edges xmi:id="_i1SokOsCEeOsdKncm9SrMw" type="Transition" element="_iIa7gOsCEeOsdKncm9SrMw" source="_i1KswOsCEeOsdKncm9SrMw" target="_Rr-doMdmEeGOoP2Ze98WBQ">
+      <children xsi:type="notation:DecorationNode" xmi:id="_i1SolOsCEeOsdKncm9SrMw" type="TransitionExpression">
+        <styles xsi:type="notation:ShapeStyle" xmi:id="_i1SolesCEeOsdKncm9SrMw"/>
+        <layoutConstraint xsi:type="notation:Location" xmi:id="_i1SolusCEeOsdKncm9SrMw" y="10"/>
+      </children>
+      <styles xsi:type="notation:ConnectorStyle" xmi:id="_i1SokesCEeOsdKncm9SrMw" lineColor="4210752"/>
+      <styles xsi:type="notation:FontStyle" xmi:id="_i1Sok-sCEeOsdKncm9SrMw" fontName="Verdana"/>
+      <bendpoints xsi:type="notation:RelativeBendpoints" xmi:id="_i1SokusCEeOsdKncm9SrMw" points="[-2, -2, 2, 2]$[-1, -1, 3, 3]"/>
+    </edges>
+  </notation:Diagram>
+</xmi:XMI>

+ 151 - 0
test-plugins/org.yakindu.sct.refactoring.tests/testmodels/refactoring/create_submachine/before_twoComposites.sct

@@ -0,0 +1,151 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.2/notation" xmlns:sgraph="http://www.yakindu.org/sct/sgraph/2.0.0">
+  <sgraph:Statechart xmi:id="_1_y9UOr8EeOY6Jei9gSPQw" specification="" name="test23">
+    <regions xmi:id="_1_zkYur8EeOY6Jei9gSPQw" name="main region">
+      <vertices xsi:type="sgraph:Entry" xmi:id="_1_0yger8EeOY6Jei9gSPQw">
+        <outgoingTransitions xmi:id="_1_2ns-r8EeOY6Jei9gSPQw" target="_1_1ZlOr8EeOY6Jei9gSPQw"/>
+      </vertices>
+      <vertices xsi:type="sgraph:FinalState" xmi:id="_3ErhwOr8EeOY6Jei9gSPQw" incomingTransitions="_3a30MOr8EeOY6Jei9gSPQw"/>
+      <vertices xsi:type="sgraph:State" xmi:id="_4os5QOr8EeOY6Jei9gSPQw" specification="" name="Composite_Composite_A">
+        <regions xmi:id="_4otgUOr8EeOY6Jei9gSPQw" name="inner region">
+          <vertices xsi:type="sgraph:State" xmi:id="_34DfcOr8EeOY6Jei9gSPQw" specification="" name="Composite_A">
+            <regions xmi:id="_34EGgOr8EeOY6Jei9gSPQw" name="inner region">
+              <vertices xsi:type="sgraph:State" xmi:id="_1_1ZlOr8EeOY6Jei9gSPQw" specification="" name="A" incomingTransitions="_1_2ns-r8EeOY6Jei9gSPQw">
+                <outgoingTransitions xmi:id="_3a30MOr8EeOY6Jei9gSPQw" specification="" target="_3ErhwOr8EeOY6Jei9gSPQw"/>
+              </vertices>
+            </regions>
+          </vertices>
+        </regions>
+      </vertices>
+    </regions>
+  </sgraph:Statechart>
+  <notation:Diagram xmi:id="_1_zkYOr8EeOY6Jei9gSPQw" type="org.yakindu.sct.ui.editor.editor.StatechartDiagramEditor" element="_1_y9UOr8EeOY6Jei9gSPQw" measurementUnit="Pixel">
+    <children xmi:id="_1_zkY-r8EeOY6Jei9gSPQw" type="Region" element="_1_zkYur8EeOY6Jei9gSPQw">
+      <children xsi:type="notation:DecorationNode" xmi:id="_1_0LcOr8EeOY6Jei9gSPQw" type="RegionName">
+        <styles xsi:type="notation:ShapeStyle" xmi:id="_1_0Lcer8EeOY6Jei9gSPQw"/>
+        <layoutConstraint xsi:type="notation:Location" xmi:id="_1_0Lcur8EeOY6Jei9gSPQw"/>
+      </children>
+      <children xsi:type="notation:Shape" xmi:id="_1_0Lc-r8EeOY6Jei9gSPQw" type="RegionCompartment" fontName="Verdana" lineColor="4210752">
+        <children xmi:id="_1_0ygur8EeOY6Jei9gSPQw" type="Entry" element="_1_0yger8EeOY6Jei9gSPQw">
+          <children xmi:id="_1_0yher8EeOY6Jei9gSPQw" type="BorderItemLabelContainer">
+            <children xsi:type="notation:DecorationNode" xmi:id="_1_1ZkOr8EeOY6Jei9gSPQw" type="BorderItemLabel">
+              <styles xsi:type="notation:ShapeStyle" xmi:id="_1_1Zker8EeOY6Jei9gSPQw"/>
+              <layoutConstraint xsi:type="notation:Location" xmi:id="_1_1Zkur8EeOY6Jei9gSPQw"/>
+            </children>
+            <styles xsi:type="notation:ShapeStyle" xmi:id="_1_0yhur8EeOY6Jei9gSPQw" fontName="Verdana" lineColor="4210752"/>
+            <layoutConstraint xsi:type="notation:Bounds" xmi:id="_1_0yh-r8EeOY6Jei9gSPQw"/>
+          </children>
+          <styles xsi:type="notation:ShapeStyle" xmi:id="_1_0yg-r8EeOY6Jei9gSPQw" fontName="Verdana" lineColor="4210752"/>
+          <layoutConstraint xsi:type="notation:Bounds" xmi:id="_1_1Zk-r8EeOY6Jei9gSPQw" x="127" y="19"/>
+        </children>
+        <children xsi:type="notation:Shape" xmi:id="_3EsI0Or8EeOY6Jei9gSPQw" type="FinalState" element="_3ErhwOr8EeOY6Jei9gSPQw" fontName="Verdana" lineColor="4210752">
+          <layoutConstraint xsi:type="notation:Bounds" xmi:id="_3EsI0er8EeOY6Jei9gSPQw" x="316" y="273"/>
+        </children>
+        <children xmi:id="_4ouHYOr8EeOY6Jei9gSPQw" type="State" element="_4os5QOr8EeOY6Jei9gSPQw">
+          <children xsi:type="notation:DecorationNode" xmi:id="_4ouucOr8EeOY6Jei9gSPQw" type="StateName">
+            <styles xsi:type="notation:ShapeStyle" xmi:id="_4ouucer8EeOY6Jei9gSPQw"/>
+            <layoutConstraint xsi:type="notation:Location" xmi:id="_4ouucur8EeOY6Jei9gSPQw"/>
+          </children>
+          <children xsi:type="notation:Compartment" xmi:id="_4ouuc-r8EeOY6Jei9gSPQw" type="StateTextCompartment">
+            <children xsi:type="notation:Shape" xmi:id="_4ouudOr8EeOY6Jei9gSPQw" type="StateTextCompartmentExpression" fontName="Verdana" lineColor="4210752">
+              <layoutConstraint xsi:type="notation:Bounds" xmi:id="_4ouuder8EeOY6Jei9gSPQw"/>
+            </children>
+          </children>
+          <children xsi:type="notation:Compartment" xmi:id="_4ouudur8EeOY6Jei9gSPQw" type="StateFigureCompartment">
+            <children xmi:id="_4ovVgur8EeOY6Jei9gSPQw" type="Region" element="_4otgUOr8EeOY6Jei9gSPQw">
+              <children xsi:type="notation:DecorationNode" xmi:id="_4ov8kOr8EeOY6Jei9gSPQw" type="RegionName">
+                <styles xsi:type="notation:ShapeStyle" xmi:id="_4ov8ker8EeOY6Jei9gSPQw"/>
+                <layoutConstraint xsi:type="notation:Location" xmi:id="_4ov8kur8EeOY6Jei9gSPQw"/>
+              </children>
+              <children xsi:type="notation:Shape" xmi:id="_4pEssOr8EeOY6Jei9gSPQw" type="RegionCompartment" fontName="Verdana" lineColor="4210752">
+                <children xmi:id="_34EtkOr8EeOY6Jei9gSPQw" type="State" element="_34DfcOr8EeOY6Jei9gSPQw">
+                  <children xsi:type="notation:DecorationNode" xmi:id="_34FUoOr8EeOY6Jei9gSPQw" type="StateName">
+                    <styles xsi:type="notation:ShapeStyle" xmi:id="_34FUoer8EeOY6Jei9gSPQw"/>
+                    <layoutConstraint xsi:type="notation:Location" xmi:id="_34FUour8EeOY6Jei9gSPQw"/>
+                  </children>
+                  <children xsi:type="notation:Compartment" xmi:id="_34FUo-r8EeOY6Jei9gSPQw" type="StateTextCompartment">
+                    <children xsi:type="notation:Shape" xmi:id="_34FUpOr8EeOY6Jei9gSPQw" type="StateTextCompartmentExpression" fontName="Verdana" lineColor="4210752">
+                      <layoutConstraint xsi:type="notation:Bounds" xmi:id="_34FUper8EeOY6Jei9gSPQw"/>
+                    </children>
+                  </children>
+                  <children xsi:type="notation:Compartment" xmi:id="_34F7sOr8EeOY6Jei9gSPQw" type="StateFigureCompartment">
+                    <children xmi:id="_34F7s-r8EeOY6Jei9gSPQw" type="Region" element="_34EGgOr8EeOY6Jei9gSPQw">
+                      <children xsi:type="notation:DecorationNode" xmi:id="_34GiwOr8EeOY6Jei9gSPQw" type="RegionName">
+                        <styles xsi:type="notation:ShapeStyle" xmi:id="_34Giwer8EeOY6Jei9gSPQw"/>
+                        <layoutConstraint xsi:type="notation:Location" xmi:id="_34Giwur8EeOY6Jei9gSPQw"/>
+                      </children>
+                      <children xsi:type="notation:Shape" xmi:id="_34Giw-r8EeOY6Jei9gSPQw" type="RegionCompartment" fontName="Verdana" lineColor="4210752">
+                        <children xmi:id="_1_2AoOr8EeOY6Jei9gSPQw" type="State" element="_1_1ZlOr8EeOY6Jei9gSPQw">
+                          <children xsi:type="notation:DecorationNode" xmi:id="_1_2ApOr8EeOY6Jei9gSPQw" type="StateName">
+                            <styles xsi:type="notation:ShapeStyle" xmi:id="_1_2Aper8EeOY6Jei9gSPQw"/>
+                            <layoutConstraint xsi:type="notation:Location" xmi:id="_1_2Apur8EeOY6Jei9gSPQw"/>
+                          </children>
+                          <children xsi:type="notation:Compartment" xmi:id="_1_2Ap-r8EeOY6Jei9gSPQw" type="StateTextCompartment">
+                            <children xsi:type="notation:Shape" xmi:id="_1_2AqOr8EeOY6Jei9gSPQw" type="StateTextCompartmentExpression" fontName="Verdana" lineColor="4210752">
+                              <layoutConstraint xsi:type="notation:Bounds" xmi:id="_1_2Aqer8EeOY6Jei9gSPQw"/>
+                            </children>
+                          </children>
+                          <children xsi:type="notation:Compartment" xmi:id="_1_2nsOr8EeOY6Jei9gSPQw" type="StateFigureCompartment"/>
+                          <styles xsi:type="notation:ShapeStyle" xmi:id="_1_2Aoer8EeOY6Jei9gSPQw" fontName="Verdana" fillColor="15981773" lineColor="12632256"/>
+                          <styles xsi:type="notation:FontStyle" xmi:id="_1_2Aour8EeOY6Jei9gSPQw"/>
+                          <styles xsi:type="notation:BooleanValueStyle" xmi:id="_1_2nser8EeOY6Jei9gSPQw" name="isHorizontal" booleanValue="true"/>
+                          <layoutConstraint xsi:type="notation:Bounds" xmi:id="_34HJ0Or8EeOY6Jei9gSPQw" x="48" y="21"/>
+                        </children>
+                        <layoutConstraint xsi:type="notation:Bounds" xmi:id="_34GixOr8EeOY6Jei9gSPQw"/>
+                      </children>
+                      <styles xsi:type="notation:ShapeStyle" xmi:id="_34F7tOr8EeOY6Jei9gSPQw" fontName="Verdana" fillColor="15790320" lineColor="12632256"/>
+                      <layoutConstraint xsi:type="notation:Bounds" xmi:id="_34F7ter8EeOY6Jei9gSPQw"/>
+                    </children>
+                  </children>
+                  <styles xsi:type="notation:ShapeStyle" xmi:id="_34Etker8EeOY6Jei9gSPQw" fontName="Verdana" fillColor="15981773" lineColor="12632256"/>
+                  <styles xsi:type="notation:FontStyle" xmi:id="_34Etkur8EeOY6Jei9gSPQw"/>
+                  <styles xsi:type="notation:BooleanValueStyle" xmi:id="_34F7ser8EeOY6Jei9gSPQw" name="isHorizontal" booleanValue="true"/>
+                  <layoutConstraint xsi:type="notation:Bounds" xmi:id="_4pF60Or8EeOY6Jei9gSPQw" x="48" y="21"/>
+                </children>
+                <layoutConstraint xsi:type="notation:Bounds" xmi:id="_4pEsser8EeOY6Jei9gSPQw"/>
+              </children>
+              <styles xsi:type="notation:ShapeStyle" xmi:id="_4ovVg-r8EeOY6Jei9gSPQw" fontName="Verdana" fillColor="15790320" lineColor="12632256"/>
+              <layoutConstraint xsi:type="notation:Bounds" xmi:id="_4ovVhOr8EeOY6Jei9gSPQw"/>
+            </children>
+          </children>
+          <styles xsi:type="notation:ShapeStyle" xmi:id="_4ouHYer8EeOY6Jei9gSPQw" fontName="Verdana" fillColor="15981773" lineColor="12632256"/>
+          <styles xsi:type="notation:FontStyle" xmi:id="_4ouHYur8EeOY6Jei9gSPQw"/>
+          <styles xsi:type="notation:BooleanValueStyle" xmi:id="_4ovVgOr8EeOY6Jei9gSPQw" name="isHorizontal" booleanValue="true"/>
+          <layoutConstraint xsi:type="notation:Bounds" xmi:id="_4ovVger8EeOY6Jei9gSPQw" x="-12" y="93" width="260" height="273"/>
+        </children>
+        <layoutConstraint xsi:type="notation:Bounds" xmi:id="_1_0LdOr8EeOY6Jei9gSPQw"/>
+      </children>
+      <styles xsi:type="notation:ShapeStyle" xmi:id="_1_zkZOr8EeOY6Jei9gSPQw" fontName="Verdana" fillColor="15790320" lineColor="12632256"/>
+      <layoutConstraint xsi:type="notation:Bounds" xmi:id="_1_0ygOr8EeOY6Jei9gSPQw" x="220" y="10" width="561" height="555"/>
+    </children>
+    <children xsi:type="notation:Shape" xmi:id="_1_3Ox-r8EeOY6Jei9gSPQw" type="StatechartText" fontName="Verdana" lineColor="4210752">
+      <children xsi:type="notation:DecorationNode" xmi:id="_1_310Or8EeOY6Jei9gSPQw" type="StatechartName">
+        <styles xsi:type="notation:ShapeStyle" xmi:id="_1_310er8EeOY6Jei9gSPQw"/>
+        <layoutConstraint xsi:type="notation:Location" xmi:id="_1_310ur8EeOY6Jei9gSPQw"/>
+      </children>
+      <children xsi:type="notation:Shape" xmi:id="_1_310-r8EeOY6Jei9gSPQw" type="StatechartTextExpression" fontName="Verdana" lineColor="4210752">
+        <layoutConstraint xsi:type="notation:Bounds" xmi:id="_1_311Or8EeOY6Jei9gSPQw"/>
+      </children>
+      <layoutConstraint xsi:type="notation:Bounds" xmi:id="_1_311er8EeOY6Jei9gSPQw" x="10" y="10" width="200" height="400"/>
+    </children>
+    <styles xsi:type="notation:DiagramStyle" xmi:id="_1_zkYer8EeOY6Jei9gSPQw"/>
+    <edges xmi:id="_1_3OwOr8EeOY6Jei9gSPQw" type="Transition" element="_1_2ns-r8EeOY6Jei9gSPQw" source="_1_0ygur8EeOY6Jei9gSPQw" target="_1_2AoOr8EeOY6Jei9gSPQw">
+      <children xsi:type="notation:DecorationNode" xmi:id="_1_3OxOr8EeOY6Jei9gSPQw" type="TransitionExpression">
+        <styles xsi:type="notation:ShapeStyle" xmi:id="_1_3Oxer8EeOY6Jei9gSPQw"/>
+        <layoutConstraint xsi:type="notation:Location" xmi:id="_1_3Oxur8EeOY6Jei9gSPQw" y="10"/>
+      </children>
+      <styles xsi:type="notation:ConnectorStyle" xmi:id="_1_3Ower8EeOY6Jei9gSPQw" lineColor="4210752"/>
+      <styles xsi:type="notation:FontStyle" xmi:id="_1_3Ow-r8EeOY6Jei9gSPQw" fontName="Verdana"/>
+      <bendpoints xsi:type="notation:RelativeBendpoints" xmi:id="_1_3Owur8EeOY6Jei9gSPQw" points="[0, 0, 0, 0]$[0, 0, 0, 0]"/>
+    </edges>
+    <edges xmi:id="_3a5pYOr8EeOY6Jei9gSPQw" type="Transition" element="_3a30MOr8EeOY6Jei9gSPQw" source="_1_2AoOr8EeOY6Jei9gSPQw" target="_3EsI0Or8EeOY6Jei9gSPQw">
+      <children xsi:type="notation:DecorationNode" xmi:id="_3a5pZOr8EeOY6Jei9gSPQw" type="TransitionExpression">
+        <styles xsi:type="notation:ShapeStyle" xmi:id="_3a5pZer8EeOY6Jei9gSPQw"/>
+        <layoutConstraint xsi:type="notation:Location" xmi:id="_3a5pZur8EeOY6Jei9gSPQw" y="10"/>
+      </children>
+      <styles xsi:type="notation:ConnectorStyle" xmi:id="_3a5pYer8EeOY6Jei9gSPQw" lineColor="4210752"/>
+      <styles xsi:type="notation:FontStyle" xmi:id="_3a5pY-r8EeOY6Jei9gSPQw" fontName="Verdana"/>
+      <bendpoints xsi:type="notation:RelativeBendpoints" xmi:id="_3a5pYur8EeOY6Jei9gSPQw" points="[18, 3, -265, -52]$[291, 55, 8, 0]"/>
+    </edges>
+  </notation:Diagram>
+</xmi:XMI>

test-plugins/org.yakindu.sct.refactoring.tests/testmodels/refactoring/create_submachine/before.sct → test-plugins/org.yakindu.sct.refactoring.tests/testmodels/refactoring/create_submachine/before_twoEntryPoints.sct


+ 0 - 199
test-plugins/org.yakindu.sct.refactoring.tests/testmodels/refactoring/create_submachine/sub.sct

@@ -1,199 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.2/notation" xmlns:sgraph="http://www.yakindu.org/sct/sgraph/2.0.0">
-  <sgraph:Statechart xmi:id="_2BySgMmqEeGJr-muz4j25w" specification="interface sub:&#xA;in event event1&#xA;in event event2&#xA;in event event3" name="sub">
-    <regions xmi:id="_2By5ksmqEeGJr-muz4j25w" name="main region">
-      <vertices xsi:type="sgraph:Entry" xmi:id="_2BzgpsmqEeGJr-muz4j25w">
-        <outgoingTransitions xmi:id="_DNv9gMmrEeGJr-muz4j25w" specification="" target="_mV0TcMmrEeGJr-muz4j25w"/>
-      </vertices>
-      <vertices xsi:type="sgraph:State" xmi:id="_7F0NEMmqEeGJr-muz4j25w" name="B" incomingTransitions="_tLaSQMmrEeGJr-muz4j25w">
-        <outgoingTransitions xmi:id="_EKJ7YMmrEeGJr-muz4j25w" specification="sub.event3" target="_7u3KEMmqEeGJr-muz4j25w"/>
-        <outgoingTransitions xmi:id="_GR_KkMmrEeGJr-muz4j25w" specification="" target="_8ERZYMmqEeGJr-muz4j25w"/>
-      </vertices>
-      <vertices xsi:type="sgraph:State" xmi:id="_7u3KEMmqEeGJr-muz4j25w" name="C" incomingTransitions="_EKJ7YMmrEeGJr-muz4j25w _vhO6IMmrEeGJr-muz4j25w">
-        <outgoingTransitions xmi:id="_HS-tgMmrEeGJr-muz4j25w" specification="" target="_8ERZYMmqEeGJr-muz4j25w"/>
-      </vertices>
-      <vertices xsi:type="sgraph:State" xmi:id="_8ERZYMmqEeGJr-muz4j25w" name="D" incomingTransitions="_GR_KkMmrEeGJr-muz4j25w _HS-tgMmrEeGJr-muz4j25w">
-        <outgoingTransitions xmi:id="_KmMxwMmrEeGJr-muz4j25w" specification="sub.event3" target="_I1PKcMmrEeGJr-muz4j25w"/>
-      </vertices>
-      <vertices xsi:type="sgraph:FinalState" xmi:id="_I1PKcMmrEeGJr-muz4j25w" incomingTransitions="_KmMxwMmrEeGJr-muz4j25w"/>
-      <vertices xsi:type="sgraph:State" xmi:id="_mV0TcMmrEeGJr-muz4j25w" name="idle" incomingTransitions="_DNv9gMmrEeGJr-muz4j25w">
-        <outgoingTransitions xmi:id="_tLaSQMmrEeGJr-muz4j25w" specification="sub.event1" target="_7F0NEMmqEeGJr-muz4j25w"/>
-        <outgoingTransitions xmi:id="_vhO6IMmrEeGJr-muz4j25w" specification="sub.event2" target="_7u3KEMmqEeGJr-muz4j25w"/>
-      </vertices>
-    </regions>
-  </sgraph:Statechart>
-  <notation:Diagram xmi:id="_2By5kMmqEeGJr-muz4j25w" type="org.yakindu.sct.ui.editor.editor.StatechartDiagramEditor" element="_2BySgMmqEeGJr-muz4j25w" measurementUnit="Pixel">
-    <children xmi:id="_2By5k8mqEeGJr-muz4j25w" type="Region" element="_2By5ksmqEeGJr-muz4j25w">
-      <children xsi:type="notation:DecorationNode" xmi:id="_2BzgoMmqEeGJr-muz4j25w" type="RegionName">
-        <styles xsi:type="notation:ShapeStyle" xmi:id="_2BzgocmqEeGJr-muz4j25w"/>
-        <layoutConstraint xsi:type="notation:Location" xmi:id="_2BzgosmqEeGJr-muz4j25w"/>
-      </children>
-      <children xsi:type="notation:Shape" xmi:id="_2Bzgo8mqEeGJr-muz4j25w" type="RegionCompartment" fontName="Verdana" lineColor="4210752">
-        <children xmi:id="_2Bzgp8mqEeGJr-muz4j25w" type="Entry" element="_2BzgpsmqEeGJr-muz4j25w">
-          <children xmi:id="_2B0HsMmqEeGJr-muz4j25w" type="BorderItemLabelContainer">
-            <children xsi:type="notation:DecorationNode" xmi:id="_2B0Hs8mqEeGJr-muz4j25w" type="BorderItemLabel">
-              <styles xsi:type="notation:ShapeStyle" xmi:id="_2B0HtMmqEeGJr-muz4j25w"/>
-              <layoutConstraint xsi:type="notation:Location" xmi:id="_2B0HtcmqEeGJr-muz4j25w"/>
-            </children>
-            <styles xsi:type="notation:ShapeStyle" xmi:id="_2B0HscmqEeGJr-muz4j25w" fontName="Verdana" lineColor="4210752"/>
-            <layoutConstraint xsi:type="notation:Bounds" xmi:id="_2B0HssmqEeGJr-muz4j25w"/>
-          </children>
-          <styles xsi:type="notation:ShapeStyle" xmi:id="_2BzgqMmqEeGJr-muz4j25w" fontName="Verdana" lineColor="4210752"/>
-          <layoutConstraint xsi:type="notation:Bounds" xmi:id="_2B0HtsmqEeGJr-muz4j25w" x="19" y="99"/>
-        </children>
-        <children xmi:id="_7F66wMmqEeGJr-muz4j25w" type="State" element="_7F0NEMmqEeGJr-muz4j25w">
-          <children xsi:type="notation:DecorationNode" xmi:id="_7F66xMmqEeGJr-muz4j25w" type="StateName">
-            <styles xsi:type="notation:ShapeStyle" xmi:id="_7F66xcmqEeGJr-muz4j25w"/>
-            <layoutConstraint xsi:type="notation:Location" xmi:id="_7F7h0MmqEeGJr-muz4j25w"/>
-          </children>
-          <children xsi:type="notation:Compartment" xmi:id="_7F7h0cmqEeGJr-muz4j25w" type="StateTextCompartment">
-            <children xsi:type="notation:Shape" xmi:id="_7F7h0smqEeGJr-muz4j25w" type="StateTextCompartmentExpression" fontName="Verdana" lineColor="4210752">
-              <layoutConstraint xsi:type="notation:Bounds" xmi:id="_7F7h08mqEeGJr-muz4j25w"/>
-            </children>
-          </children>
-          <children xsi:type="notation:Compartment" xmi:id="_7F7h1MmqEeGJr-muz4j25w" type="StateFigureCompartment"/>
-          <styles xsi:type="notation:ShapeStyle" xmi:id="_7F66wcmqEeGJr-muz4j25w" fontName="Verdana" fillColor="15981773" lineColor="12632256"/>
-          <styles xsi:type="notation:FontStyle" xmi:id="_7F66wsmqEeGJr-muz4j25w"/>
-          <styles xsi:type="notation:BooleanValueStyle" xmi:id="_7F7h1cmqEeGJr-muz4j25w"/>
-          <layoutConstraint xsi:type="notation:Bounds" xmi:id="_7F66w8mqEeGJr-muz4j25w" x="157" y="99"/>
-        </children>
-        <children xmi:id="_7u_F4MmqEeGJr-muz4j25w" type="State" element="_7u3KEMmqEeGJr-muz4j25w">
-          <children xsi:type="notation:DecorationNode" xmi:id="_7u_s8MmqEeGJr-muz4j25w" type="StateName">
-            <styles xsi:type="notation:ShapeStyle" xmi:id="_7u_s8cmqEeGJr-muz4j25w"/>
-            <layoutConstraint xsi:type="notation:Location" xmi:id="_7u_s8smqEeGJr-muz4j25w"/>
-          </children>
-          <children xsi:type="notation:Compartment" xmi:id="_7u_s88mqEeGJr-muz4j25w" type="StateTextCompartment">
-            <children xsi:type="notation:Shape" xmi:id="_7u_s9MmqEeGJr-muz4j25w" type="StateTextCompartmentExpression" fontName="Verdana" lineColor="4210752">
-              <layoutConstraint xsi:type="notation:Bounds" xmi:id="_7u_s9cmqEeGJr-muz4j25w"/>
-            </children>
-          </children>
-          <children xsi:type="notation:Compartment" xmi:id="_7u_s9smqEeGJr-muz4j25w" type="StateFigureCompartment"/>
-          <styles xsi:type="notation:ShapeStyle" xmi:id="_7u_F4cmqEeGJr-muz4j25w" fontName="Verdana" fillColor="15981773" lineColor="12632256"/>
-          <styles xsi:type="notation:FontStyle" xmi:id="_7u_F4smqEeGJr-muz4j25w"/>
-          <styles xsi:type="notation:BooleanValueStyle" xmi:id="_7u_s98mqEeGJr-muz4j25w"/>
-          <layoutConstraint xsi:type="notation:Bounds" xmi:id="_7u_F48mqEeGJr-muz4j25w" x="158" y="215"/>
-        </children>
-        <children xmi:id="_8Ec_kMmqEeGJr-muz4j25w" type="State" element="_8ERZYMmqEeGJr-muz4j25w">
-          <children xsi:type="notation:DecorationNode" xmi:id="_8EdmoMmqEeGJr-muz4j25w" type="StateName">
-            <styles xsi:type="notation:ShapeStyle" xmi:id="_8EdmocmqEeGJr-muz4j25w"/>
-            <layoutConstraint xsi:type="notation:Location" xmi:id="_8EdmosmqEeGJr-muz4j25w"/>
-          </children>
-          <children xsi:type="notation:Compartment" xmi:id="_8Edmo8mqEeGJr-muz4j25w" type="StateTextCompartment">
-            <children xsi:type="notation:Shape" xmi:id="_8EdmpMmqEeGJr-muz4j25w" type="StateTextCompartmentExpression" fontName="Verdana" lineColor="4210752">
-              <layoutConstraint xsi:type="notation:Bounds" xmi:id="_8EdmpcmqEeGJr-muz4j25w"/>
-            </children>
-          </children>
-          <children xsi:type="notation:Compartment" xmi:id="_8EeNsMmqEeGJr-muz4j25w" type="StateFigureCompartment"/>
-          <styles xsi:type="notation:ShapeStyle" xmi:id="_8Ec_kcmqEeGJr-muz4j25w" fontName="Verdana" fillColor="15981773" lineColor="12632256"/>
-          <styles xsi:type="notation:FontStyle" xmi:id="_8Ec_ksmqEeGJr-muz4j25w"/>
-          <styles xsi:type="notation:BooleanValueStyle" xmi:id="_8EeNscmqEeGJr-muz4j25w"/>
-          <layoutConstraint xsi:type="notation:Bounds" xmi:id="_8Ec_k8mqEeGJr-muz4j25w" x="296" y="167"/>
-        </children>
-        <children xsi:type="notation:Shape" xmi:id="_I1V4IMmrEeGJr-muz4j25w" type="FinalState" element="_I1PKcMmrEeGJr-muz4j25w" fontName="Verdana" lineColor="4210752">
-          <layoutConstraint xsi:type="notation:Bounds" xmi:id="_I1V4IcmrEeGJr-muz4j25w" x="394" y="183"/>
-        </children>
-        <children xmi:id="_mV7BIMmrEeGJr-muz4j25w" type="State" element="_mV0TcMmrEeGJr-muz4j25w">
-          <children xsi:type="notation:DecorationNode" xmi:id="_mV7BJMmrEeGJr-muz4j25w" type="StateName">
-            <styles xsi:type="notation:ShapeStyle" xmi:id="_mV7BJcmrEeGJr-muz4j25w"/>
-            <layoutConstraint xsi:type="notation:Location" xmi:id="_mV7BJsmrEeGJr-muz4j25w"/>
-          </children>
-          <children xsi:type="notation:Compartment" xmi:id="_mV7BJ8mrEeGJr-muz4j25w" type="StateTextCompartment">
-            <children xsi:type="notation:Shape" xmi:id="_mV7BKMmrEeGJr-muz4j25w" type="StateTextCompartmentExpression" fontName="Verdana" lineColor="4210752">
-              <layoutConstraint xsi:type="notation:Bounds" xmi:id="_mV7BKcmrEeGJr-muz4j25w"/>
-            </children>
-          </children>
-          <children xsi:type="notation:Compartment" xmi:id="_mV7oMMmrEeGJr-muz4j25w" type="StateFigureCompartment"/>
-          <styles xsi:type="notation:ShapeStyle" xmi:id="_mV7BIcmrEeGJr-muz4j25w" fontName="Verdana" fillColor="15981773" lineColor="12632256"/>
-          <styles xsi:type="notation:FontStyle" xmi:id="_mV7BIsmrEeGJr-muz4j25w"/>
-          <styles xsi:type="notation:BooleanValueStyle" xmi:id="_mV7oMcmrEeGJr-muz4j25w"/>
-          <layoutConstraint xsi:type="notation:Bounds" xmi:id="_mV7BI8mrEeGJr-muz4j25w" x="9" y="155"/>
-        </children>
-        <layoutConstraint xsi:type="notation:Bounds" xmi:id="_2BzgpMmqEeGJr-muz4j25w"/>
-      </children>
-      <styles xsi:type="notation:ShapeStyle" xmi:id="_2By5lMmqEeGJr-muz4j25w" fontName="Verdana" fillColor="15790320" lineColor="12632256"/>
-      <layoutConstraint xsi:type="notation:Bounds" xmi:id="_2BzgpcmqEeGJr-muz4j25w" x="220" y="10" width="461" height="400"/>
-    </children>
-    <children xsi:type="notation:Shape" xmi:id="_2B185MmqEeGJr-muz4j25w" type="StatechartText" fontName="Verdana" lineColor="4210752">
-      <children xsi:type="notation:DecorationNode" xmi:id="_2B185smqEeGJr-muz4j25w" type="StatechartName">
-        <styles xsi:type="notation:ShapeStyle" xmi:id="_2B1858mqEeGJr-muz4j25w"/>
-        <layoutConstraint xsi:type="notation:Location" xmi:id="_2B186MmqEeGJr-muz4j25w"/>
-      </children>
-      <children xsi:type="notation:Shape" xmi:id="_2B186cmqEeGJr-muz4j25w" type="StatechartTextExpression" fontName="Verdana" lineColor="4210752">
-        <layoutConstraint xsi:type="notation:Bounds" xmi:id="_2B186smqEeGJr-muz4j25w"/>
-      </children>
-      <layoutConstraint xsi:type="notation:Bounds" xmi:id="_2B2j8MmqEeGJr-muz4j25w" x="10" y="10" width="200" height="400"/>
-    </children>
-    <styles xsi:type="notation:DiagramStyle" xmi:id="_2By5kcmqEeGJr-muz4j25w"/>
-    <edges xmi:id="_DN1dEMmrEeGJr-muz4j25w" type="Transition" element="_DNv9gMmrEeGJr-muz4j25w" source="_2Bzgp8mqEeGJr-muz4j25w" target="_mV7BIMmrEeGJr-muz4j25w">
-      <children xsi:type="notation:DecorationNode" xmi:id="_DN1dFMmrEeGJr-muz4j25w" type="TransitionExpression">
-        <styles xsi:type="notation:ShapeStyle" xmi:id="_DN1dFcmrEeGJr-muz4j25w"/>
-        <layoutConstraint xsi:type="notation:Location" xmi:id="_DN1dFsmrEeGJr-muz4j25w" y="10"/>
-      </children>
-      <styles xsi:type="notation:ConnectorStyle" xmi:id="_DN1dEcmrEeGJr-muz4j25w" lineColor="4210752"/>
-      <styles xsi:type="notation:FontStyle" xmi:id="_DN1dE8mrEeGJr-muz4j25w" fontName="Verdana"/>
-      <bendpoints xsi:type="notation:RelativeBendpoints" xmi:id="_DN1dEsmrEeGJr-muz4j25w" points="[0, 7, -3, -89]$[1, 120, -2, 24]"/>
-    </edges>
-    <edges xmi:id="_EKOM0MmrEeGJr-muz4j25w" type="Transition" element="_EKJ7YMmrEeGJr-muz4j25w" source="_7F66wMmqEeGJr-muz4j25w" target="_7u_F4MmqEeGJr-muz4j25w">
-      <children xsi:type="notation:DecorationNode" xmi:id="_EKOM1MmrEeGJr-muz4j25w" type="TransitionExpression">
-        <styles xsi:type="notation:ShapeStyle" xmi:id="_EKOM1cmrEeGJr-muz4j25w"/>
-        <layoutConstraint xsi:type="notation:Location" xmi:id="_EKOM1smrEeGJr-muz4j25w" x="-3" y="-31"/>
-      </children>
-      <styles xsi:type="notation:ConnectorStyle" xmi:id="_EKOM0cmrEeGJr-muz4j25w" lineColor="4210752"/>
-      <styles xsi:type="notation:FontStyle" xmi:id="_EKOM08mrEeGJr-muz4j25w" fontName="Verdana"/>
-      <bendpoints xsi:type="notation:RelativeBendpoints" xmi:id="_EKOM0smrEeGJr-muz4j25w" points="[-5, 0, -6, -92]$[-5, 116, -6, 24]"/>
-      <sourceAnchor xsi:type="notation:IdentityAnchor" xmi:id="_EKVhkMmrEeGJr-muz4j25w" id="(0.4,1.0)"/>
-    </edges>
-    <edges xmi:id="_GSEqIMmrEeGJr-muz4j25w" type="Transition" element="_GR_KkMmrEeGJr-muz4j25w" source="_7F66wMmqEeGJr-muz4j25w" target="_8Ec_kMmqEeGJr-muz4j25w">
-      <children xsi:type="notation:DecorationNode" xmi:id="_GSEqJMmrEeGJr-muz4j25w" type="TransitionExpression">
-        <styles xsi:type="notation:ShapeStyle" xmi:id="_GSEqJcmrEeGJr-muz4j25w"/>
-        <layoutConstraint xsi:type="notation:Location" xmi:id="_GSEqJsmrEeGJr-muz4j25w" y="10"/>
-      </children>
-      <styles xsi:type="notation:ConnectorStyle" xmi:id="_GSEqIcmrEeGJr-muz4j25w" lineColor="4210752"/>
-      <styles xsi:type="notation:FontStyle" xmi:id="_GSEqI8mrEeGJr-muz4j25w" fontName="Verdana"/>
-      <bendpoints xsi:type="notation:RelativeBendpoints" xmi:id="_GSEqIsmrEeGJr-muz4j25w" points="[0, 0, -107, -59]$[108, 41, 1, -18]"/>
-      <sourceAnchor xsi:type="notation:IdentityAnchor" xmi:id="_GSLX0MmrEeGJr-muz4j25w" id="(1.0,0.5660377358490566)"/>
-      <targetAnchor xsi:type="notation:IdentityAnchor" xmi:id="_GSLX0cmrEeGJr-muz4j25w" id="(0.175,0.37735849056603776)"/>
-    </edges>
-    <edges xmi:id="_HTC-8MmrEeGJr-muz4j25w" type="Transition" element="_HS-tgMmrEeGJr-muz4j25w" source="_7u_F4MmqEeGJr-muz4j25w" target="_8Ec_kMmqEeGJr-muz4j25w">
-      <children xsi:type="notation:DecorationNode" xmi:id="_HTC-9MmrEeGJr-muz4j25w" type="TransitionExpression">
-        <styles xsi:type="notation:ShapeStyle" xmi:id="_HTC-9cmrEeGJr-muz4j25w"/>
-        <layoutConstraint xsi:type="notation:Location" xmi:id="_HTC-9smrEeGJr-muz4j25w" y="10"/>
-      </children>
-      <styles xsi:type="notation:ConnectorStyle" xmi:id="_HTC-8cmrEeGJr-muz4j25w" lineColor="4210752"/>
-      <styles xsi:type="notation:FontStyle" xmi:id="_HTC-88mrEeGJr-muz4j25w" fontName="Verdana"/>
-      <bendpoints xsi:type="notation:RelativeBendpoints" xmi:id="_HTC-8smrEeGJr-muz4j25w" points="[0, 0, -120, 57]$[121, -81, 1, -24]"/>
-      <sourceAnchor xsi:type="notation:IdentityAnchor" xmi:id="_HTKTsMmrEeGJr-muz4j25w" id="(1.0,0.6981132075471698)"/>
-    </edges>
-    <edges xmi:id="_KmRDMMmrEeGJr-muz4j25w" type="Transition" element="_KmMxwMmrEeGJr-muz4j25w" source="_8Ec_kMmqEeGJr-muz4j25w" target="_I1V4IMmrEeGJr-muz4j25w">
-      <children xsi:type="notation:DecorationNode" xmi:id="_KmRDNMmrEeGJr-muz4j25w" type="TransitionExpression">
-        <styles xsi:type="notation:ShapeStyle" xmi:id="_KmRDNcmrEeGJr-muz4j25w"/>
-        <layoutConstraint xsi:type="notation:Location" xmi:id="_KmRDNsmrEeGJr-muz4j25w" y="10"/>
-      </children>
-      <styles xsi:type="notation:ConnectorStyle" xmi:id="_KmRDMcmrEeGJr-muz4j25w" lineColor="4210752"/>
-      <styles xsi:type="notation:FontStyle" xmi:id="_KmRDM8mrEeGJr-muz4j25w" fontName="Verdana"/>
-      <bendpoints xsi:type="notation:RelativeBendpoints" xmi:id="_KmRDMsmrEeGJr-muz4j25w" points="[0, -4, -70, 1]$[63, -4, -7, 1]"/>
-      <sourceAnchor xsi:type="notation:IdentityAnchor" xmi:id="_KmZmEMmrEeGJr-muz4j25w" id="(1.0,0.6037735849056604)"/>
-    </edges>
-    <edges xmi:id="_tLcugMmrEeGJr-muz4j25w" type="Transition" element="_tLaSQMmrEeGJr-muz4j25w" source="_mV7BIMmrEeGJr-muz4j25w" target="_7F66wMmqEeGJr-muz4j25w">
-      <children xsi:type="notation:DecorationNode" xmi:id="_tLcuhMmrEeGJr-muz4j25w" type="TransitionExpression">
-        <styles xsi:type="notation:ShapeStyle" xmi:id="_tLcuhcmrEeGJr-muz4j25w"/>
-        <layoutConstraint xsi:type="notation:Location" xmi:id="_tLcuhsmrEeGJr-muz4j25w" x="-3" y="-18"/>
-      </children>
-      <styles xsi:type="notation:ConnectorStyle" xmi:id="_tLcugcmrEeGJr-muz4j25w" lineColor="4210752"/>
-      <styles xsi:type="notation:FontStyle" xmi:id="_tLcug8mrEeGJr-muz4j25w" fontName="Verdana"/>
-      <bendpoints xsi:type="notation:RelativeBendpoints" xmi:id="_tLcugsmrEeGJr-muz4j25w" points="[0, 0, -130, 63]$[124, -87, -6, -24]"/>
-      <sourceAnchor xsi:type="notation:IdentityAnchor" xmi:id="_tLgY4MmrEeGJr-muz4j25w" id="(1.0,0.660377358490566)"/>
-    </edges>
-    <edges xmi:id="_vhRWYMmrEeGJr-muz4j25w" type="Transition" element="_vhO6IMmrEeGJr-muz4j25w" source="_mV7BIMmrEeGJr-muz4j25w" target="_7u_F4MmqEeGJr-muz4j25w">
-      <children xsi:type="notation:DecorationNode" xmi:id="_vhR9ccmrEeGJr-muz4j25w" type="TransitionExpression">
-        <styles xsi:type="notation:ShapeStyle" xmi:id="_vhR9csmrEeGJr-muz4j25w"/>
-        <layoutConstraint xsi:type="notation:Location" xmi:id="_vhR9c8mrEeGJr-muz4j25w" x="-7" y="15"/>
-      </children>
-      <styles xsi:type="notation:ConnectorStyle" xmi:id="_vhRWYcmrEeGJr-muz4j25w" lineColor="4210752"/>
-      <styles xsi:type="notation:FontStyle" xmi:id="_vhR9cMmrEeGJr-muz4j25w" fontName="Verdana"/>
-      <bendpoints xsi:type="notation:RelativeBendpoints" xmi:id="_vhRWYsmrEeGJr-muz4j25w" points="[0, 0, -120, -33]$[121, 12, 1, -21]"/>
-      <sourceAnchor xsi:type="notation:IdentityAnchor" xmi:id="_vhVn0MmrEeGJr-muz4j25w" id="(1.0,1.0)"/>
-      <targetAnchor xsi:type="notation:IdentityAnchor" xmi:id="_vhVn0cmrEeGJr-muz4j25w" id="(0.175,0.4528301886792453)"/>
-    </edges>
-  </notation:Diagram>
-</xmi:XMI>