From d9667269846ea021b3e6d3c107d07b78f957d69f Mon Sep 17 00:00:00 2001 From: Florian Lambers <fl462057@fh-muenster.de> Date: Tue, 14 Dec 2021 20:02:07 +0100 Subject: [PATCH] added getStartFlowElements --- .../serialization/TestgeneratorDSLSerializer.java | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 53050e2..50160c6 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) // -- GitLab