/** * Allows a workflow to be executed stand-alone. Usage: <workflowURL> [<inputName> * <inputDataURL>] ... * * @param args * @throws MalformedURLException */ @SuppressWarnings( { "deprecation", "static-access" }) public static void main(String args[]) throws MalformedURLException { new WorkflowLauncher(args); }
WorkflowLauncher launcher = new WorkflowLauncher(inStream); return launcher;
WorkflowLauncher launcher; try { launcher = new WorkflowLauncher(workflowURL); } catch (IOException e) { System.err.println("Could not read workflow " + workflowURL + ": "
static public void executeWorkflow(InputStream scufl, Map inputs, UserContext userContext, WorkflowEventListener[] listeners) throws Exception { setStupidLSIDProvider(); WorkflowLauncher launcher = new WorkflowLauncher(scufl, userContext); launcher.execute(inputs, listeners); scufl.close(); }
public static void main(String[] args) throws LogBookException { WorkflowEnactorHelper.setMygridLSIDProvider(); Properties configuration = ProvenanceConfigurator.getConfiguration(); for (int j = 0; j < DIRECTORIES.length; j++) { File workflowsDirectory = new File("workbench/examples/" + DIRECTORIES[j]); File[] workflows = workflowsDirectory.listFiles(); for (int i = 0; i < workflows.length; i++) { try { File workflow = workflows[i]; if (!workflow.isDirectory() && workflow.getName().endsWith(".xml")) { System.out.println("Running " + workflow); InputStream scufl = workflow.toURL().openStream(); OldProvenanceGenerator provenanceGenerator = new OldProvenanceGenerator( configuration); WorkflowLauncher launcher = new WorkflowLauncher(scufl, null); launcher.execute(new HashMap(), provenanceGenerator); scufl.close(); } } catch (Exception e) { e.printStackTrace(); } } } System.exit(0); }
public ProvenanceGenerator executeWorkflow(InputStream scufl, Map inputs, UserContext userContext) throws Exception { setStupidLSIDProvider(); provenanceGenerator = ProvenanceGenerator.getInstance(); provenanceGenerator.setConfiguration(configuration); provenanceGenerator.initialise(); WorkflowLauncher launcher = new WorkflowLauncher(scufl, userContext); // Map outputs = launcher.execute(inputs, provenanceGenerator); scufl.close(); return provenanceGenerator; }