@Test public void workflowInfoNoContacts() throws Exception { WorkflowConfiguration cfg = parseFile("workflow-info-test"); WorkflowInfo workflowInfo = cfg.findWorkflow(new WorkflowID("workflow-5")).getWorkflowInfo(); Assert.assertEquals(new URL("http: Assert.assertTrue(workflowInfo.getContacts().isEmpty()); }
void parseFile(File f, StateDatabaseConnection connection) throws Exception { LOGGER.info("Loading file: " + f); FileReader fileReader = new FileReader(f); String fileName = f.toString(); evaluateReader(fileReader, fileName, connection); }
WorkflowConfigurationParser { void parseFile(File f, StateDatabaseConnection connection) throws Exception { LOGGER.info("Loading file: " + f); FileReader fileReader = new FileReader(f); String fileName = f.toString(); evaluateReader(fileReader, fileName, connection); } }
WorkflowConfigurationParser { void parseFile(File f, StateDatabaseConnection connection) throws Exception { LOGGER.info("Loading file: " + f); FileReader fileReader = new FileReader(f); String fileName = f.toString(); evaluateReader(fileReader, fileName, connection); } WorkflowConfigurationParser(File defaultsDir, Map<String, String> additionalJsVariables); }
WorkflowConfigurationParser { void parseFile(File f, StateDatabaseConnection connection) throws Exception { LOGGER.info("Loading file: " + f); FileReader fileReader = new FileReader(f); String fileName = f.toString(); evaluateReader(fileReader, fileName, connection); } WorkflowConfigurationParser(File defaultsDir, Map<String, String> additionalJsVariables); WorkflowConfigurationParser parseConfiguration(File workflowsDir, StateDatabaseConnection connection); WorkflowConfiguration getWorkflowConfiguration(); void importDefaultsIntoScope(String label, Global scope); void addWorkflow(Workflow wf); }
WorkflowConfigurationParser { void parseFile(File f, StateDatabaseConnection connection) throws Exception { LOGGER.info("Loading file: " + f); FileReader fileReader = new FileReader(f); String fileName = f.toString(); evaluateReader(fileReader, fileName, connection); } WorkflowConfigurationParser(File defaultsDir, Map<String, String> additionalJsVariables); WorkflowConfigurationParser parseConfiguration(File workflowsDir, StateDatabaseConnection connection); WorkflowConfiguration getWorkflowConfiguration(); void importDefaultsIntoScope(String label, Global scope); void addWorkflow(Workflow wf); static final String WORKFLOW_FILE_EXTENSION; }