Sha256: 764e42e5a7c9db3e8110588d007ba0310a9ef1560d06a5e125f0433a9b645e31
Contents?: true
Size: 1.08 KB
Versions: 13
Compression:
Stored size: 1.08 KB
Contents
# frozen_string_literal: true module Ad module AgentArchitecture module Report # Print workflow details class WorkflowDetailReport include KLog::Logging def print(workflow) log.section_heading 'Workflow Details Report' log.kv 'Name', workflow.name # log.kv 'Description', workflow.description workflow.sections.each do |section| log.section_heading "Section: #{section.name}" # log.kv 'Order', section.order section.steps.each do |step| log.section_heading "Step: #{step.name}" # log.kv 'Order', step.order # log.kv 'Prompt', step.prompt # puts step.input_attributes.first # An ERROR here means you have not configured an attribute name log.kv 'Input Attributes', step.input_attributes.map { |ia| ia.attribute.name }.join(', ') log.kv 'Output Attributes', step.output_attributes.map { |oa| oa.attribute&.name }.join(', ') end end end end end end end
Version data entries
13 entries across 13 versions & 1 rubygems