Class: Ad::AgentArchitecture::Report::WorkflowListReport
- Inherits:
-
Object
- Object
- Ad::AgentArchitecture::Report::WorkflowListReport
- Includes:
- KLog::Logging
- Defined in:
- lib/ad/agent_architecture/report/workflow_list_report.rb
Overview
Print workflow details
Instance Method Summary collapse
Instance Method Details
#print ⇒ Object
12 13 14 15 |
# File 'lib/ad/agent_architecture/report/workflow_list_report.rb', line 12 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 |
#query ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/ad/agent_architecture/report/workflow_list_report.rb', line 17 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 |