<% require "toaster/model/automation_run" runs = [] auto = nil run = nil begin auto = cur_auto() runs = cur_runs() run = cur_run() puts "run #{run}" end %>

Automation Runs

<% runs.each_with_index { |row,id| clazz = row.success ? 'success' : 'error' active = row.id.to_s == param('run') clazz += ' active' if active param_run = active ? "" : row.id auto_name = row.automation ? row.automation.name : "n/a" param_hash = {"run" => param_run}.merge(row.automation ? {'auto' => row.automation.id} : {}) %> <% } %>
#UUIDAutomationStart Time Task ExecutionsDurationSuccessActions
<%= id+1 %> <%= row.uuid %> <% if row.automation %><% end %><%= auto_name %> <%= format_time(row.start_time) %> <%= row.get_num_task_executions() %> <%= to_minutes(row.end_time.to_i - row.start_time.to_i) %> <%= row.success ? "true" : "false" %> <% if row.automation %>details<% end %> <% if row.automation %>executed tasks<% end %>
<% if run %>

Details of Automation Run <%= run.uuid %>

Automation Attributes

<% if !run.automation %>
<% else %> <% id = 0 default_attributes = run.automation.get_flat_attributes() specific_attributes = run.get_flat_attributes() attrs = default_attributes.dup.merge(specific_attributes) attrs.each { |name,val| default_val = default_attributes[name] clazz = val == default_val ? " class=\"unremarkable\"".html_safe : "" %> > <% } %>
#AttributeDefault ValueSpecified Value
<%= id=id+1 %> <%= name %> <%= default_val %> <%= val %>
<% end %> <% if run.error_details && !run.error_details.empty? && %>

Error Details

<%= run.error_details %>
<% end %> <% end %>