Skip to content

Commit

Permalink
Update Visualising Flows - swap example to check-uk-visa
Browse files Browse the repository at this point in the history
  • Loading branch information
ellohez committed Oct 2, 2024
1 parent 8c5c81c commit 95ae333
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/debugging/visualising-flows.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# Visualising flows

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

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

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

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

# Open the PNG
$ open /tmp/marriage-abroad.png
$ open /tmp/check-uk-visa.png
```

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

0 comments on commit 95ae333

Please sign in to comment.