  def get_workflows
    Log.add_info(request, params.inspect)

    @group_id = (params[:id] || '0')  # '0' for ROOT
    SqlHelper.validate_token([@group_id])

    ary = TemplatesHelper.get_tmpl_folder

    unless ary.nil? or ary.empty?
      @tmpl_workflows_folder = ary[2]
    end

    session[:group_id] = params[:id]
    session[:group_option] = 'workflow'

    render(:partial => 'ajax_workflows', :layout => false)
  end
The software constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component.