def render_default_template(workitem)

      workitem = workitem.to_h if workitem.respond_to?(:to_h)

      s = []
      s << "workitem for #{workitem['participant_name']}"
      s << ''
      s << Rufus::Json.pretty_encode(workitem['fei'])
      s << ''
      workitem['fields'].keys.sort.each do |key|
        s << " - '#{key}'  ==>  #{Rufus::Json.encode(workitem['fields'][key])}"
      end
      s.join("\n")
    end
def render_default_template(workitem)

      workitem = workitem.to_h if workitem.respond_to?(:to_h)

      s = []
      s << "workitem for #{workitem['participant_name']}"
      s << ''
      s << Rufus::Json.pretty_encode(workitem['fei'])
      s << ''
      workitem['fields'].keys.sort.each do |key|
        s << " - '#{key}'  ==>  #{Rufus::Json.encode(workitem['fields'][key])}"
      end
      s.join("\n")
    end
Simply returns a pretty-printed view of the workitem