debug workflow template and createDoc