*8212* partial port of workflow templates, make submission references more generic