# File lib/ruote/dashboard.rb, line 1379 def self.schedule_to_h(sched) h = sched.dup class << h; attr_accessor :h; end h.h = sched # # for the sake of ProcessStatus#to_h h.delete('_rev') h.delete('type') msg = h.delete('msg') owner = h.delete('owner') h['wfid'] = owner['wfid'] h['action'] = msg['action'] h['type'] = msg['flavour'] h['owner'] = Ruote::FlowExpressionId.new(owner) h['target'] = Ruote::FlowExpressionId.new(msg['fei']) if msg['fei'] h end