Attempt to see if the SVG generated from BPMN can be updated by Inkscape with Title and description whicj will be read later to automatically generate documentation.
We are taking BMPN.IO SVG output file and reading it into Inkscape for updating Title and Descriptionh.
Note
|
It would be preferred if we could do this with *.BPMN file. This file is XML formatted and extremely complex.
|
File name | Content |
---|---|
spmn-sample.svg |
Larger DWIP flow diagram with title, descriptions and color |
g5583.svg |
Single element on the flow diagram |
Note
|
g5583.svg. This version of the file was manually cut out of the larger flow diagram. |
Use Node and some NPM modules to perform the HTML to JSON conversion. We are doing this to make the searching of the SVG eaiser and quicker.
Use a local GIT repository and attempt to publish to GitHub account.
Note
|
In past attempts at this it failed because I added the readme.md on GITHib and was unable to push it back to this local repository. |
Initialize this repository with a README This will let you immediately clone the repository to your computer. Skip this step if you’re importing an existing repository.
git remote add origin https://github.com/GeekMustHave/BPMN-SVG-Decode.git git push -u origin master
Nodemon is a utility that will monitor for any changes in your source and automatically restart your server
npm install nodemon -g
package.json
to use `nodemonnpm start{ "name": "bmpn-svg-decode", "version": "1.0.0", "description": "Test for BPMN SVG decoding ", "main": "index.js", "scripts": { "start": "nodemon index.js", (1) "test": "echo \"Error: no test specified\" && exit 1" }, "repository": { "type": "git", "url": "https://github.com/geekmusthave/BPMN-SVG-Decode" }, "author": "John Schuster", "license": "MIT", "dependencies": { "himalaya": "^1.0.0" } }
-
This new command will allow for
npm start
to be used to kick off the code.
This node module converts HTML into JSON, plain and simple.
npm install himalaya --save