Search in sources :

Example 6 with MigrationReportInstanceList

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);
}
Also used : MigrationReportInstance(org.kie.server.api.model.admin.MigrationReportInstance) MigrationReportInstanceList(org.kie.server.api.model.admin.MigrationReportInstanceList) MigrationReport(org.jbpm.services.api.admin.MigrationReport)

Example 7 with MigrationReportInstanceList

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);
}
Also used : CaseMigrationReportInstance(org.kie.server.api.model.cases.CaseMigrationReportInstance) MigrationReportInstance(org.kie.server.api.model.admin.MigrationReportInstance) MigrationReportInstanceList(org.kie.server.api.model.admin.MigrationReportInstanceList) CaseMigrationReport(org.jbpm.casemgmt.api.admin.CaseMigrationReport) MigrationReport(org.jbpm.services.api.admin.MigrationReport)

Aggregations

MigrationReportInstanceList (org.kie.server.api.model.admin.MigrationReportInstanceList)7 MigrationReport (org.jbpm.services.api.admin.MigrationReport)3 ApiOperation (io.swagger.annotations.ApiOperation)2 ApiResponses (io.swagger.annotations.ApiResponses)2 HashMap (java.util.HashMap)2 Consumes (javax.ws.rs.Consumes)2 PUT (javax.ws.rs.PUT)2 Path (javax.ws.rs.Path)2 Produces (javax.ws.rs.Produces)2 Variant (javax.ws.rs.core.Variant)2 DeploymentNotFoundException (org.jbpm.services.api.DeploymentNotFoundException)2 NodeInstanceNotFoundException (org.jbpm.services.api.NodeInstanceNotFoundException)2 NodeNotFoundException (org.jbpm.services.api.NodeNotFoundException)2 ProcessInstanceNotFoundException (org.jbpm.services.api.ProcessInstanceNotFoundException)2 ExecutionErrorNotFoundException (org.jbpm.services.api.admin.ExecutionErrorNotFoundException)2 CommandScript (org.kie.server.api.commands.CommandScript)2 DescriptorCommand (org.kie.server.api.commands.DescriptorCommand)2 KieServerCommand (org.kie.server.api.model.KieServerCommand)2 ServiceResponse (org.kie.server.api.model.ServiceResponse)2 MigrationReportInstance (org.kie.server.api.model.admin.MigrationReportInstance)2