fqn names of events and states
This commit is contained in:
22
InspectGolden.java
Normal file
22
InspectGolden.java
Normal file
@@ -0,0 +1,22 @@
|
||||
import java.nio.file.*;
|
||||
import java.util.*;
|
||||
import click.kamil.springstatemachineexporter.service.ExportService;
|
||||
import click.kamil.springstatemachineexporter.exporter.*;
|
||||
import click.kamil.springstatemachineexporter.analysis.service.EnrichmentService;
|
||||
|
||||
public class InspectGolden {
|
||||
public static void main(String[] args) throws Exception {
|
||||
Path inputDir = Path.of("state_machines/complex_state_machine");
|
||||
Path tempDir = Files.createTempDirectory("golden-update-");
|
||||
|
||||
List<StateMachineExporter> exporters = List.of(new PlantUml(), new Dot(), new Scxml(), new JsonExporter());
|
||||
EnrichmentService enrichmentService = new EnrichmentService(Collections.emptyList());
|
||||
ExportService exportService = new ExportService(exporters, enrichmentService);
|
||||
|
||||
exportService.runExporter(inputDir, tempDir, null, true);
|
||||
|
||||
try (var stream = Files.list(tempDir)) {
|
||||
stream.forEach(System.out::println);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user