def trigger(trigger, input)
      # TODO: Change by: Configuration.not_empty_key?
      # TODO: Move to this class: Flow.trigger?
      unless @config.flow_trigger?(trigger)
        raise FlowTriggerNotFound, "Unable to trigger: #{trigger}"
      end

      # TODO: Move in a normal object tree: Flow > Trigger > Action
      output_by_tag = {}
      output = {}
      @config['flow'][trigger.to_s].each do |step|
        output = trigger_step(step, input, output, output_by_tag)
      end
    end
def trigger(trigger, input)
      # TODO: Change by: Configuration.not_empty_key?
      # TODO: Move to this class: Flow.trigger?
      unless @config.flow_trigger?(trigger)
        raise FlowTriggerNotFound, "Unable to trigger: #{trigger}"
      end

      # TODO: Move in a normal object tree: Flow > Trigger > Action
      output_by_tag = {}
      output = {}
      @config['flow'][trigger.to_s].each do |step|
        output = trigger_step(step, input, output, output_by_tag)
      end
    end
Public: Constructor.

 config - Default Hahs of config.

 Examples

    Flow.new({})
    # => <Speedflow::Flow>

 Returns a Hash of config.
 Public: Trigger.

 trigger - Trigger name.
 input   - Input Hash.

 Returns nothing.