Skip to content
Snippets Groups Projects
Commit 56e617cd authored by Sebastian Ebert's avatar Sebastian Ebert
Browse files

fixed exporter

parent 196e06c6
No related branches found
No related tags found
No related merge requests found
......@@ -45,11 +45,20 @@ public class PnmlExporter {
Set<ArcHLAPI> convertedArcs = convertAndIncludeArcs(petriNet, convertedPages, convertedPlaces, convertedTransitions, convertedRefTransitions, convertedRefPlaces);
// export the created objects to pnml
String targetPath = UUID.randomUUID().toString() + fileNameSuffix + ".pnml";
String homeDirectory = System.getProperty("user.dir");
String targetPath = homeDirectory + "/temp/pnml/" + UUID.randomUUID().toString() + fileNameSuffix + ".pnml";
boolean hasFailed = false;
try {
File myObj = new File(targetPath);
if (!myObj.exists()){
myObj.getParentFile().mkdirs();
}
if (myObj.createNewFile()) {
// logger.info("File created: " + myObj.getName());
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment