def add_state(node, user, params)
      # => Create a Node-State Object
      (n = {}) && (n[:name] = node)
      n[:created] = DateTime.now
      n[:creator] = user
      n[:type] = params['type'] if params['type']
      # => Build the Updated State
      update_state(n)
      # => Return the Added Node
      find_state(node)
    end
def add_state(node, user, params)
      # => Create a Node-State Object
      (n = {}) && (n[:name] = node)
      n[:created] = DateTime.now
      n[:creator] = user
      n[:type] = params['type'] if params['type']
      # => Build the Updated State
      update_state(n)
      # => Return the Added Node
      find_state(node)
    end
=> Add Node to the State