Examples of addLogInfo()


Examples of eu.planets_project.ifr.core.wee.api.workflow.WorkflowResultItem.addLogInfo()

        try {
          // Migrate Object round-trip
            wfResultItem.addLogInfo("starting migration A-B");
          URI dgoB = runMigration(migrate1, dgoA.getPermanentUri(), false);
            wfResultItem.addLogInfo("completed migration A-B");
            wfResultItem.addLogInfo("starting migration B-C");
          URI dgoC = runMigration(migrate2, dgoB, true);
            wfResultItem.addLogInfo("completed migration B-C");

          //TODO: use the identification service for data enrichment (e.g. mime type of output object)
           
View Full Code Here

Examples of eu.planets_project.ifr.core.wee.api.workflow.WorkflowResultItem.addLogInfo()

            wfResultItem.addLogInfo("starting migration A-B");
          URI dgoB = runMigration(migrate1, dgoA.getPermanentUri(), false);
            wfResultItem.addLogInfo("completed migration A-B");
            wfResultItem.addLogInfo("starting migration B-C");
          URI dgoC = runMigration(migrate2, dgoB, true);
            wfResultItem.addLogInfo("completed migration B-C");

          //TODO: use the identification service for data enrichment (e.g. mime type of output object)
           
          wfResultItem
            .addLogInfo("successfully completed workflow for digitalObject with permanent uri:"
View Full Code Here

Examples of eu.planets_project.ifr.core.wee.api.workflow.WorkflowResultItem.addLogInfo()

          URI dgoC = runMigration(migrate2, dgoB, true);
            wfResultItem.addLogInfo("completed migration B-C");

          //TODO: use the identification service for data enrichment (e.g. mime type of output object)
           
          wfResultItem
            .addLogInfo("successfully completed workflow for digitalObject with permanent uri:"
                + processingDigo);
          wfResultItem.setEndTime(System.currentTimeMillis());

        } catch (Exception e) {
View Full Code Here

Examples of eu.planets_project.ifr.core.wee.api.workflow.WorkflowResultItem.addLogInfo()

        } catch (Exception e) {
          String err = "workflow execution error for digitalObject #"
              + count + " with permanent uri: " + processingDigo
              + "";
          wfResultItem.addLogInfo(err + " " + e);
          wfResultItem.setEndTime(System.currentTimeMillis());
        }
        count++;
      }
View Full Code Here

Examples of eu.planets_project.ifr.core.wee.api.workflow.WorkflowResultItem.addLogInfo()

      //document: add report on outputDigitalObject
      wfResultItem.addExtractedInformation(result.getProperties().toString());
      wfResultItem.addLogInfo("comparisson completed");
     
    } catch (Exception e) {
      wfResultItem.addLogInfo("comparisson failed: "+e);
      throw e;
    }
    }
   
   
View Full Code Here

Examples of eu.planets_project.ifr.core.wee.api.workflow.WorkflowResultItem.addLogInfo()

                    log.error(e.getClass() + ": " + e.getMessage());
                    System.out.println(e);
                    WorkflowResultItem wfResultItem = new WorkflowResultItem(dgo.getPermanentUri(),
                        WorkflowResultItem.GENERAL_WORKFLOW_ACTION,
                        System.currentTimeMillis());
                    wfResultItem.addLogInfo(err);
                    wfResult.addWorkflowResultItem(wfResultItem);
                }
                count++;
            }
        } finally {
View Full Code Here

Examples of eu.planets_project.ifr.core.wee.api.workflow.WorkflowResultItem.addLogInfo()

        wfResultItem.setServiceReport(report);

        if (report.getType() == Type.ERROR) {
            String s = "Service execution failed: " + report.getMessage();
            log.debug(s);
            wfResultItem.addLogInfo(s);
            throw new Exception(s);
        }

        if (types.size() < 1) {
            String s = "The specified file type is currently not supported by this workflow";
View Full Code Here

Examples of eu.planets_project.ifr.core.wee.api.workflow.WorkflowResultItem.addLogInfo()

        }

        if (types.size() < 1) {
            String s = "The specified file type is currently not supported by this workflow";
            log.debug(s);
            wfResultItem.addLogInfo(s);
            throw new Exception(s);
        }

        String[] strings = new String[types.size()];
        int count = 0;
View Full Code Here

Examples of eu.planets_project.ifr.core.wee.api.workflow.WorkflowResultItem.addLogInfo()

      //migrate
      MigrateResult migrateResult = this.migrate.migrate(digO,
          migrateFromURI, migrateToURI, parameterList);
     
      wfResultItem.setEndTime(System.currentTimeMillis());
      wfResultItem.addLogInfo("migration from: "+migrateFromURI+" to: "+migrateToURI+" took place");
      ServiceReport report = migrateResult.getReport();
      //report service status and type
      wfResultItem.setServiceReport(report);
      if (report.getType() == Type.ERROR) {
        String s = "Service execution failed: " + report.getMessage();
View Full Code Here

Examples of eu.planets_project.ifr.core.wee.api.workflow.WorkflowResultItem.addLogInfo()

      //report service status and type
      wfResultItem.setServiceReport(report);
      if (report.getType() == Type.ERROR) {
        String s = "Service execution failed: " + report.getMessage();
        log.debug(s);
        wfResultItem.addLogInfo(s);
        throw new Exception(s);
      }
      //add report on outputDigitalObject
      wfResultItem.setOutputDigitalObject(migrateResult
          .getDigitalObject());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.