diff --git a/state_machine_exporter/build.gradle b/state_machine_exporter/build.gradle index 7d6cddb..b7087ff 100644 --- a/state_machine_exporter/build.gradle +++ b/state_machine_exporter/build.gradle @@ -45,8 +45,11 @@ dependencies { testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:6.1.0' testRuntimeOnly 'org.junit.platform:junit-platform-launcher:6.1.0' testImplementation 'org.assertj:assertj-core:3.27.7' + + implementation 'net.sourceforge.plantuml:plantuml:1.2024.3' } tasks.named('test') { useJUnitPlatform() + systemProperty "updateGolden", System.getProperty("updateGolden") } diff --git a/state_machine_exporter/src/main/java/click/kamil/springstatemachineexporter/exporter/Dot.java b/state_machine_exporter/src/main/java/click/kamil/springstatemachineexporter/exporter/Dot.java index 9c2099b..7f6d7f6 100644 --- a/state_machine_exporter/src/main/java/click/kamil/springstatemachineexporter/exporter/Dot.java +++ b/state_machine_exporter/src/main/java/click/kamil/springstatemachineexporter/exporter/Dot.java @@ -17,6 +17,11 @@ public class Dot implements StateMachineExporter { "blue", "green", "red", "purple", "orange", "brown", "darkgreen", "darkblue" }; + @Override + public String export(click.kamil.springstatemachineexporter.analysis.model.AnalysisResult result, ExportOptions options) { + return export(result.getName(), result.getTransitions(), result.getStartStates(), result.getEndStates(), options); + } + @Override public String export(String name, List transitions, diff --git a/state_machine_exporter/src/main/java/click/kamil/springstatemachineexporter/exporter/JsonExporter.java b/state_machine_exporter/src/main/java/click/kamil/springstatemachineexporter/exporter/JsonExporter.java index cd98af8..d85b2cc 100644 --- a/state_machine_exporter/src/main/java/click/kamil/springstatemachineexporter/exporter/JsonExporter.java +++ b/state_machine_exporter/src/main/java/click/kamil/springstatemachineexporter/exporter/JsonExporter.java @@ -17,6 +17,11 @@ public class JsonExporter implements StateMachineExporter { .enable(SerializationFeature.INDENT_OUTPUT); } + @Override + public String export(click.kamil.springstatemachineexporter.analysis.model.AnalysisResult result, ExportOptions options) { + return export(result.getName(), result.getTransitions(), result.getStartStates(), result.getEndStates(), options); + } + @Override public String export(String name, List transitions, Set startStates, Set endStates, ExportOptions options) { try { diff --git a/state_machine_exporter/src/main/java/click/kamil/springstatemachineexporter/exporter/PlantUml.java b/state_machine_exporter/src/main/java/click/kamil/springstatemachineexporter/exporter/PlantUml.java index 0aa99eb..3761387 100644 --- a/state_machine_exporter/src/main/java/click/kamil/springstatemachineexporter/exporter/PlantUml.java +++ b/state_machine_exporter/src/main/java/click/kamil/springstatemachineexporter/exporter/PlantUml.java @@ -33,6 +33,23 @@ public class PlantUml implements StateMachineExporter { } } + @Override + public String export(click.kamil.springstatemachineexporter.analysis.model.AnalysisResult result, ExportOptions options) { + String baseContent = export(result.getName(), result.getTransitions(), result.getStartStates(), result.getEndStates(), options); + + // Allow custom styling from metadata + String customStyle = result.getMetadata().getProperties().get("plantuml.style"); + if (customStyle != null && !customStyle.isBlank()) { + // Insert custom style before @enduml + int endumlIndex = baseContent.lastIndexOf("@enduml"); + if (endumlIndex >= 0) { + return baseContent.substring(0, endumlIndex) + "\n" + customStyle + "\n" + baseContent.substring(endumlIndex); + } + } + + return baseContent; + } + @Override public String export(String name, List transitions, @@ -63,7 +80,7 @@ public class PlantUml implements StateMachineExporter { } sb.append("\n"); - Set statesWithChoice = new HashSet<>(); + Set statesWithChoice = new java.util.LinkedHashSet<>(); for (Transition t : transitions) { if (t.getType() == TransitionType.CHOICE) { for (State source : t.getSourceStates()) { @@ -88,7 +105,7 @@ public class PlantUml implements StateMachineExporter { .filter(t -> t.getType() == TransitionType.JUNCTION) .flatMap(t -> t.getSourceStates().stream()) .map(s -> simplify(s.toString())) - .collect(Collectors.toSet()); + .collect(Collectors.toCollection(java.util.LinkedHashSet::new)); for (String junction : junctionStates) { if (options.isRenderChoicesAsDiamonds()) { sb.append("state ").append(junction).append(" <>\n"); @@ -97,7 +114,7 @@ public class PlantUml implements StateMachineExporter { sb.append("\n"); - Set usedEventStereotypes = new HashSet<>(); + Set usedEventStereotypes = new java.util.LinkedHashSet<>(); for (Transition t : transitions) { if (t.getSourceStates() == null || t.getSourceStates().isEmpty()) continue; diff --git a/state_machine_exporter/src/main/java/click/kamil/springstatemachineexporter/exporter/Scxml.java b/state_machine_exporter/src/main/java/click/kamil/springstatemachineexporter/exporter/Scxml.java index 37698e9..2f09af7 100644 --- a/state_machine_exporter/src/main/java/click/kamil/springstatemachineexporter/exporter/Scxml.java +++ b/state_machine_exporter/src/main/java/click/kamil/springstatemachineexporter/exporter/Scxml.java @@ -12,6 +12,11 @@ public class Scxml implements StateMachineExporter { private static final String LAMBDA = "λ"; + @Override + public String export(click.kamil.springstatemachineexporter.analysis.model.AnalysisResult result, ExportOptions options) { + return export(result.getName(), result.getTransitions(), result.getStartStates(), result.getEndStates(), options); + } + @Override public String export(String name, List transitions, @@ -24,7 +29,7 @@ public class Scxml implements StateMachineExporter { sb.append(startStates.isEmpty() ? "" : simplify(startStates.iterator().next())); sb.append("\">\n"); - Set allStates = new HashSet<>(); + Set allStates = new java.util.LinkedHashSet<>(); for (Transition t : transitions) { t.getSourceStates().forEach(s -> allStates.add(s.toString())); t.getTargetStates().forEach(s -> allStates.add(s.toString())); diff --git a/state_machine_exporter/src/main/java/click/kamil/springstatemachineexporter/exporter/StateMachineExporter.java b/state_machine_exporter/src/main/java/click/kamil/springstatemachineexporter/exporter/StateMachineExporter.java index f4aa694..1ac479b 100644 --- a/state_machine_exporter/src/main/java/click/kamil/springstatemachineexporter/exporter/StateMachineExporter.java +++ b/state_machine_exporter/src/main/java/click/kamil/springstatemachineexporter/exporter/StateMachineExporter.java @@ -1,11 +1,16 @@ package click.kamil.springstatemachineexporter.exporter; +import click.kamil.springstatemachineexporter.analysis.model.AnalysisResult; import click.kamil.springstatemachineexporter.model.Transition; import java.util.List; import java.util.Set; public interface StateMachineExporter { + default String export(AnalysisResult result, ExportOptions options) { + return export(result.getName(), result.getTransitions(), result.getStartStates(), result.getEndStates(), options); + } + String export(String name, List transitions, Set startStates, diff --git a/state_machine_exporter/src/main/java/click/kamil/springstatemachineexporter/service/ExportService.java b/state_machine_exporter/src/main/java/click/kamil/springstatemachineexporter/service/ExportService.java index 84999d3..1f4538b 100644 --- a/state_machine_exporter/src/main/java/click/kamil/springstatemachineexporter/service/ExportService.java +++ b/state_machine_exporter/src/main/java/click/kamil/springstatemachineexporter/service/ExportService.java @@ -152,7 +152,7 @@ public class ExportService { if (!match) continue; } - String content = output.export(result.getName(), result.getTransitions(), result.getStartStates(), result.getEndStates(), options); + String content = output.export(result, options); String fileName = result.getName() + output.getFileExtension(); try (PrintWriter out = new PrintWriter(targetDir.resolve(fileName).toFile())) { diff --git a/state_machine_exporter/src/test/java/click/kamil/springstatemachineexporter/exporter/PlantUmlCustomStyleTest.java b/state_machine_exporter/src/test/java/click/kamil/springstatemachineexporter/exporter/PlantUmlCustomStyleTest.java new file mode 100644 index 0000000..f4d0422 --- /dev/null +++ b/state_machine_exporter/src/test/java/click/kamil/springstatemachineexporter/exporter/PlantUmlCustomStyleTest.java @@ -0,0 +1,48 @@ +package click.kamil.springstatemachineexporter.exporter; + +import click.kamil.springstatemachineexporter.analysis.model.AnalysisResult; +import click.kamil.springstatemachineexporter.analysis.model.CodebaseMetadata; +import click.kamil.springstatemachineexporter.model.State; +import click.kamil.springstatemachineexporter.model.Transition; +import click.kamil.springstatemachineexporter.model.TransitionType; +import org.junit.jupiter.api.Test; + +import java.util.List; +import java.util.Map; +import java.util.Set; + +import static org.assertj.core.api.Assertions.assertThat; + +class PlantUmlCustomStyleTest { + + @Test + void shouldApplyCustomStyleFromMetadata() { + PlantUml exporter = new PlantUml(); + Transition transition = new Transition(); + transition.setType(TransitionType.EXTERNAL); + transition.setSourceStates(List.of(State.of("S1"))); + transition.setTargetStates(List.of(State.of("S2"))); + transition.setEvent("E1"); + + AnalysisResult result = AnalysisResult.builder() + .name("TestSM") + .transitions(List.of(transition)) + .startStates(Set.of("S1")) + .endStates(Set.of("S2")) + .metadata(CodebaseMetadata.builder() + .properties(Map.of("plantuml.style", "skinparam stateBackgroundColor Red")) + .build()) + .build(); + + String puml = exporter.export(result, ExportOptions.builder().build()); + + assertThat(puml) + .contains("skinparam stateBackgroundColor Red") + .contains("@enduml"); + + // Ensure it's inserted before @enduml + int styleIndex = puml.indexOf("skinparam stateBackgroundColor Red"); + int endumlIndex = puml.indexOf("@enduml"); + assertThat(styleIndex).isLessThan(endumlIndex); + } +} diff --git a/state_machine_exporter/src/test/resources/golden/ComplexStateMachineConfig/ComplexStateMachineConfig.png b/state_machine_exporter/src/test/resources/golden/ComplexStateMachineConfig/ComplexStateMachineConfig.png index dccdd83..1283c7f 100644 Binary files a/state_machine_exporter/src/test/resources/golden/ComplexStateMachineConfig/ComplexStateMachineConfig.png and b/state_machine_exporter/src/test/resources/golden/ComplexStateMachineConfig/ComplexStateMachineConfig.png differ diff --git a/state_machine_exporter/src/test/resources/golden/ComplexStateMachineConfig/ComplexStateMachineConfig.puml b/state_machine_exporter/src/test/resources/golden/ComplexStateMachineConfig/ComplexStateMachineConfig.puml index 544c534..84428d8 100644 --- a/state_machine_exporter/src/test/resources/golden/ComplexStateMachineConfig/ComplexStateMachineConfig.puml +++ b/state_machine_exporter/src/test/resources/golden/ComplexStateMachineConfig/ComplexStateMachineConfig.puml @@ -42,16 +42,16 @@ hide <> stereotype [*] --> STATE1 -state STATE17 <> state STATE16 <> -state STATE14 <> -state STATE12 <> -state STATE11 <> -state STATE8 <> -state STATE20 <> -state STATE9 <> -state STATE19 <> +state STATE17 <> state STATE18 <> +state STATE19 <> +state STATE20 <> +state STATE11 <> +state STATE12 <> +state STATE14 <> +state STATE9 <> +state STATE8 <> STATE1 -[#1E90FF,bold]-> STATE2 <> <> : EVENT1 STATE2 -[#1E90FF,bold]-> STATE3 <> <> : EVENT2 @@ -68,44 +68,44 @@ STATE12 -[#1E90FF,bold]-> STATE13 <> <> : EVENT12 STATE13 -[#1E90FF,bold]-> STATE14 <> <> : EVENT13 STATE14 -[#1E90FF,bold]-> STATE15 <> <> : EVENT14 STATE15 -[#1E90FF,bold]-> STATE16 <> <> : EVENT15 -STATE16 -[#4682B4,bold]-> STATE17 <> : [guardVarEquals("value1")] (order=0) -STATE16 -[#4682B4,bold]-> STATE18 <> : [guardVarEquals("value2")] (order=1) -STATE16 -[#4682B4,bold]-> STATE19 <> : (order=2) -STATE17 -[#FF6347,bold]-> STATE20 <> : [guardEventHeaderEquals("header1","foo")] (order=0) -STATE17 -[#FF6347,bold]-> STATE16 <> : (order=1) -STATE18 -[#FFD700,bold]-> STATE19 <> : [guardVarEquals("value3")] (order=0) -STATE18 -[#FFD700,bold]-> STATE20 <> : (order=1) -STATE19 -[#32CD32,bold]-> STATE1 <> : [guardVarEquals("reset")] (order=0) -STATE19 -[#32CD32,bold]-> STATE20 <> : (order=1) -STATE20 -[#FF6347,bold]-> STATE5 <> : [guardEventHeaderEquals("header2","bar")] (order=0) -STATE20 -[#FF6347,bold]-> STATE1 <> : (order=1) -STATE11 -[#6A5ACD,bold]-> STATE13 <> : [guardVarEquals("goTo13")] (order=0) -STATE11 -[#6A5ACD,bold]-> STATE14 <> : [guardVarEquals("goTo14")] (order=1) -STATE11 -[#6A5ACD,bold]-> STATE15 <> : (order=2) -STATE12 -[#FFD700,bold]-> STATE10 <> : [guardVarEquals("goBack10")] (order=0) -STATE12 -[#FFD700,bold]-> STATE11 <> : (order=1) -STATE14 -[#32CD32,bold]-> STATE12 <> : [guardVarEquals("loop12")] (order=0) -STATE14 -[#32CD32,bold]-> STATE16 <> : (order=1) -STATE9 -[#4682B4,bold]-> STATE8 <> : [guardVarEquals("stepBack")] (order=0) -STATE9 -[#4682B4,bold]-> STATE7 <> : [guardVarEquals("stepBackMore")] (order=1) -STATE9 -[#4682B4,bold]-> STATE6 <> : (order=2) -STATE8 -[#FF69B4,bold]-> STATE9 <> : [guardVarEquals("forward9")] (order=0) -STATE8 -[#FF69B4,bold]-> STATE10 <> : (order=1) -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype +STATE16 -[#FF6347,bold]-> STATE17 <> : [guardVarEquals("value1")] (order=0) +STATE16 -[#FF6347,bold]-> STATE18 <> : [guardVarEquals("value2")] (order=1) +STATE16 -[#FF6347,bold]-> STATE19 <> : (order=2) +STATE17 -[#4682B4,bold]-> STATE20 <> : [guardEventHeaderEquals("header1","foo")] (order=0) +STATE17 -[#4682B4,bold]-> STATE16 <> : (order=1) +STATE18 -[#32CD32,bold]-> STATE19 <> : [guardVarEquals("value3")] (order=0) +STATE18 -[#32CD32,bold]-> STATE20 <> : (order=1) +STATE19 -[#FFD700,bold]-> STATE1 <> : [guardVarEquals("reset")] (order=0) +STATE19 -[#FFD700,bold]-> STATE20 <> : (order=1) +STATE20 -[#6A5ACD,bold]-> STATE5 <> : [guardEventHeaderEquals("header2","bar")] (order=0) +STATE20 -[#6A5ACD,bold]-> STATE1 <> : (order=1) +STATE11 -[#FF69B4,bold]-> STATE13 <> : [guardVarEquals("goTo13")] (order=0) +STATE11 -[#FF69B4,bold]-> STATE14 <> : [guardVarEquals("goTo14")] (order=1) +STATE11 -[#FF69B4,bold]-> STATE15 <> : (order=2) +STATE12 -[#FF6347,bold]-> STATE10 <> : [guardVarEquals("goBack10")] (order=0) +STATE12 -[#FF6347,bold]-> STATE11 <> : (order=1) +STATE14 -[#4682B4,bold]-> STATE12 <> : [guardVarEquals("loop12")] (order=0) +STATE14 -[#4682B4,bold]-> STATE16 <> : (order=1) +STATE9 -[#32CD32,bold]-> STATE8 <> : [guardVarEquals("stepBack")] (order=0) +STATE9 -[#32CD32,bold]-> STATE7 <> : [guardVarEquals("stepBackMore")] (order=1) +STATE9 -[#32CD32,bold]-> STATE6 <> : (order=2) +STATE8 -[#FFD700,bold]-> STATE9 <> : [guardVarEquals("forward9")] (order=0) +STATE8 -[#FFD700,bold]-> STATE10 <> : (order=1) hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype hide <> stereotype hide <> stereotype hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype @enduml diff --git a/state_machine_exporter/src/test/resources/golden/ComplexStateMachineConfig/ComplexStateMachineConfig.scxml.xml b/state_machine_exporter/src/test/resources/golden/ComplexStateMachineConfig/ComplexStateMachineConfig.scxml.xml index 801484f..166eefe 100644 --- a/state_machine_exporter/src/test/resources/golden/ComplexStateMachineConfig/ComplexStateMachineConfig.scxml.xml +++ b/state_machine_exporter/src/test/resources/golden/ComplexStateMachineConfig/ComplexStateMachineConfig.scxml.xml @@ -1,82 +1,35 @@ - - - - - + + - - + + - - + + + + + + + + + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -89,6 +42,21 @@ + + + + + + + + + + + + + + + @@ -98,20 +66,55 @@ - - - + + + + + + - + - - + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -121,8 +124,5 @@ - - - diff --git a/state_machine_exporter/src/test/resources/golden/F1StateMachineConfiguration/F1StateMachineConfiguration.png b/state_machine_exporter/src/test/resources/golden/F1StateMachineConfiguration/F1StateMachineConfiguration.png index 422b6d4..05ce3f4 100644 Binary files a/state_machine_exporter/src/test/resources/golden/F1StateMachineConfiguration/F1StateMachineConfiguration.png and b/state_machine_exporter/src/test/resources/golden/F1StateMachineConfiguration/F1StateMachineConfiguration.png differ diff --git a/state_machine_exporter/src/test/resources/golden/F1StateMachineConfiguration/F1StateMachineConfiguration.puml b/state_machine_exporter/src/test/resources/golden/F1StateMachineConfiguration/F1StateMachineConfiguration.puml index 7a89591..81e0d2d 100644 --- a/state_machine_exporter/src/test/resources/golden/F1StateMachineConfiguration/F1StateMachineConfiguration.puml +++ b/state_machine_exporter/src/test/resources/golden/F1StateMachineConfiguration/F1StateMachineConfiguration.puml @@ -42,18 +42,18 @@ hide <> stereotype [*] --> STATE1 -state STATE17 <> -state STATE16 <> -state STATE2 <> -state STATE14 <> -state STATE12 <> -state STATE11 <> -state STATE8 <> state STATEY <> -state STATE20 <> -state STATE9 <> -state STATE19 <> +state STATE16 <> +state STATE17 <> state STATE18 <> +state STATE19 <> +state STATE20 <> +state STATE11 <> +state STATE12 <> +state STATE14 <> +state STATE9 <> +state STATE8 <> +state STATE2 <> STATE1 -[#1E90FF,bold]-> STATE2 <> <> : EVENT1 STATE2 -[#1E90FF,bold]-> STATE3 <> <> : EVENT2 @@ -76,55 +76,55 @@ STATE3 -[#1E90FF,bold]-> CANCEL <> <> : EVENT_C STATE4 -[#1E90FF,bold]-> CANCEL <> <> : EVENT_CANCEL STATE5 -[#1E90FF,bold]-> CANCEL <> <> : EVENT_CANCEL STATE4 -[#1E90FF,bold]-> STATEY <> <> : EVENTY -STATEY -[#4682B4,bold]-> STATEX <> : [guardVarEquals("value1")] (order=0) -STATEY -[#4682B4,bold]-> STATEZ <> : (order=1) +STATEY -[#FF6347,bold]-> STATEX <> : [guardVarEquals("value1")] (order=0) +STATEY -[#FF6347,bold]-> STATEZ <> : (order=1) STATE16 -[#4682B4,bold]-> STATE17 <> : [guardVarEquals("value1")] (order=0) STATE16 -[#4682B4,bold]-> STATE18 <> : [guardVarEquals("value2")] (order=1) STATE16 -[#4682B4,bold]-> STATE19 <> : (order=2) -STATE17 -[#FF6347,bold]-> STATE20 <> : [guardEventHeaderEquals("header1","foo")] (order=0) -STATE17 -[#FF6347,bold]-> STATE16 <> : (order=1) -STATE18 -[#FF69B4,bold]-> STATE19 <> : [guardVarEquals("value3")] (order=0) -STATE18 -[#FF69B4,bold]-> STATE20 <> : (order=1) +STATE17 -[#32CD32,bold]-> STATE20 <> : [guardEventHeaderEquals("header1","foo")] (order=0) +STATE17 -[#32CD32,bold]-> STATE16 <> : (order=1) +STATE18 -[#FFD700,bold]-> STATE19 <> : [guardVarEquals("value3")] (order=0) +STATE18 -[#FFD700,bold]-> STATE20 <> : (order=1) STATE19 -[#6A5ACD,bold]-> STATE1 <> : [guardVarEquals("reset")] (order=0) STATE19 -[#6A5ACD,bold]-> STATE20 <> : (order=1) -STATE20 -[#32CD32,bold]-> STATE5 <> : [guardEventHeaderEquals("header2","bar")] (order=0) -STATE20 -[#32CD32,bold]-> STATE1 <> : (order=1) -STATE11 -[#FF69B4,bold]-> STATE13 <> : [guardVarEquals("goTo13")] (order=0) -STATE11 -[#FF69B4,bold]-> STATE14 <> : [guardVarEquals("goTo14")] (order=1) -STATE11 -[#FF69B4,bold]-> STATE15 <> : (order=2) -STATE12 -[#6A5ACD,bold]-> STATE10 <> : [guardVarEquals("goBack10")] (order=0) -STATE12 -[#6A5ACD,bold]-> STATE11 <> : (order=1) -STATE14 -[#FFD700,bold]-> STATE12 <> : [guardVarEquals("loop12")] (order=0) -STATE14 -[#FFD700,bold]-> STATE16 <> : (order=1) +STATE20 -[#FF69B4,bold]-> STATE5 <> : [guardEventHeaderEquals("header2","bar")] (order=0) +STATE20 -[#FF69B4,bold]-> STATE1 <> : (order=1) +STATE11 -[#FF6347,bold]-> STATE13 <> : [guardVarEquals("goTo13")] (order=0) +STATE11 -[#FF6347,bold]-> STATE14 <> : [guardVarEquals("goTo14")] (order=1) +STATE11 -[#FF6347,bold]-> STATE15 <> : (order=2) +STATE12 -[#4682B4,bold]-> STATE10 <> : [guardVarEquals("goBack10")] (order=0) +STATE12 -[#4682B4,bold]-> STATE11 <> : (order=1) +STATE14 -[#32CD32,bold]-> STATE12 <> : [guardVarEquals("loop12")] (order=0) +STATE14 -[#32CD32,bold]-> STATE16 <> : (order=1) STATE9 -[#FFD700,bold]-> STATE8 <> : [guardVarEquals("stepBack")] (order=0) STATE9 -[#FFD700,bold]-> STATE7 <> : [guardVarEquals("stepBackMore")] (order=1) STATE9 -[#FFD700,bold]-> STATE6 <> : (order=2) -STATE8 -[#FF6347,bold]-> STATE9 <> : [guardVarEquals("forward9")] (order=0) -STATE8 -[#FF6347,bold]-> STATE10 <> : (order=1) +STATE8 -[#6A5ACD,bold]-> STATE9 <> : [guardVarEquals("forward9")] (order=0) +STATE8 -[#6A5ACD,bold]-> STATE10 <> : (order=1) STATE2 -[#1E90FF,bold]-> STATE_EXTRA_1 <> <> : EVENTX -STATE2 -[#32CD32,bold]-> STATE1 <> : [guardEventHeaderEquals("header1","foo")] (order=0) -STATE2 -[#32CD32,bold]-> STATE_EXTRA_1 <> : (order=1) +STATE2 -[#FF69B4,bold]-> STATE1 <> : [guardEventHeaderEquals("header1","foo")] (order=0) +STATE2 -[#FF69B4,bold]-> STATE_EXTRA_1 <> : (order=1) STATE_EXTRA_1 -[#1E90FF,bold]-> STATE_EXTRA_3 <> <> : EVENTY STATE_EXTRA_1 -[#1E90FF,bold]-> CANCEL <> <> : EVENT_CANCEL_2 STATE_EXTRA_2 -[#1E90FF,bold]-> CANCEL <> <> : EVENT_CANCEL_2 -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype hide <> stereotype hide <> stereotype hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype hide <> stereotype STATEZ --> [*] diff --git a/state_machine_exporter/src/test/resources/golden/F1StateMachineConfiguration/F1StateMachineConfiguration.scxml.xml b/state_machine_exporter/src/test/resources/golden/F1StateMachineConfiguration/F1StateMachineConfiguration.scxml.xml index e16d01f..2b81fe0 100644 --- a/state_machine_exporter/src/test/resources/golden/F1StateMachineConfiguration/F1StateMachineConfiguration.scxml.xml +++ b/state_machine_exporter/src/test/resources/golden/F1StateMachineConfiguration/F1StateMachineConfiguration.scxml.xml @@ -1,107 +1,7 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + @@ -115,10 +15,34 @@ - - + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -131,22 +55,93 @@ - - - + + + + + + - + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -156,9 +151,14 @@ - - - + + + + + + + + diff --git a/state_machine_exporter/src/test/resources/golden/F2StateMachineConfiguration/F2StateMachineConfiguration.png b/state_machine_exporter/src/test/resources/golden/F2StateMachineConfiguration/F2StateMachineConfiguration.png index 52a0c10..faa4240 100644 Binary files a/state_machine_exporter/src/test/resources/golden/F2StateMachineConfiguration/F2StateMachineConfiguration.png and b/state_machine_exporter/src/test/resources/golden/F2StateMachineConfiguration/F2StateMachineConfiguration.png differ diff --git a/state_machine_exporter/src/test/resources/golden/F2StateMachineConfiguration/F2StateMachineConfiguration.puml b/state_machine_exporter/src/test/resources/golden/F2StateMachineConfiguration/F2StateMachineConfiguration.puml index fb47570..d1795f2 100644 --- a/state_machine_exporter/src/test/resources/golden/F2StateMachineConfiguration/F2StateMachineConfiguration.puml +++ b/state_machine_exporter/src/test/resources/golden/F2StateMachineConfiguration/F2StateMachineConfiguration.puml @@ -42,18 +42,18 @@ hide <> stereotype [*] --> STATE1 -state STATE17 <> -state STATE16 <> -state STATE14 <> -state STATE12 <> -state STATE11 <> -state STATE8 <> state STATEY <> -state STATE20 <> -state STATE9 <> -state STATE_EXTRA_1_2 <> -state STATE19 <> +state STATE16 <> +state STATE17 <> state STATE18 <> +state STATE19 <> +state STATE20 <> +state STATE11 <> +state STATE12 <> +state STATE14 <> +state STATE9 <> +state STATE8 <> +state STATE_EXTRA_1_2 <> STATE1 -[#1E90FF,bold]-> STATE2 <> <> : EVENT1 STATE2 -[#1E90FF,bold]-> STATE3 <> <> : EVENT2 @@ -81,52 +81,52 @@ STATEY -[#FF6347,bold]-> STATEZ <> : (order=1) STATE16 -[#4682B4,bold]-> STATE17 <> : [guardVarEquals("value1")] (order=0) STATE16 -[#4682B4,bold]-> STATE18 <> : [guardVarEquals("value2")] (order=1) STATE16 -[#4682B4,bold]-> STATE19 <> : (order=2) -STATE17 -[#FF6347,bold]-> STATE20 <> : [guardEventHeaderEquals("header1","foo")] (order=0) -STATE17 -[#FF6347,bold]-> STATE16 <> : (order=1) -STATE18 -[#FF69B4,bold]-> STATE19 <> : [guardVarEquals("value3")] (order=0) -STATE18 -[#FF69B4,bold]-> STATE20 <> : (order=1) +STATE17 -[#32CD32,bold]-> STATE20 <> : [guardEventHeaderEquals("header1","foo")] (order=0) +STATE17 -[#32CD32,bold]-> STATE16 <> : (order=1) +STATE18 -[#FFD700,bold]-> STATE19 <> : [guardVarEquals("value3")] (order=0) +STATE18 -[#FFD700,bold]-> STATE20 <> : (order=1) STATE19 -[#6A5ACD,bold]-> STATE1 <> : [guardVarEquals("reset")] (order=0) STATE19 -[#6A5ACD,bold]-> STATE20 <> : (order=1) -STATE20 -[#4682B4,bold]-> STATE5 <> : [guardEventHeaderEquals("header2","bar")] (order=0) -STATE20 -[#4682B4,bold]-> STATE1 <> : (order=1) -STATE11 -[#6A5ACD,bold]-> STATE13 <> : [guardVarEquals("goTo13")] (order=0) -STATE11 -[#6A5ACD,bold]-> STATE14 <> : [guardVarEquals("goTo14")] (order=1) -STATE11 -[#6A5ACD,bold]-> STATE15 <> : (order=2) -STATE12 -[#FFD700,bold]-> STATE10 <> : [guardVarEquals("goBack10")] (order=0) -STATE12 -[#FFD700,bold]-> STATE11 <> : (order=1) +STATE20 -[#FF69B4,bold]-> STATE5 <> : [guardEventHeaderEquals("header2","bar")] (order=0) +STATE20 -[#FF69B4,bold]-> STATE1 <> : (order=1) +STATE11 -[#FF6347,bold]-> STATE13 <> : [guardVarEquals("goTo13")] (order=0) +STATE11 -[#FF6347,bold]-> STATE14 <> : [guardVarEquals("goTo14")] (order=1) +STATE11 -[#FF6347,bold]-> STATE15 <> : (order=2) +STATE12 -[#4682B4,bold]-> STATE10 <> : [guardVarEquals("goBack10")] (order=0) +STATE12 -[#4682B4,bold]-> STATE11 <> : (order=1) STATE14 -[#32CD32,bold]-> STATE12 <> : [guardVarEquals("loop12")] (order=0) STATE14 -[#32CD32,bold]-> STATE16 <> : (order=1) -STATE9 -[#32CD32,bold]-> STATE8 <> : [guardVarEquals("stepBack")] (order=0) -STATE9 -[#32CD32,bold]-> STATE7 <> : [guardVarEquals("stepBackMore")] (order=1) -STATE9 -[#32CD32,bold]-> STATE6 <> : (order=2) -STATE8 -[#FF69B4,bold]-> STATE9 <> : [guardVarEquals("forward9")] (order=0) -STATE8 -[#FF69B4,bold]-> STATE10 <> : (order=1) +STATE9 -[#FFD700,bold]-> STATE8 <> : [guardVarEquals("stepBack")] (order=0) +STATE9 -[#FFD700,bold]-> STATE7 <> : [guardVarEquals("stepBackMore")] (order=1) +STATE9 -[#FFD700,bold]-> STATE6 <> : (order=2) +STATE8 -[#6A5ACD,bold]-> STATE9 <> : [guardVarEquals("forward9")] (order=0) +STATE8 -[#6A5ACD,bold]-> STATE10 <> : (order=1) STATE9 -[#1E90FF,bold]-> STATE_EXTRA_1_1 <> <> : EVENT_1_1 -STATE_EXTRA_1_2 -[#FFD700,bold]-> STATE_EXTRA_1_1 <> : [guardEventHeaderEquals("header1","foo")] (order=0) -STATE_EXTRA_1_2 -[#FFD700,bold]-> STATE_EXTRA_1_3 <> : (order=1) +STATE_EXTRA_1_2 -[#FF69B4,bold]-> STATE_EXTRA_1_1 <> : [guardEventHeaderEquals("header1","foo")] (order=0) +STATE_EXTRA_1_2 -[#FF69B4,bold]-> STATE_EXTRA_1_3 <> : (order=1) STATE_EXTRA_1_3 -[#1E90FF,bold]-> STATE_EXTRA_1 <> <> : EVENT_1_2 STATE_EXTRA_1_1 -[#1E90FF,bold]-> CANCEL <> <> : EVENT_CANCEL_2 STATE_EXTRA_1_2 -[#1E90FF,bold]-> CANCEL <> <> : EVENT_CANCEL_2 STATE_EXTRA_1 -[#1E90FF,bold]-> CANCEL <> <> : EVENT_CANCEL_2 -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype hide <> stereotype -hide <> stereotype -hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype hide <> stereotype hide <> stereotype hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype hide <> stereotype STATEZ --> [*] diff --git a/state_machine_exporter/src/test/resources/golden/F2StateMachineConfiguration/F2StateMachineConfiguration.scxml.xml b/state_machine_exporter/src/test/resources/golden/F2StateMachineConfiguration/F2StateMachineConfiguration.scxml.xml index 59a8019..bab54d4 100644 --- a/state_machine_exporter/src/test/resources/golden/F2StateMachineConfiguration/F2StateMachineConfiguration.scxml.xml +++ b/state_machine_exporter/src/test/resources/golden/F2StateMachineConfiguration/F2StateMachineConfiguration.scxml.xml @@ -1,126 +1,41 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -134,22 +49,93 @@ - - - + + + + + + - + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -159,9 +145,23 @@ - - - + + + + + + + + + + + + + + + + + diff --git a/state_machine_exporter/src/test/resources/golden/ForkJoinStateMachineConfig/ForkJoinStateMachineConfig.png b/state_machine_exporter/src/test/resources/golden/ForkJoinStateMachineConfig/ForkJoinStateMachineConfig.png index 595c10d..a441cea 100644 Binary files a/state_machine_exporter/src/test/resources/golden/ForkJoinStateMachineConfig/ForkJoinStateMachineConfig.png and b/state_machine_exporter/src/test/resources/golden/ForkJoinStateMachineConfig/ForkJoinStateMachineConfig.png differ diff --git a/state_machine_exporter/src/test/resources/golden/ForkJoinStateMachineConfig/ForkJoinStateMachineConfig.puml b/state_machine_exporter/src/test/resources/golden/ForkJoinStateMachineConfig/ForkJoinStateMachineConfig.puml index b2200b0..9c4ceba 100644 --- a/state_machine_exporter/src/test/resources/golden/ForkJoinStateMachineConfig/ForkJoinStateMachineConfig.puml +++ b/state_machine_exporter/src/test/resources/golden/ForkJoinStateMachineConfig/ForkJoinStateMachineConfig.puml @@ -52,9 +52,9 @@ REGION1_STATE2 -[#8A2BE2,bold]-> JOIN <> REGION2_STATE2 -[#8A2BE2,bold]-> JOIN <> JOIN -[#1E90FF,bold]-> END <> <> : TO_END hide <> stereotype +hide <> stereotype hide <> stereotype hide <> stereotype -hide <> stereotype END --> [*] @enduml diff --git a/state_machine_exporter/src/test/resources/golden/ForkJoinStateMachineConfig/ForkJoinStateMachineConfig.scxml.xml b/state_machine_exporter/src/test/resources/golden/ForkJoinStateMachineConfig/ForkJoinStateMachineConfig.scxml.xml index 02a5ab6..9da75c6 100644 --- a/state_machine_exporter/src/test/resources/golden/ForkJoinStateMachineConfig/ForkJoinStateMachineConfig.scxml.xml +++ b/state_machine_exporter/src/test/resources/golden/ForkJoinStateMachineConfig/ForkJoinStateMachineConfig.scxml.xml @@ -1,28 +1,28 @@ + + + - - - - + + - - - - - - - - + + + + + + + diff --git a/state_machine_exporter/src/test/resources/golden/G1StateMachineConfiguration/G1StateMachineConfiguration.png b/state_machine_exporter/src/test/resources/golden/G1StateMachineConfiguration/G1StateMachineConfiguration.png index 4a888c7..2c54510 100644 Binary files a/state_machine_exporter/src/test/resources/golden/G1StateMachineConfiguration/G1StateMachineConfiguration.png and b/state_machine_exporter/src/test/resources/golden/G1StateMachineConfiguration/G1StateMachineConfiguration.png differ diff --git a/state_machine_exporter/src/test/resources/golden/G1StateMachineConfiguration/G1StateMachineConfiguration.puml b/state_machine_exporter/src/test/resources/golden/G1StateMachineConfiguration/G1StateMachineConfiguration.puml index d4342c0..16ca712 100644 --- a/state_machine_exporter/src/test/resources/golden/G1StateMachineConfiguration/G1StateMachineConfiguration.puml +++ b/state_machine_exporter/src/test/resources/golden/G1StateMachineConfiguration/G1StateMachineConfiguration.puml @@ -42,9 +42,9 @@ hide <> stereotype [*] --> STATE1 -state STATE8 <> state STATEY <> state STATE9 <> +state STATE8 <> STATE1 -[#1E90FF,bold]-> STATE2 <> <> : EVENT1 STATE2 -[#1E90FF,bold]-> STATE3 <> <> : EVENT2 @@ -61,27 +61,27 @@ STATE3 -[#1E90FF,bold]-> CANCEL <> <> : EVENT_C STATE4 -[#1E90FF,bold]-> CANCEL <> <> : EVENT_CANCEL STATE5 -[#1E90FF,bold]-> CANCEL <> <> : EVENT_CANCEL STATE4 -[#1E90FF,bold]-> STATEY <> <> : EVENTY -STATEY -[#4682B4,bold]-> STATEX <> : [guardVarEquals("value1")] (order=0) -STATEY -[#4682B4,bold]-> STATEZ <> : (order=1) -STATE9 -[#32CD32,bold]-> STATE8 <> : [guardVarEquals("stepBack")] (order=0) -STATE9 -[#32CD32,bold]-> STATE7 <> : [guardVarEquals("stepBackMore")] (order=1) -STATE9 -[#32CD32,bold]-> STATE6 <> : (order=2) -STATE8 -[#FF6347,bold]-> STATE9 <> : [guardVarEquals("forward9")] (order=0) -STATE8 -[#FF6347,bold]-> STATE10 <> : (order=1) +STATEY -[#FF6347,bold]-> STATEX <> : [guardVarEquals("value1")] (order=0) +STATEY -[#FF6347,bold]-> STATEZ <> : (order=1) +STATE9 -[#4682B4,bold]-> STATE8 <> : [guardVarEquals("stepBack")] (order=0) +STATE9 -[#4682B4,bold]-> STATE7 <> : [guardVarEquals("stepBackMore")] (order=1) +STATE9 -[#4682B4,bold]-> STATE6 <> : (order=2) +STATE8 -[#32CD32,bold]-> STATE9 <> : [guardVarEquals("forward9")] (order=0) +STATE8 -[#32CD32,bold]-> STATE10 <> : (order=1) STATE3 -[#1E90FF,bold]-> STATE_EXTRA_2 <> <> : EVENT_1_2 STATE_EXTRA_2 -[#1E90FF,bold]-> STATE_EXTRA_3 <> <> : EVENT_1_2 STATE_EXTRA_3 -[#1E90FF,bold]-> CANCEL <> <> : EVENT_CANCEL -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype hide <> stereotype STATEZ --> [*] diff --git a/state_machine_exporter/src/test/resources/golden/G1StateMachineConfiguration/G1StateMachineConfiguration.scxml.xml b/state_machine_exporter/src/test/resources/golden/G1StateMachineConfiguration/G1StateMachineConfiguration.scxml.xml index 82b2f44..ecf7ddc 100644 --- a/state_machine_exporter/src/test/resources/golden/G1StateMachineConfiguration/G1StateMachineConfiguration.scxml.xml +++ b/state_machine_exporter/src/test/resources/golden/G1StateMachineConfiguration/G1StateMachineConfiguration.scxml.xml @@ -1,32 +1,41 @@ - - + + + + + + - - - + + + + + + + - - - + + - + + - - - - - - - + + + + + + + + @@ -40,6 +49,10 @@ + + + + @@ -48,27 +61,14 @@ - - - - - - - - - - - + - + + - - - - - + diff --git a/state_machine_exporter/src/test/resources/golden/G2StateMachineConfiguration/G2StateMachineConfiguration.png b/state_machine_exporter/src/test/resources/golden/G2StateMachineConfiguration/G2StateMachineConfiguration.png index 4d8b45f..3134da9 100644 Binary files a/state_machine_exporter/src/test/resources/golden/G2StateMachineConfiguration/G2StateMachineConfiguration.png and b/state_machine_exporter/src/test/resources/golden/G2StateMachineConfiguration/G2StateMachineConfiguration.png differ diff --git a/state_machine_exporter/src/test/resources/golden/G2StateMachineConfiguration/G2StateMachineConfiguration.puml b/state_machine_exporter/src/test/resources/golden/G2StateMachineConfiguration/G2StateMachineConfiguration.puml index 72db72f..98502f8 100644 --- a/state_machine_exporter/src/test/resources/golden/G2StateMachineConfiguration/G2StateMachineConfiguration.puml +++ b/state_machine_exporter/src/test/resources/golden/G2StateMachineConfiguration/G2StateMachineConfiguration.puml @@ -42,9 +42,9 @@ hide <> stereotype [*] --> STATE1 -state STATE8 <> state STATEY <> state STATE9 <> +state STATE8 <> STATE1 -[#1E90FF,bold]-> STATE2 <> <> : EVENT1 STATE2 -[#1E90FF,bold]-> STATE3 <> <> : EVENT2 @@ -61,30 +61,30 @@ STATE3 -[#1E90FF,bold]-> CANCEL <> <> : EVENT_C STATE4 -[#1E90FF,bold]-> CANCEL <> <> : EVENT_CANCEL STATE5 -[#1E90FF,bold]-> CANCEL <> <> : EVENT_CANCEL STATE4 -[#1E90FF,bold]-> STATEY <> <> : EVENTY -STATEY -[#4682B4,bold]-> STATEX <> : [guardVarEquals("value1")] (order=0) -STATEY -[#4682B4,bold]-> STATEZ <> : (order=1) -STATE9 -[#32CD32,bold]-> STATE8 <> : [guardVarEquals("stepBack")] (order=0) -STATE9 -[#32CD32,bold]-> STATE7 <> : [guardVarEquals("stepBackMore")] (order=1) -STATE9 -[#32CD32,bold]-> STATE6 <> : (order=2) -STATE8 -[#FF6347,bold]-> STATE9 <> : [guardVarEquals("forward9")] (order=0) -STATE8 -[#FF6347,bold]-> STATE10 <> : (order=1) +STATEY -[#FF6347,bold]-> STATEX <> : [guardVarEquals("value1")] (order=0) +STATEY -[#FF6347,bold]-> STATEZ <> : (order=1) +STATE9 -[#4682B4,bold]-> STATE8 <> : [guardVarEquals("stepBack")] (order=0) +STATE9 -[#4682B4,bold]-> STATE7 <> : [guardVarEquals("stepBackMore")] (order=1) +STATE9 -[#4682B4,bold]-> STATE6 <> : (order=2) +STATE8 -[#32CD32,bold]-> STATE9 <> : [guardVarEquals("forward9")] (order=0) +STATE8 -[#32CD32,bold]-> STATE10 <> : (order=1) STATE3 -[#1E90FF,bold]-> STATE_EXTRA_1 <> <> : EVENT_1_2 STATE_EXTRA_1 -[#1E90FF,bold]-> STATE_EXTRA_2 <> <> : EVENT_1_3 STATE_EXTRA_1 -[#1E90FF,bold]-> CANCEL <> <> : EVENT_CANCEL STATE_EXTRA_2 -[#1E90FF,bold]-> CANCEL <> <> : EVENT_CANCEL -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype hide <> stereotype +hide <> stereotype STATEZ --> [*] @enduml diff --git a/state_machine_exporter/src/test/resources/golden/G2StateMachineConfiguration/G2StateMachineConfiguration.scxml.xml b/state_machine_exporter/src/test/resources/golden/G2StateMachineConfiguration/G2StateMachineConfiguration.scxml.xml index 98b8a27..d206b3c 100644 --- a/state_machine_exporter/src/test/resources/golden/G2StateMachineConfiguration/G2StateMachineConfiguration.scxml.xml +++ b/state_machine_exporter/src/test/resources/golden/G2StateMachineConfiguration/G2StateMachineConfiguration.scxml.xml @@ -1,29 +1,41 @@ - - + + + + + + - - - + + + + + + + - - - + + - + + - - - - + + + + + + + + @@ -37,6 +49,10 @@ + + + + @@ -45,31 +61,15 @@ + + + + - - - - - - - - - - - - - - - - - - - - - + diff --git a/state_machine_exporter/src/test/resources/golden/KamilEnumStateMachineConfiguration/KamilEnumStateMachineConfiguration.png b/state_machine_exporter/src/test/resources/golden/KamilEnumStateMachineConfiguration/KamilEnumStateMachineConfiguration.png index a600a67..9aba9b7 100644 Binary files a/state_machine_exporter/src/test/resources/golden/KamilEnumStateMachineConfiguration/KamilEnumStateMachineConfiguration.png and b/state_machine_exporter/src/test/resources/golden/KamilEnumStateMachineConfiguration/KamilEnumStateMachineConfiguration.png differ diff --git a/state_machine_exporter/src/test/resources/golden/KamilEnumStateMachineConfiguration/KamilEnumStateMachineConfiguration.puml b/state_machine_exporter/src/test/resources/golden/KamilEnumStateMachineConfiguration/KamilEnumStateMachineConfiguration.puml index 2941e64..c73e397 100644 --- a/state_machine_exporter/src/test/resources/golden/KamilEnumStateMachineConfiguration/KamilEnumStateMachineConfiguration.puml +++ b/state_machine_exporter/src/test/resources/golden/KamilEnumStateMachineConfiguration/KamilEnumStateMachineConfiguration.puml @@ -57,10 +57,10 @@ PAID1 -[#FF6347,bold]-> CANCELED <> : (order=3) PAID2 -[#1E90FF,bold]-> CANCELED <> PAID3 -[#1E90FF,bold]-> CANCELED <> PAID2 -[#1E90FF,bold]-> PAID2 <> <> : ABCD / λ, action2 -hide <> stereotype -hide <> stereotype -hide <> stereotype hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype CANCELED --> [*] FULFILLED --> [*] diff --git a/state_machine_exporter/src/test/resources/golden/KamilEnumStateMachineConfiguration/KamilEnumStateMachineConfiguration.scxml.xml b/state_machine_exporter/src/test/resources/golden/KamilEnumStateMachineConfiguration/KamilEnumStateMachineConfiguration.scxml.xml index 0994d9a..6b8dcf8 100644 --- a/state_machine_exporter/src/test/resources/golden/KamilEnumStateMachineConfiguration/KamilEnumStateMachineConfiguration.scxml.xml +++ b/state_machine_exporter/src/test/resources/golden/KamilEnumStateMachineConfiguration/KamilEnumStateMachineConfiguration.scxml.xml @@ -1,5 +1,19 @@ + + + + + + + + + + + @@ -14,28 +28,14 @@ - - - - - - - - - - + + + - - - - diff --git a/state_machine_exporter/src/test/resources/golden/OneStateMachineConfiguration/OneStateMachineConfiguration.png b/state_machine_exporter/src/test/resources/golden/OneStateMachineConfiguration/OneStateMachineConfiguration.png index 5859418..16b7af9 100644 Binary files a/state_machine_exporter/src/test/resources/golden/OneStateMachineConfiguration/OneStateMachineConfiguration.png and b/state_machine_exporter/src/test/resources/golden/OneStateMachineConfiguration/OneStateMachineConfiguration.png differ diff --git a/state_machine_exporter/src/test/resources/golden/OneStateMachineConfiguration/OneStateMachineConfiguration.puml b/state_machine_exporter/src/test/resources/golden/OneStateMachineConfiguration/OneStateMachineConfiguration.puml index c2621f3..1aa2fc4 100644 --- a/state_machine_exporter/src/test/resources/golden/OneStateMachineConfiguration/OneStateMachineConfiguration.puml +++ b/state_machine_exporter/src/test/resources/golden/OneStateMachineConfiguration/OneStateMachineConfiguration.puml @@ -42,17 +42,17 @@ hide <> stereotype [*] --> STATE1 -state STATE17 <> -state STATE16 <> -state STATE14 <> -state STATE12 <> -state STATE11 <> -state STATE8 <> state STATEY <> -state STATE20 <> -state STATE9 <> -state STATE19 <> +state STATE16 <> +state STATE17 <> state STATE18 <> +state STATE19 <> +state STATE20 <> +state STATE11 <> +state STATE12 <> +state STATE14 <> +state STATE9 <> +state STATE8 <> STATE1 -[#1E90FF,bold]-> STATE2 <> <> : EVENT1 STATE2 -[#1E90FF,bold]-> STATE3 <> <> : EVENT2 @@ -75,44 +75,44 @@ STATEY -[#FF6347,bold]-> STATEZ <> : (order=1) STATE16 -[#4682B4,bold]-> STATE17 <> : [guardVarEquals("value1")] (order=0) STATE16 -[#4682B4,bold]-> STATE18 <> : [guardVarEquals("value2")] (order=1) STATE16 -[#4682B4,bold]-> STATE19 <> : (order=2) -STATE17 -[#FF6347,bold]-> STATE20 <> : [guardEventHeaderEquals("header1","foo")] (order=0) -STATE17 -[#FF6347,bold]-> STATE16 <> : (order=1) -STATE18 -[#6A5ACD,bold]-> STATE19 <> : [guardVarEquals("value3")] (order=0) -STATE18 -[#6A5ACD,bold]-> STATE20 <> : (order=1) -STATE19 -[#FFD700,bold]-> STATE1 <> : [guardVarEquals("reset")] (order=0) -STATE19 -[#FFD700,bold]-> STATE20 <> : (order=1) -STATE20 -[#4682B4,bold]-> STATE5 <> : [guardEventHeaderEquals("header2","bar")] (order=0) -STATE20 -[#4682B4,bold]-> STATE1 <> : (order=1) -STATE11 -[#6A5ACD,bold]-> STATE13 <> : [guardVarEquals("goTo13")] (order=0) -STATE11 -[#6A5ACD,bold]-> STATE14 <> : [guardVarEquals("goTo14")] (order=1) -STATE11 -[#6A5ACD,bold]-> STATE15 <> : (order=2) -STATE12 -[#FFD700,bold]-> STATE10 <> : [guardVarEquals("goBack10")] (order=0) -STATE12 -[#FFD700,bold]-> STATE11 <> : (order=1) +STATE17 -[#32CD32,bold]-> STATE20 <> : [guardEventHeaderEquals("header1","foo")] (order=0) +STATE17 -[#32CD32,bold]-> STATE16 <> : (order=1) +STATE18 -[#FFD700,bold]-> STATE19 <> : [guardVarEquals("value3")] (order=0) +STATE18 -[#FFD700,bold]-> STATE20 <> : (order=1) +STATE19 -[#6A5ACD,bold]-> STATE1 <> : [guardVarEquals("reset")] (order=0) +STATE19 -[#6A5ACD,bold]-> STATE20 <> : (order=1) +STATE20 -[#FF69B4,bold]-> STATE5 <> : [guardEventHeaderEquals("header2","bar")] (order=0) +STATE20 -[#FF69B4,bold]-> STATE1 <> : (order=1) +STATE11 -[#FF6347,bold]-> STATE13 <> : [guardVarEquals("goTo13")] (order=0) +STATE11 -[#FF6347,bold]-> STATE14 <> : [guardVarEquals("goTo14")] (order=1) +STATE11 -[#FF6347,bold]-> STATE15 <> : (order=2) +STATE12 -[#4682B4,bold]-> STATE10 <> : [guardVarEquals("goBack10")] (order=0) +STATE12 -[#4682B4,bold]-> STATE11 <> : (order=1) STATE14 -[#32CD32,bold]-> STATE12 <> : [guardVarEquals("loop12")] (order=0) STATE14 -[#32CD32,bold]-> STATE16 <> : (order=1) -STATE9 -[#32CD32,bold]-> STATE8 <> : [guardVarEquals("stepBack")] (order=0) -STATE9 -[#32CD32,bold]-> STATE7 <> : [guardVarEquals("stepBackMore")] (order=1) -STATE9 -[#32CD32,bold]-> STATE6 <> : (order=2) -STATE8 -[#FF69B4,bold]-> STATE9 <> : [guardVarEquals("forward9")] (order=0) -STATE8 -[#FF69B4,bold]-> STATE10 <> : (order=1) +STATE9 -[#FFD700,bold]-> STATE8 <> : [guardVarEquals("stepBack")] (order=0) +STATE9 -[#FFD700,bold]-> STATE7 <> : [guardVarEquals("stepBackMore")] (order=1) +STATE9 -[#FFD700,bold]-> STATE6 <> : (order=2) +STATE8 -[#6A5ACD,bold]-> STATE9 <> : [guardVarEquals("forward9")] (order=0) +STATE8 -[#6A5ACD,bold]-> STATE10 <> : (order=1) STATE5 -[#1E90FF,bold]-> STATE_EXTRA_1 <> <> : EVENTX -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype hide <> stereotype hide <> stereotype hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype STATEZ --> [*] @enduml diff --git a/state_machine_exporter/src/test/resources/golden/OneStateMachineConfiguration/OneStateMachineConfiguration.scxml.xml b/state_machine_exporter/src/test/resources/golden/OneStateMachineConfiguration/OneStateMachineConfiguration.scxml.xml index e8e4569..ce49605 100644 --- a/state_machine_exporter/src/test/resources/golden/OneStateMachineConfiguration/OneStateMachineConfiguration.scxml.xml +++ b/state_machine_exporter/src/test/resources/golden/OneStateMachineConfiguration/OneStateMachineConfiguration.scxml.xml @@ -1,85 +1,37 @@ - - - - - - + + - - + + - - + + + + + + + + + + + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -92,6 +44,21 @@ + + + + + + + + + + + + + + + @@ -101,6 +68,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -109,24 +102,33 @@ - + - - - + + + + - + - + + + + + + + - - - - - + + + + + + + @@ -136,9 +138,7 @@ - - - + diff --git a/state_machine_exporter/src/test/resources/golden/SimpleEnumStateMachineConfiguration/SimpleEnumStateMachineConfiguration.png b/state_machine_exporter/src/test/resources/golden/SimpleEnumStateMachineConfiguration/SimpleEnumStateMachineConfiguration.png index cd2ed35..4d18aa4 100644 Binary files a/state_machine_exporter/src/test/resources/golden/SimpleEnumStateMachineConfiguration/SimpleEnumStateMachineConfiguration.png and b/state_machine_exporter/src/test/resources/golden/SimpleEnumStateMachineConfiguration/SimpleEnumStateMachineConfiguration.png differ diff --git a/state_machine_exporter/src/test/resources/golden/SimpleEnumStateMachineConfiguration/SimpleEnumStateMachineConfiguration.puml b/state_machine_exporter/src/test/resources/golden/SimpleEnumStateMachineConfiguration/SimpleEnumStateMachineConfiguration.puml index 2a50ae0..84e7033 100644 --- a/state_machine_exporter/src/test/resources/golden/SimpleEnumStateMachineConfiguration/SimpleEnumStateMachineConfiguration.puml +++ b/state_machine_exporter/src/test/resources/golden/SimpleEnumStateMachineConfiguration/SimpleEnumStateMachineConfiguration.puml @@ -42,27 +42,27 @@ hide <> stereotype [*] --> SUBMITTED -state PAID <> state SUBMITTED <> +state PAID <> SUBMITTED -[#1E90FF,bold]-> PAID <> <> : PAY PAID -[#1E90FF,bold]-> FULFILLED <> <> : FULFILL SUBMITTED -[#1E90FF,bold]-> CANCELED <> <> : CANCEL [λ] PAID -[#1E90FF,bold]-> CANCELED <> <> : CANCEL SUBMITTED -[#1E90FF,bold]-> SUBMITTED <> <> : ABCD -SUBMITTED -[#4682B4,bold]-> PAID2 <> : [λ] (order=0) -SUBMITTED -[#4682B4,bold]-> PAID3 <> : (order=1) -PAID -[#FF6347,bold]-> PAID1 <> : [λ] (order=0) -PAID -[#FF6347,bold]-> PAID2 <> : [guard1] (order=1) -PAID -[#FF6347,bold]-> HAPPEN <> : [λ] (order=2) -PAID -[#FF6347,bold]-> PAID3 <> : (order=3) +SUBMITTED -[#FF6347,bold]-> PAID2 <> : [λ] (order=0) +SUBMITTED -[#FF6347,bold]-> PAID3 <> : (order=1) +PAID -[#4682B4,bold]-> PAID1 <> : [λ] (order=0) +PAID -[#4682B4,bold]-> PAID2 <> : [guard1] (order=1) +PAID -[#4682B4,bold]-> HAPPEN <> : [λ] (order=2) +PAID -[#4682B4,bold]-> PAID3 <> : (order=3) PAID2 -[#1E90FF,bold]-> CANCELED <> PAID3 -[#1E90FF,bold]-> CANCELED <> PAID1 -[#1E90FF,bold]-> PAID1 <> <> : ABCD / λ, action2 -hide <> stereotype -hide <> stereotype -hide <> stereotype hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype CANCELED --> [*] FULFILLED --> [*] diff --git a/state_machine_exporter/src/test/resources/golden/SimpleEnumStateMachineConfiguration/SimpleEnumStateMachineConfiguration.scxml.xml b/state_machine_exporter/src/test/resources/golden/SimpleEnumStateMachineConfiguration/SimpleEnumStateMachineConfiguration.scxml.xml index 57145e3..b05bfca 100644 --- a/state_machine_exporter/src/test/resources/golden/SimpleEnumStateMachineConfiguration/SimpleEnumStateMachineConfiguration.scxml.xml +++ b/state_machine_exporter/src/test/resources/golden/SimpleEnumStateMachineConfiguration/SimpleEnumStateMachineConfiguration.scxml.xml @@ -1,8 +1,5 @@ - - - @@ -30,17 +27,20 @@ - - - - - - + + + + + + + + + diff --git a/state_machine_exporter/src/test/resources/golden/ThreeStateMachineConfiguration/ThreeStateMachineConfiguration.png b/state_machine_exporter/src/test/resources/golden/ThreeStateMachineConfiguration/ThreeStateMachineConfiguration.png index 422b6d4..05ce3f4 100644 Binary files a/state_machine_exporter/src/test/resources/golden/ThreeStateMachineConfiguration/ThreeStateMachineConfiguration.png and b/state_machine_exporter/src/test/resources/golden/ThreeStateMachineConfiguration/ThreeStateMachineConfiguration.png differ diff --git a/state_machine_exporter/src/test/resources/golden/ThreeStateMachineConfiguration/ThreeStateMachineConfiguration.puml b/state_machine_exporter/src/test/resources/golden/ThreeStateMachineConfiguration/ThreeStateMachineConfiguration.puml index 7a89591..81e0d2d 100644 --- a/state_machine_exporter/src/test/resources/golden/ThreeStateMachineConfiguration/ThreeStateMachineConfiguration.puml +++ b/state_machine_exporter/src/test/resources/golden/ThreeStateMachineConfiguration/ThreeStateMachineConfiguration.puml @@ -42,18 +42,18 @@ hide <> stereotype [*] --> STATE1 -state STATE17 <> -state STATE16 <> -state STATE2 <> -state STATE14 <> -state STATE12 <> -state STATE11 <> -state STATE8 <> state STATEY <> -state STATE20 <> -state STATE9 <> -state STATE19 <> +state STATE16 <> +state STATE17 <> state STATE18 <> +state STATE19 <> +state STATE20 <> +state STATE11 <> +state STATE12 <> +state STATE14 <> +state STATE9 <> +state STATE8 <> +state STATE2 <> STATE1 -[#1E90FF,bold]-> STATE2 <> <> : EVENT1 STATE2 -[#1E90FF,bold]-> STATE3 <> <> : EVENT2 @@ -76,55 +76,55 @@ STATE3 -[#1E90FF,bold]-> CANCEL <> <> : EVENT_C STATE4 -[#1E90FF,bold]-> CANCEL <> <> : EVENT_CANCEL STATE5 -[#1E90FF,bold]-> CANCEL <> <> : EVENT_CANCEL STATE4 -[#1E90FF,bold]-> STATEY <> <> : EVENTY -STATEY -[#4682B4,bold]-> STATEX <> : [guardVarEquals("value1")] (order=0) -STATEY -[#4682B4,bold]-> STATEZ <> : (order=1) +STATEY -[#FF6347,bold]-> STATEX <> : [guardVarEquals("value1")] (order=0) +STATEY -[#FF6347,bold]-> STATEZ <> : (order=1) STATE16 -[#4682B4,bold]-> STATE17 <> : [guardVarEquals("value1")] (order=0) STATE16 -[#4682B4,bold]-> STATE18 <> : [guardVarEquals("value2")] (order=1) STATE16 -[#4682B4,bold]-> STATE19 <> : (order=2) -STATE17 -[#FF6347,bold]-> STATE20 <> : [guardEventHeaderEquals("header1","foo")] (order=0) -STATE17 -[#FF6347,bold]-> STATE16 <> : (order=1) -STATE18 -[#FF69B4,bold]-> STATE19 <> : [guardVarEquals("value3")] (order=0) -STATE18 -[#FF69B4,bold]-> STATE20 <> : (order=1) +STATE17 -[#32CD32,bold]-> STATE20 <> : [guardEventHeaderEquals("header1","foo")] (order=0) +STATE17 -[#32CD32,bold]-> STATE16 <> : (order=1) +STATE18 -[#FFD700,bold]-> STATE19 <> : [guardVarEquals("value3")] (order=0) +STATE18 -[#FFD700,bold]-> STATE20 <> : (order=1) STATE19 -[#6A5ACD,bold]-> STATE1 <> : [guardVarEquals("reset")] (order=0) STATE19 -[#6A5ACD,bold]-> STATE20 <> : (order=1) -STATE20 -[#32CD32,bold]-> STATE5 <> : [guardEventHeaderEquals("header2","bar")] (order=0) -STATE20 -[#32CD32,bold]-> STATE1 <> : (order=1) -STATE11 -[#FF69B4,bold]-> STATE13 <> : [guardVarEquals("goTo13")] (order=0) -STATE11 -[#FF69B4,bold]-> STATE14 <> : [guardVarEquals("goTo14")] (order=1) -STATE11 -[#FF69B4,bold]-> STATE15 <> : (order=2) -STATE12 -[#6A5ACD,bold]-> STATE10 <> : [guardVarEquals("goBack10")] (order=0) -STATE12 -[#6A5ACD,bold]-> STATE11 <> : (order=1) -STATE14 -[#FFD700,bold]-> STATE12 <> : [guardVarEquals("loop12")] (order=0) -STATE14 -[#FFD700,bold]-> STATE16 <> : (order=1) +STATE20 -[#FF69B4,bold]-> STATE5 <> : [guardEventHeaderEquals("header2","bar")] (order=0) +STATE20 -[#FF69B4,bold]-> STATE1 <> : (order=1) +STATE11 -[#FF6347,bold]-> STATE13 <> : [guardVarEquals("goTo13")] (order=0) +STATE11 -[#FF6347,bold]-> STATE14 <> : [guardVarEquals("goTo14")] (order=1) +STATE11 -[#FF6347,bold]-> STATE15 <> : (order=2) +STATE12 -[#4682B4,bold]-> STATE10 <> : [guardVarEquals("goBack10")] (order=0) +STATE12 -[#4682B4,bold]-> STATE11 <> : (order=1) +STATE14 -[#32CD32,bold]-> STATE12 <> : [guardVarEquals("loop12")] (order=0) +STATE14 -[#32CD32,bold]-> STATE16 <> : (order=1) STATE9 -[#FFD700,bold]-> STATE8 <> : [guardVarEquals("stepBack")] (order=0) STATE9 -[#FFD700,bold]-> STATE7 <> : [guardVarEquals("stepBackMore")] (order=1) STATE9 -[#FFD700,bold]-> STATE6 <> : (order=2) -STATE8 -[#FF6347,bold]-> STATE9 <> : [guardVarEquals("forward9")] (order=0) -STATE8 -[#FF6347,bold]-> STATE10 <> : (order=1) +STATE8 -[#6A5ACD,bold]-> STATE9 <> : [guardVarEquals("forward9")] (order=0) +STATE8 -[#6A5ACD,bold]-> STATE10 <> : (order=1) STATE2 -[#1E90FF,bold]-> STATE_EXTRA_1 <> <> : EVENTX -STATE2 -[#32CD32,bold]-> STATE1 <> : [guardEventHeaderEquals("header1","foo")] (order=0) -STATE2 -[#32CD32,bold]-> STATE_EXTRA_1 <> : (order=1) +STATE2 -[#FF69B4,bold]-> STATE1 <> : [guardEventHeaderEquals("header1","foo")] (order=0) +STATE2 -[#FF69B4,bold]-> STATE_EXTRA_1 <> : (order=1) STATE_EXTRA_1 -[#1E90FF,bold]-> STATE_EXTRA_3 <> <> : EVENTY STATE_EXTRA_1 -[#1E90FF,bold]-> CANCEL <> <> : EVENT_CANCEL_2 STATE_EXTRA_2 -[#1E90FF,bold]-> CANCEL <> <> : EVENT_CANCEL_2 -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype hide <> stereotype hide <> stereotype hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype hide <> stereotype STATEZ --> [*] diff --git a/state_machine_exporter/src/test/resources/golden/ThreeStateMachineConfiguration/ThreeStateMachineConfiguration.scxml.xml b/state_machine_exporter/src/test/resources/golden/ThreeStateMachineConfiguration/ThreeStateMachineConfiguration.scxml.xml index e16d01f..2b81fe0 100644 --- a/state_machine_exporter/src/test/resources/golden/ThreeStateMachineConfiguration/ThreeStateMachineConfiguration.scxml.xml +++ b/state_machine_exporter/src/test/resources/golden/ThreeStateMachineConfiguration/ThreeStateMachineConfiguration.scxml.xml @@ -1,107 +1,7 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + @@ -115,10 +15,34 @@ - - + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -131,22 +55,93 @@ - - - + + + + + + - + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -156,9 +151,14 @@ - - - + + + + + + + + diff --git a/state_machine_exporter/src/test/resources/golden/TwoStateMachineExtraFunctionsConfiguration/TwoStateMachineConfiguration.png b/state_machine_exporter/src/test/resources/golden/TwoStateMachineExtraFunctionsConfiguration/TwoStateMachineConfiguration.png index 52657ce..d0df9c6 100644 Binary files a/state_machine_exporter/src/test/resources/golden/TwoStateMachineExtraFunctionsConfiguration/TwoStateMachineConfiguration.png and b/state_machine_exporter/src/test/resources/golden/TwoStateMachineExtraFunctionsConfiguration/TwoStateMachineConfiguration.png differ diff --git a/state_machine_exporter/src/test/resources/golden/TwoStateMachineExtraFunctionsConfiguration/TwoStateMachineConfiguration.puml b/state_machine_exporter/src/test/resources/golden/TwoStateMachineExtraFunctionsConfiguration/TwoStateMachineConfiguration.puml index 10ae77d..f112bb7 100644 --- a/state_machine_exporter/src/test/resources/golden/TwoStateMachineExtraFunctionsConfiguration/TwoStateMachineConfiguration.puml +++ b/state_machine_exporter/src/test/resources/golden/TwoStateMachineExtraFunctionsConfiguration/TwoStateMachineConfiguration.puml @@ -42,17 +42,17 @@ hide <> stereotype [*] --> STATE1 -state STATE17 <> -state STATE16 <> -state STATE14 <> -state STATE12 <> -state STATE11 <> -state STATE8 <> state STATEY <> -state STATE20 <> -state STATE9 <> -state STATE19 <> +state STATE16 <> +state STATE17 <> state STATE18 <> +state STATE19 <> +state STATE20 <> +state STATE11 <> +state STATE12 <> +state STATE14 <> +state STATE9 <> +state STATE8 <> STATE1 -[#1E90FF,bold]-> STATE2 <> <> : EVENT1 STATE2 -[#1E90FF,bold]-> STATE3 <> <> : EVENT2 @@ -80,47 +80,47 @@ STATEY -[#FF6347,bold]-> STATEZ <> : (order=1) STATE16 -[#4682B4,bold]-> STATE17 <> : [guardVarEquals("value1")] (order=0) STATE16 -[#4682B4,bold]-> STATE18 <> : [guardVarEquals("value2")] (order=1) STATE16 -[#4682B4,bold]-> STATE19 <> : (order=2) -STATE17 -[#FF6347,bold]-> STATE20 <> : [guardEventHeaderEquals("header1","foo")] (order=0) -STATE17 -[#FF6347,bold]-> STATE16 <> : (order=1) -STATE18 -[#6A5ACD,bold]-> STATE19 <> : [guardVarEquals("value3")] (order=0) -STATE18 -[#6A5ACD,bold]-> STATE20 <> : (order=1) -STATE19 -[#FFD700,bold]-> STATE1 <> : [guardVarEquals("reset")] (order=0) -STATE19 -[#FFD700,bold]-> STATE20 <> : (order=1) -STATE20 -[#4682B4,bold]-> STATE5 <> : [guardEventHeaderEquals("header2","bar")] (order=0) -STATE20 -[#4682B4,bold]-> STATE1 <> : (order=1) -STATE11 -[#6A5ACD,bold]-> STATE13 <> : [guardVarEquals("goTo13")] (order=0) -STATE11 -[#6A5ACD,bold]-> STATE14 <> : [guardVarEquals("goTo14")] (order=1) -STATE11 -[#6A5ACD,bold]-> STATE15 <> : (order=2) -STATE12 -[#FFD700,bold]-> STATE10 <> : [guardVarEquals("goBack10")] (order=0) -STATE12 -[#FFD700,bold]-> STATE11 <> : (order=1) +STATE17 -[#32CD32,bold]-> STATE20 <> : [guardEventHeaderEquals("header1","foo")] (order=0) +STATE17 -[#32CD32,bold]-> STATE16 <> : (order=1) +STATE18 -[#FFD700,bold]-> STATE19 <> : [guardVarEquals("value3")] (order=0) +STATE18 -[#FFD700,bold]-> STATE20 <> : (order=1) +STATE19 -[#6A5ACD,bold]-> STATE1 <> : [guardVarEquals("reset")] (order=0) +STATE19 -[#6A5ACD,bold]-> STATE20 <> : (order=1) +STATE20 -[#FF69B4,bold]-> STATE5 <> : [guardEventHeaderEquals("header2","bar")] (order=0) +STATE20 -[#FF69B4,bold]-> STATE1 <> : (order=1) +STATE11 -[#FF6347,bold]-> STATE13 <> : [guardVarEquals("goTo13")] (order=0) +STATE11 -[#FF6347,bold]-> STATE14 <> : [guardVarEquals("goTo14")] (order=1) +STATE11 -[#FF6347,bold]-> STATE15 <> : (order=2) +STATE12 -[#4682B4,bold]-> STATE10 <> : [guardVarEquals("goBack10")] (order=0) +STATE12 -[#4682B4,bold]-> STATE11 <> : (order=1) STATE14 -[#32CD32,bold]-> STATE12 <> : [guardVarEquals("loop12")] (order=0) STATE14 -[#32CD32,bold]-> STATE16 <> : (order=1) -STATE9 -[#32CD32,bold]-> STATE8 <> : [guardVarEquals("stepBack")] (order=0) -STATE9 -[#32CD32,bold]-> STATE7 <> : [guardVarEquals("stepBackMore")] (order=1) -STATE9 -[#32CD32,bold]-> STATE6 <> : (order=2) -STATE8 -[#FF69B4,bold]-> STATE9 <> : [guardVarEquals("forward9")] (order=0) -STATE8 -[#FF69B4,bold]-> STATE10 <> : (order=1) +STATE9 -[#FFD700,bold]-> STATE8 <> : [guardVarEquals("stepBack")] (order=0) +STATE9 -[#FFD700,bold]-> STATE7 <> : [guardVarEquals("stepBackMore")] (order=1) +STATE9 -[#FFD700,bold]-> STATE6 <> : (order=2) +STATE8 -[#6A5ACD,bold]-> STATE9 <> : [guardVarEquals("forward9")] (order=0) +STATE8 -[#6A5ACD,bold]-> STATE10 <> : (order=1) STATE5 -[#1E90FF,bold]-> STATE_EXTRA_1 <> <> : EVENTX STATE_EXTRA_1 -[#1E90FF,bold]-> CANCEL <> <> : EVENT_CANCEL STATE_EXTRA_1 -[#1E90FF,bold]-> CANCEL <> <> : EVENT_CANCEL_2 -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype -hide <> stereotype hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype hide <> stereotype hide <> stereotype hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype +hide <> stereotype hide <> stereotype STATEZ --> [*] diff --git a/state_machine_exporter/src/test/resources/golden/TwoStateMachineExtraFunctionsConfiguration/TwoStateMachineConfiguration.scxml.xml b/state_machine_exporter/src/test/resources/golden/TwoStateMachineExtraFunctionsConfiguration/TwoStateMachineConfiguration.scxml.xml index 7ff6a7e..4f9b7c7 100644 --- a/state_machine_exporter/src/test/resources/golden/TwoStateMachineExtraFunctionsConfiguration/TwoStateMachineConfiguration.scxml.xml +++ b/state_machine_exporter/src/test/resources/golden/TwoStateMachineExtraFunctionsConfiguration/TwoStateMachineConfiguration.scxml.xml @@ -1,112 +1,42 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -119,22 +49,93 @@ - - - + + + + + + - + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -144,10 +145,9 @@ - - + - +