As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
var list = new Array(); var name= url.templateArgs.name; var selectedworkflow; var tasks = new Array(); var works = workflow.getDefinitionByName("jbpm$workflowname").getActiveInstances(); for each(single in works) { if(single.description == name){ selectedworkflow = single.getPaths(); for each(path in selectedworkflow){ tasks=path.getTasks(); for each(task in tasks){ list.push(task); } } } } model.tasklist = list; model.work = works; model.name = name;