- Script Task to pull all incidents:
var system = java.lang.System;
var total = execution.getProcessEngine().getRepositoryService().createProcessDefinitionQuery().orderByProcessDefinitionVersion().desc().list();
system.out.println("size:"+total.length);
for(var z in total){
system.out.println(total[z].key +" - "+total[z].version);
}
2.Connector configuration: