Method: Workflow::State#draw

Defined in:
lib/workflow/state.rb

#draw(graph) ⇒ Object



10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/workflow/state.rb', line 10

def draw(graph)
  defaults = {
    :label => to_s,
    :width => '1',
    :height => '1',
    :shape => 'ellipse'
  }

  node = graph.add_nodes(to_s, defaults.merge(meta))

  # Add open arrow for initial state
  # graph.add_edge(graph.add_node('starting_state', :shape => 'point'), node) if initial?

  node
end