/** * Gets the File containing the BPEL process definition * @return - the File object containing the BPEL process */ private File getBPELFile() { try { String location = this.implementation.getProcessDefinition().getLocation(); URI locationURI; if (location.indexOf('%') != -1) { locationURI = URI.create(location); } else { locationURI = new URI(null, location, null); } File theProcess = new File(locationURI); return theProcess; } catch( Exception e ) { if(__log.isDebugEnabled()) { __log.debug("Exception converting BPEL file URL to an URI: " + e ); } } // end try return null; } // end getBPELFile
/** * Gets the File containing the BPEL process definition * @return - the File object containing the BPEL process */ private File getBPELFile() { if( theBPELFile != null ) return theBPELFile; try { String location = this.implementation.getProcessDefinition().getLocation(); URI locationURI; if (location.indexOf('%') != -1) { locationURI = URI.create(location); } else { locationURI = new URI(null, location, null); } File theProcess = new File(locationURI); theBPELFile = theProcess; return theProcess; } catch( Exception e ) { if(__log.isDebugEnabled()) { __log.debug("Exception converting BPEL file URL to an URI: " + e ); } } // end try return null; } // end getBPELFile
/** * Returns a String containing the (local) name of the file containing the BPEL process */ public String getBpelDocument() { //System.out.println("getBPELDocument called"); try { String location = this.implementation.getProcessDefinition().getLocation(); URI locationURI = new URI(null, location, null); File processFile = new File(locationURI); return getRelativePath( getDirectory(), processFile); } catch (Exception e) { if(__log.isWarnEnabled()) { __log.warn("Unable to resolve relative path of BPEL process" + implementation.getProcessDefinition().getLocation(), e ); } return null; } // end try } // end getBpelDocument
public synchronized File getBPELFile() throws IOException { if (bpelFile != null) { String location = implementation.getProcessDefinition().getLocation(); String fileName = implementation.getProcessDefinition().getURI(); File file = new File(workingDir, fileName); if (file.isFile()) { bpelFile = file; return file; } URL url = new URL(location); this.bpelFile = copy(url, workingDir, fileName); } return bpelFile; }
String location = this.implementation.getProcessDefinition().getLocation(); URI deployURI = new URI(null, location, null);