Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 684 Bytes

visualising-flows.md

File metadata and controls

18 lines (12 loc) · 684 Bytes

Visualising flows

To see an interactive visualisation of a smart answer flow, append /y/visualise to the root of a smartanswer URL e.g. http://smartanswers.dev.gov.uk/<my-flow>/y/visualise/

To see a static visualisation of a smart answer flow, using Graphviz:

# Download graphviz representation
$ curl https://www.gov.uk/marriage-abroad/y/visualise.gv --silent > /tmp/marriage-abroad.gv

# Use Graphviz to generate a PNG
$ dot /tmp/marriage-abroad.gv -Tpng > /tmp/marriage-abroad.png

# Open the PNG
$ open /tmp/marriage-abroad.png

NOTE. This assumes you already have Graphviz installed. You can install it using Homebrew on a Mac (brew install graphviz).