Skip to content

Instantly share code, notes, and snippets.

@colindean
Created May 18, 2017 18:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save colindean/fdd64b66de3c461ff2ee8d7aad907abb to your computer and use it in GitHub Desktop.
Save colindean/fdd64b66de3c461ff2ee8d7aad907abb to your computer and use it in GitHub Desktop.
A workflow diagram for describing who is responsible for fixing problems in an office space
digraph {
label="Building Problem Assignee Determination Workflow";
rankdir=TB;
nodesep=0.3;
#start
problem[ label="I have a problem with\nthe office space.", shape=ellipse]
#questions
Qbuilding[ label="Is is a problem with\nthe building itself?", shape=diamond]
Qconsumable[label="Does a consumable item\nneed to be replaced?\nE.g. lightbulb, toilet paper", shape=diamond]
Qusage [label="Is it a problem with\nhow we are using the space?", shape=diamond]
Qvending [label="Is it a problem with\na machine with a\nVENDOR Company\n label on it?", shape=diamond]
Qempty [label="Would it be a problem\nfor the next tenant if \nwe were to leave?", shape=diamond]
# responsible parties
Facilities [ label="Action: Facilities", shape=tripleoctagon, color=black, fillcolor=red, style=filled, peripheries=2]
Landlord [label="Action: Landlord", shape=tripleoctagon, color=black, fillcolor=red, style=filled, peripheries=2]
Vendor [ label="Action: Vendor", shape=tripleoctagon, color=black, fillcolor=red, style=filled, peripheries=2]
# the chart
problem -> Qbuilding [label="Think about your problem!"]
Qbuilding -> Qconsumable [label="Yes", color="green"]
Qbuilding -> Qusage [label="No", color="red"]
Qempty -> Landlord [label="Yes", color="green"]
Qconsumable -> Facilities [label="Yes", color="green"]
Qconsumable -> Qempty [label="No", color="red"]
Qusage -> Facilities [label="Yes", color="green"]
Qempty -> Facilities [label="No", color="red"]
Qvending -> Facilities [label="No", color="red"]
Qvending -> Vendor [label="Yes", color="green"]
Qusage -> Qvending [label="No", color="red"]
}
all:
dot -Tpng -o building-issue-workflow.png building-issue-workflow.dot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment