lib/ruote/exp/flow_expression.rb
# Returns a Graphviz dot string representing this expression (and its
# children).
#
Returns a Graphviz dot string representing this expression (and its
children).
Returns a Graphviz dot string representing this expression ( and its children ) .
def to_dot(opts)
      i = fei()
      label = "#{[ i.wfid, i.subid, i.expid].join(' ')} #{tree.first}"
      label += " (#{h.state})" if h.state
      a = []
      a << "\"#{i.to_storage_id}\" [ label=\"#{label}\" ];"
      if h.parent_id
        a << "\"#{i.to_storage_id}\" -> \"#{parent_id.to_storage_id}\";"
      end
      h.children.each do |cfei|
        a << "\"#{i.to_storage_id}\" -> \"#{Ruote.to_storage_id(cfei)}\";"
      end
      a
    end
def to_dot ( opts ) i = fei ( ) label = "#{[ i.wfid, i.subid, i.expid].join(' ')} #{tree.first}" label += " (#{h.state})" if h . state a = [ ] a << "\"#{i.to_storage_id}\" [ label=\"#{label}\" ];" if h . parent_id a << "\"#{i.to_storage_id}\" -> \"#{parent_id.to_storage_id}\";" end h . children . each do | cfei | a << "\"#{i.to_storage_id}\" -> \"#{Ruote.to_storage_id(cfei)}\";" end a end
Returns a Graphviz dot string representing this expression (and its
children).
Returns a Graphviz dot string representing this expression ( and its children ) .
# parent # children
opts