Package eu.planets_project.ifr.core.storage.api

Examples of eu.planets_project.ifr.core.storage.api.DigitalObjectManager.retrieve()


  private WorkflowResult fetchWFResultFromDR(String job_key) throws Exception{
    //2. get the data registry manager and fetch the digital object containing the wfResult
    URI drManagerID = DataRegistryFactory.createDataRegistryIdFromName("/experiment-files/executions/").normalize();
    DigitalObjectManager drExpResults = DataRegistryFactory.getDataRegistry().getDigitalObjectManager(drManagerID);
    URI wfResultstorageURI =new URI(drManagerID.getScheme(),drManagerID.getAuthority(),drManagerID.getPath()+"/"+job_key+"/wfResult-id-"+job_key+".xml",null,null).normalize();
    DigitalObject doWFResult = drExpResults.retrieve(wfResultstorageURI);
    if(doWFResult.getContent()==null){
      throw new Exception("No workflow xml content available.");
    }
    //3. now read the stream into a String and unmarshall the WorkflwoResult object         
        StringBuilder sb = new StringBuilder();
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.