Closed estambakio-sc closed 6 years ago
Package viz.js can be use for FSM directed graph auto-building and visualization. See an example which works in IE 11 also.
A converter from our state machine configuration to the .dot language expected by GraphViz can be written similar to this package.
States and transitions are implemented as independently editable within own editors.
TODO:
Notes for reference
For future reference: (possibly better) solution for workflow visualization: mxGraph
example: full editor, simpler editor
Upsides: 90 degree arrows, names for vertexes and arrows, drag&drop editor.
Challenges: it's a big one and could take quite some time to get comfortable with.
Current demo after renaming directory.
Implemented, merged into master
in #42
Current demo: link
Goal: create a simple schema editor (React component) which has a built-in editable JSON schema where a user can define:
Names of states are parsed from
transitions
object. User cannot just add a state if there is no corresponding transition which mentions this state.Button
add transition
orcreate
opens up a modal dialog with a form, where user canfrom
andto
states or enter a new state nameevent
Ok
to close the modalThe component should emit new schema
onChange
(if schema is valid).