Examples of WorkflowResult


Examples of eu.planets_project.ifr.core.wee.api.workflow.WorkflowResult

      log.debug("notifyComplete: complete for "+job_key+" experimentID: "+job.getExpID());
    }
  }
 
  private WorkflowResult retrieveWorkflowResult(String job_key){
    WorkflowResult wfLog = null;
    try {
      //fist try to retrieve the wfResult from the DR
      wfLog = fetchWFResultFromDR(job_key);
      log.debug("notifyComplete: fetched wfResult.xml from DR for "+job_key);
    }catch(Exception e){
View Full Code Here

Examples of eu.planets_project.ifr.core.wee.api.workflow.WorkflowResult

  public Object getWorkflowEngineResult(String job_key) {
    try {
      return weeService.getResult(UUID.fromString(job_key));
    } catch (Exception e) {
      log.debug("getWorkflowEngineResult failed "+e);
      return new WorkflowResult();
    }
  }
View Full Code Here

Examples of eu.planets_project.ifr.core.wee.api.workflow.WorkflowResult

      JAXBContext context;
      try {
        context = JAXBContext.newInstance(WorkflowResult.class);
        Unmarshaller um = context.createUnmarshaller();
        WorkflowResult wfc = (WorkflowResult) um.unmarshal(new StringReader(xmlWFResult));
        return wfc;
      } catch (JAXBException e) {
        log.error("unmarshalWFResult failed",e);
        throw e;
      }
View Full Code Here

Examples of eu.planets_project.ifr.core.wee.api.workflow.WorkflowResult

    /* (non-Javadoc)
     * @see eu.planets_project.ifr.core.wee.api.workflow.WorkflowTemplate#execute()
     */
    public WorkflowResult execute(){

        WorkflowResult wfResult = null;
        int count = 0;
        for(DigitalObject dgo : this.getData()){

            try{
                //run identification service one
View Full Code Here

Examples of eu.planets_project.ifr.core.wee.api.workflow.WorkflowResult

        String status = weeService.getStatus(workflowUUID);
        swb.setStatus(status);
        progString = status;
        // System.out.println("Status is: " + progString);
        if (status.equals("COMPLETED") || status.equals("FAILED")) {
          WorkflowResult wr = weeService.getResult(workflowUUID);
          String rurl = wr.getReport().toString();
          System.out.println("Got a report URL: " + rurl);
          swb.setStopTime(System.currentTimeMillis());
          swb.setReportURL(rurl);
          swb.setReportExists(true);
          workflowUUID = null;
View Full Code Here

Examples of eu.planets_project.tb.impl.services.mockups.workflow.WorkflowResult

            // Process each in turn:
            for( String filename : job.getDigitalObjects() ) {
                Calendar start = Calendar.getInstance();
                log.info("Running job: "+(i+1)+"/"+total);
                DigitalObject dob = dh.get(filename).getDigitalObject();
                WorkflowResult wfr = null;
               
                // Actually run the workflow:
                try {
                    wfr = this.executeWorkflowOn(job, dob);
                    job.setWorkflowResult(filename, wfr);
                } catch( Exception e ) {
                    e.printStackTrace();
                }
               
                // Report:
                if( wfr != null ) {
                    // Patch in the start and end dates:
                    wfr.setStartDate(start);
                    wfr.setEndDate( Calendar.getInstance());
                    // Inspect the report:
                    if( wfr.getReportLog() != null ) {
                        log.info("Got report: " + wfr.getReportLog());
                    }
                    // Is there a result?
                    if( wfr.getResult() != null ) {
                        log.info("Got result: "+wfr.getResult().toString());
                    }
                }

                // Store results in the database:
                this.storeWorkflowResults(job, wfr, dob, filename, batch, exp );
View Full Code Here

Examples of eu.planets_project.tb.impl.services.mockups.workflow.WorkflowResult

     * @param dob The Digital Object to be processed.
     * @return
     * @throws Exception
     */
    private WorkflowResult executeWorkflowOn( TestbedBatchJob job, DigitalObject dob ) throws Exception {
        WorkflowResult wfr = null;
        if( job.getWorkflow() == null ) {
            throw new Exception("Cannot run this workflow, as it is null!");
        }
        try {
            wfr = job.getWorkflow().execute(dob);
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.