workflow: specify workflow structure in json