https://github.com/rustyx/visualize_webflow
Spring WebFlow visualization utility
https://github.com/rustyx/visualize_webflow
Last synced: 12 months ago
JSON representation
Spring WebFlow visualization utility
- Host: GitHub
- URL: https://github.com/rustyx/visualize_webflow
- Owner: rustyx
- License: gpl-2.0
- Created: 2014-10-14T10:25:51.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-10-16T09:48:32.000Z (over 11 years ago)
- Last Synced: 2025-03-18T08:11:18.715Z (about 1 year ago)
- Language: Python
- Size: 227 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# visualize_webflow
### - Spring WebFlow visualization utility
This python script processes spring webflow configuration (flow.xml files) and makes a graph of the flow states using graphviz dot utility.
**Note - [python](https://www.python.org/downloads/) and [graphviz](http://www.graphviz.org/Download.php)** must be available on the PATH.
```
usage: visualize_webflow.py [-h] [-d] [-s] [--skip-flows SKIPFLOWS]
[--skip-states SKIPSTATES]
[--split-states SPLITSTATES]
[--merge-states-min-inputs MERGEMINTOTAL]
[--merge-states-min-common-inputs MERGEMINCOMMON]
[--merge-states-max-diff-inputs MERGEMAXDIFF]
[--hide-conditions]
[--flow-id-path-steps FLOW_ID_PATH_STEPS]
[-o OUTPUT] [-v]
input
positional arguments:
input the path to or
optional arguments:
-h, --help show this help message and exit
-d, --dot invoke DOT to generate a PDF for each flow (requires
-o or -s)
-s, --split split output by subflow
--skip-flows SKIPFLOWS
comma-separated list of subflows to skip
--skip-states SKIPSTATES
comma-separated list of states to skip
--split-states SPLITSTATES
comma-separated list of states to split (for
frequently used states)
--merge-states-min-inputs MERGEMINTOTAL
auto-merge states with at least this many inputs
(default 5)
--merge-states-min-common-inputs MERGEMINCOMMON
auto-merge states with at least this many common
inputs (default 3)
--merge-states-max-diff-inputs MERGEMAXDIFF
auto-merge states with at most this many different
inputs (default 7)
--hide-conditions hide decision state conditions
--flow-id-path-steps FLOW_ID_PATH_STEPS
how many steps in the flow.xml path to use as flow ID
(default 1)
-o OUTPUT, --output OUTPUT
output DOT file name (ignored if -s is specified)
-v, --verbose be verbose
```
### Example output
