diff --git a/de.fhmuenster.masterthesis.textgeneratordsl/src/de/fhmuenster/masterthesis/serialization/TestgeneratorDSLSerializer.java b/de.fhmuenster.masterthesis.textgeneratordsl/src/de/fhmuenster/masterthesis/serialization/TestgeneratorDSLSerializer.java index 53050e29d40c59cf8d8c640d116c00aa3cf15eb4..50160c6404dcc74e2620a13d2b513a0031b676f2 100644 --- a/de.fhmuenster.masterthesis.textgeneratordsl/src/de/fhmuenster/masterthesis/serialization/TestgeneratorDSLSerializer.java +++ b/de.fhmuenster.masterthesis.textgeneratordsl/src/de/fhmuenster/masterthesis/serialization/TestgeneratorDSLSerializer.java @@ -43,6 +43,7 @@ import de.fhmuenster.masterthesis.testgeneratorDSL.Mock; import de.fhmuenster.masterthesis.testgeneratorDSL.MockReference; import de.fhmuenster.masterthesis.testgeneratorDSL.Model; import de.fhmuenster.masterthesis.testgeneratorDSL.ServiceTaskFlowElement; +import de.fhmuenster.masterthesis.testgeneratorDSL.StartFlowElement; import de.fhmuenster.masterthesis.testgeneratorDSL.StringVariable; import de.fhmuenster.masterthesis.testgeneratorDSL.Test; import de.fhmuenster.masterthesis.testgeneratorDSL.TestgeneratorDSLFactory; @@ -147,6 +148,15 @@ public class TestgeneratorDSLSerializer { return userTaskElements; } + public List<StartFlowElement> getStartFlowElements() { + List<StartFlowElement> startFlowElements = model.getDeclarations().stream() // + .filter(d -> d instanceof StartFlowElement) // + .map(f -> ((StartFlowElement) f)) // + .collect(Collectors.toList()); // + + return startFlowElements; + } + public List<FlowElement> getFlowElements() { return model.getDeclarations().stream() // .filter(decl -> decl instanceof FlowElement) //