diff --git a/package.json b/package.json
index 0e1642e..99d1a2e 100644
--- a/package.json
+++ b/package.json
@@ -63,7 +63,7 @@
"ngx-markdown": "^12.0.1",
"protractor": "^7.0.0",
"rxjs": "^6.5.3",
- "sartography-workflow-lib": "^0.0.556",
+ "sartography-workflow-lib": "^0.0.558",
"tslib": "^2.3.0",
"uuid": "^8.3.2",
"zone.js": "^0.11.4"
diff --git a/src/app/modeler/modeler.component.html b/src/app/modeler/modeler.component.html
index d6c040d..e4fffd4 100644
--- a/src/app/modeler/modeler.component.html
+++ b/src/app/modeler/modeler.component.html
@@ -86,4 +86,4 @@
-
+
diff --git a/src/app/modeler/modeler.component.ts b/src/app/modeler/modeler.component.ts
index bf9614a..b4b5822 100644
--- a/src/app/modeler/modeler.component.ts
+++ b/src/app/modeler/modeler.component.ts
@@ -133,8 +133,24 @@ export class ModelerComponent implements AfterViewInit {
onSubmitFileToOpen() {
this.expandToolbar = false;
+ /** If it is a spreadsheet, create a DMN from it */
+ if (this.diagramFile && this.diagramFile.type.toLowerCase() === 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet') {
+ this.api.createDMNFromSS(this.diagramFile).subscribe(file => {
+ let fileMeta = {
+ id: 0,
+ content_type: 'text/xml',
+ name: 'new_dmn',
+ type: FileType.DMN,
+ }
+ this.diagramFile = newFileFromResponse(fileMeta, file);
+ console.log(this.diagramFile);
+ console.log(file);
+ this.readFile(this.diagramFile);
+ });
- if (this.diagramFile && ModelerComponent.isXmlFile(this.diagramFile)) {
+ }
+
+ else if (this.diagramFile && ModelerComponent.isXmlFile(this.diagramFile)) {
this.readFile(this.diagramFile);
} else {
this.handleImported({