Sha256: 9a46f341224cfc5628252ca5f820fe9b6c885337fa2abb57b4b0158bbd0dad2c

Contents?: true

Size: 810 Bytes

Versions: 16

Compression:

Stored size: 810 Bytes

Contents

# frozen_string_literal: true

require 'k_log'

module Ad
  module AgentArchitecture
    module Report
      # Print workflow details
      class WorkflowListReport
        include KLog::Logging

        def print
          # tp query, :workflow_name, :workflow_description, :section_name, :section_description, :section_order, :step_name, :step_order, :step_prompt, :inputs, :outputs
          tp query, :workflow_name, :section_name, :step_name, :step_prompt, :inputs, :outputs
        end

        def query
          Ad::AgentArchitecture::Database::SQLQuery.query(:workflow_details).map do |row|
            row[:inputs] = JSON.parse(row[:inputs]) if row[:inputs]
            row[:outputs] = JSON.parse(row[:outputs]) if row[:outputs]
            row
          end
        end
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
ad-agent_architecture-0.0.24 lib/ad/agent_architecture/report/workflow_list_report.rb
ad-agent_architecture-0.0.23 lib/ad/agent_architecture/report/workflow_list_report.rb
ad-agent_architecture-0.0.22 lib/ad/agent_architecture/report/workflow_list_report.rb
ad-agent_architecture-0.0.21 lib/ad/agent_architecture/report/workflow_list_report.rb
ad-agent_architecture-0.0.20 lib/ad/agent_architecture/report/workflow_list_report.rb
ad-agent_architecture-0.0.19 lib/ad/agent_architecture/report/workflow_list_report.rb
ad-agent_architecture-0.0.18 lib/ad/agent_architecture/report/workflow_list_report.rb
ad-agent_architecture-0.0.17 lib/ad/agent_architecture/report/workflow_list_report.rb
ad-agent_architecture-0.0.16 lib/ad/agent_architecture/report/workflow_list_report.rb
ad-agent_architecture-0.0.15 lib/ad/agent_architecture/report/workflow_list_report.rb
ad-agent_architecture-0.0.14 lib/ad/agent_architecture/report/workflow_list_report.rb
ad-agent_architecture-0.0.13 lib/ad/agent_architecture/report/workflow_list_report.rb
ad-agent_architecture-0.0.12 lib/ad/agent_architecture/report/workflow_list_report.rb
ad-agent_architecture-0.0.11 lib/ad/agent_architecture/report/workflow_list_report.rb
ad-agent_architecture-0.0.10 lib/ad/agent_architecture/report/workflow_list_report.rb
ad-agent_architecture-0.0.9 lib/ad/agent_architecture/report/workflow_list_report.rb