Skip to content

Commit

Permalink
add new option for transformation (#105)
Browse files Browse the repository at this point in the history
* add new option for transformation

* Run linter

---------

Co-authored-by: Benjamin Weder <benjamin.weder@iaas.uni-stuttgart.de>
  • Loading branch information
LaviniaStiliadou and wederbn authored Oct 25, 2023
1 parent 7b57b9c commit c965d3b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
export const transformedWorkflowHandlers = {
NEW_TAB: "Open in new Tab",
SAVE_AS_FILE: "Save as File",
INLINE: "Inline",
};

// workflow event types dispatched by the EditorEventHandler
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,9 @@ export async function handleTransformedWorkflow(workflowXml) {
case transformedWorkflowHandlers.SAVE_AS_FILE: // save workflow to local file system
await saveXmlAsLocalFile(workflowXml, fileName);
break;
case transformedWorkflowHandlers.INLINE:
await loadDiagram(workflowXml, getModeler());
break;
default:
console.log(`Invalid transformed workflow handler ID ${handlerId}`);
}
Expand Down

0 comments on commit c965d3b

Please sign in to comment.