lib/decision_tree/workflow.rb
def execute_workflow
    catch :exit do
      if @entry_points.empty?
        send(:__start_workflow)
      else
        # TODO: This should fail silently if an entry point is no longer
        # defined, this will allow for modification of the workflows with
        # existing changes in the DB.
        @entry_points.each { |ep| send(ep) }
      end
    end
  end
# Actually executes the workflow steps, by executing all the steps from
# either the start, or all previously reached entry points
Actually executes the workflow steps, by executing all the steps from
either the start, or all previously reached entry points
Actually executes the workflow steps by executing all the steps from either the start or all previously reached entry points
def execute_workflow
    catch :exit do
      if @entry_points.empty?
        send(:__start_workflow)
      else
        @entry_points.each { |ep| send(ep) }
      end
    end
  end
def execute_workflow catch :exit do if @entry_points . empty? send ( :__start_workflow ) else @entry_points . each { | ep | send ( ep ) } end end end
Actually executes the workflow steps, by executing all the steps from
either the start, or all previously reached entry points
Actually executes the workflow steps by executing all the steps from either the start or all previously reached entry points
# TODO: This should fail silently if an entry point is no longer # defined, this will allow for modification of the workflows with # existing changes in the DB.