test_class.declarator: workflowBundleIO = new WorkflowBundleIO()
test_class.modifier: private static final
test_class.original_string: private static final WorkflowBundleIO workflowBundleIO = new WorkflowBundleIO();
test_class.type: WorkflowBundleIO
test_class.var_name: workflowBundleIO
test_class.declarator: run
test_class.modifier: private
test_class.original_string: private Run run;
test_class.type: Run
test_class.var_name: run
test_class.file: taverna-run-impl/src/test/java/org/apache/taverna/platform/run/impl/RunTest.java
test_class.identifier: RunTest
test_class.superclass: extends DummyWorkflowReport
test_case.body: @Test
      public void getBundle() throws Exception {
          Bundle bundle = run.getDataBundle();
          // Contains a copy of workflow
          assertEquals(wfBundle.getGlobalBaseURI(),
                  DataBundles.getWorkflowBundle(bundle).getGlobalBaseURI());
          // Contains a run report
          Path runReport = DataBundles.getWorkflowRunReport(bundle);
          assertTrue(Files.exists(runReport));
          JsonNode runReportJson = DataBundles.getWorkflowRunReportAsJson(bundle);
          assertEquals("COMPLETED", runReportJson.get("state").asText());
      }
test_case.class_method_signature: RunTest.getBundle()
test_case.full_signature: @Test public void getBundle()
test_case.identifier: getBundle
test_case.invocations: getDataBundle assertEquals getGlobalBaseURI getGlobalBaseURI getWorkflowBundle getWorkflowRunReport assertTrue exists getWorkflowRunReportAsJson assertEquals asText get
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void getBundle()
focal_class.declarator: workflowReportJson = new WorkflowReportJSON()
focal_class.modifier: private static final
focal_class.original_string: private static final WorkflowReportJSON workflowReportJson = new WorkflowReportJSON();
focal_class.type: WorkflowReportJSON
focal_class.var_name: workflowReportJson
focal_class.declarator: logger = Logger.getLogger(Run.class.getName())
focal_class.modifier: private static final
focal_class.original_string: private static final Logger logger = Logger.getLogger(Run.class.getName());
focal_class.type: Logger
focal_class.var_name: logger
focal_class.declarator: ID
focal_class.modifier: private final
focal_class.original_string: private final String ID, executionID;
focal_class.type: String
focal_class.var_name: ID
focal_class.declarator: executionEnvironment
focal_class.modifier: private final
focal_class.original_string: private final ExecutionEnvironment executionEnvironment;
focal_class.type: ExecutionEnvironment
focal_class.var_name: executionEnvironment
focal_class.declarator: workflowReport
focal_class.modifier: private final
focal_class.original_string: private final WorkflowReport workflowReport;
focal_class.type: WorkflowReport
focal_class.var_name: workflowReport
focal_class.declarator: workflowBundle
focal_class.modifier: private final
focal_class.original_string: private final WorkflowBundle workflowBundle;
focal_class.type: WorkflowBundle
focal_class.var_name: workflowBundle
focal_class.declarator: dataBundle
focal_class.modifier: private final
focal_class.original_string: private final Bundle dataBundle;
focal_class.type: Bundle
focal_class.var_name: dataBundle
focal_class.declarator: workflow
focal_class.modifier: private final
focal_class.original_string: private final Workflow workflow;
focal_class.type: Workflow
focal_class.var_name: workflow
focal_class.declarator: profile
focal_class.modifier: private final
focal_class.original_string: private final Profile profile;
focal_class.type: Profile
focal_class.var_name: profile
focal_class.file: taverna-run-impl/src/main/java/org/apache/taverna/platform/run/impl/Run.java
focal_class.identifier: Run
focal_class.class_method_signature: Run.Run(RunProfile runProfile)
focal_class.full_signature: public  Run(RunProfile runProfile)
focal_class.identifier: Run
focal_class.modifiers: public
focal_class.parameters: (RunProfile runProfile)
focal_class.signature:  Run(RunProfile runProfile)
focal_class.class_method_signature: Run.Run(String id, Bundle bundle)
focal_class.full_signature: public  Run(String id, Bundle bundle)
focal_class.identifier: Run
focal_class.modifiers: public
focal_class.parameters: (String id, Bundle bundle)
focal_class.signature:  Run(String id, Bundle bundle)
focal_class.class_method_signature: Run.getID()
focal_class.full_signature: public String getID()
focal_class.identifier: getID
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getID()
focal_class.class_method_signature: Run.getState()
focal_class.full_signature: public State getState()
focal_class.identifier: getState
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: State
focal_class.signature: State getState()
focal_class.class_method_signature: Run.getDataBundle()
focal_class.full_signature: public Bundle getDataBundle()
focal_class.identifier: getDataBundle
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Bundle
focal_class.signature: Bundle getDataBundle()
focal_class.class_method_signature: Run.getWorkflowReport()
focal_class.full_signature: public WorkflowReport getWorkflowReport()
focal_class.identifier: getWorkflowReport
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: WorkflowReport
focal_class.signature: WorkflowReport getWorkflowReport()
focal_class.class_method_signature: Run.getWorkflow()
focal_class.full_signature: public Workflow getWorkflow()
focal_class.identifier: getWorkflow
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Workflow
focal_class.signature: Workflow getWorkflow()
focal_class.class_method_signature: Run.getProfile()
focal_class.full_signature: public Profile getProfile()
focal_class.identifier: getProfile
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Profile
focal_class.signature: Profile getProfile()
focal_class.class_method_signature: Run.delete()
focal_class.full_signature: public void delete()
focal_class.identifier: delete
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void delete()
focal_class.class_method_signature: Run.start()
focal_class.full_signature: public void start()
focal_class.identifier: start
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void start()
focal_class.class_method_signature: Run.pause()
focal_class.full_signature: public void pause()
focal_class.identifier: pause
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void pause()
focal_class.class_method_signature: Run.resume()
focal_class.full_signature: public void resume()
focal_class.identifier: resume
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void resume()
focal_class.class_method_signature: Run.cancel()
focal_class.full_signature: public void cancel()
focal_class.identifier: cancel
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void cancel()
focal_method.body: public Bundle getDataBundle() {
  		if (getWorkflowReport() != null)
  			// Save the workflow report
  			try {
  				workflowReportJson.save(getWorkflowReport(), dataBundle);
  			} catch (IOException e) {
  				logger.log(WARNING,
  						"Can't save workflow report to data bundle", e);
  			}
  		// Update manifest
  		try {
  			Manifest manifest = new Manifest(dataBundle);
  			manifest.populateFromBundle();
  			manifest.writeAsJsonLD();
  		} catch (IOException e) {
  			logger.log(WARNING, "Can't add manifest to data bundle", e);
  		}
  		return dataBundle;
  	}
focal_method.class_method_signature: Run.getDataBundle()
focal_method.full_signature: public Bundle getDataBundle()
focal_method.identifier: getDataBundle
focal_method.invocations: getWorkflowReport save getWorkflowReport log populateFromBundle writeAsJsonLD log
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: Bundle
focal_method.signature: Bundle getDataBundle()