use of org.kie.server.api.model.admin.MigrationReportInstanceList in project droolsjbpm-integration by kiegroup.
the class ProcessAdminServiceBase method convertMigrationReports.
/*
* helper methods
*/
protected MigrationReportInstanceList convertMigrationReports(List<MigrationReport> reports) {
if (reports == null) {
return new MigrationReportInstanceList();
}
MigrationReportInstance[] reportInstances = new MigrationReportInstance[reports.size()];
int index = 0;
for (MigrationReport report : reports) {
MigrationReportInstance instance = convertMigrationReport(report);
reportInstances[index] = instance;
index++;
}
return new MigrationReportInstanceList(reportInstances);
}
use of org.kie.server.api.model.admin.MigrationReportInstanceList in project droolsjbpm-integration by kiegroup.
the class ConvertUtils method convertMigrationReports.
public static MigrationReportInstanceList convertMigrationReports(List<MigrationReport> reports) {
if (reports == null) {
return new MigrationReportInstanceList();
}
MigrationReportInstance[] reportInstances = new MigrationReportInstance[reports.size()];
int index = 0;
for (MigrationReport report : reports) {
MigrationReportInstance instance = convertMigrationReport(report);
reportInstances[index] = instance;
index++;
}
return new MigrationReportInstanceList(reportInstances);
}
Aggregations