Generates executable workflows from gliffy diagrams diagrams
npm install gliflow --saveSupported shapes:
com.gliffy.shape.flowchart.flowchart_v1.default.input_output- Accepts input values which are stored in the process and may be used later to evaluate decisions or display outputs.com.gliffy.shape.flowchart.flowchart_v1.default.display- Displays the text (evaluated asJavaScript) contained in the shape.com.gliffy.shape.flowchart.flowchart_v1.default.decision- Evaluates conditions defined on it's edges (lines) and proceeds to the next shape based on whether the condition evalutes totrue.com.gliffy.shape.flowchart.flowchart_v1.default.process- Evaluates the text contained in the shape asJavaScript.
const gliflow = require('gliflow');
const g = gliflow(gliffyJson);
g.input('enter_first_number', 1).next();
g.input('enter_second_number', 2).next();
console.log(g.awaitingIO().text); See the tests for additional examples