1 class JobsController < ApplicationController
3 def generate_provenance(jobs)
8 collections << j[:output]
9 collections.concat(ProvenanceHelper::find_collections(j[:script_parameters]))
10 nodes << {:uuid => j[:script_version]}
13 Collection.where(uuid: collections).each do |c|
17 @svg = ProvenanceHelper::create_provenance_graph nodes, "provenance_svg", {
19 :all_script_parameters => true,
20 :script_version_nodes => true}
26 @jobs = Job.where(uuid: params[:uuid])
27 generate_provenance(@jobs)
34 generate_provenance([@object])
46 %w(Attributes Provenance Metadata JSON API)