org.apache.taverna.scufl2.api.core.Workflow.getParent()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(2.2k)|赞(0)|评价(0)|浏览(80)

本文整理了Java中org.apache.taverna.scufl2.api.core.Workflow.getParent()方法的一些代码示例,展示了Workflow.getParent()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Workflow.getParent()方法的具体详情如下:
包路径:org.apache.taverna.scufl2.api.core.Workflow
类名称:Workflow
方法名:getParent

Workflow.getParent介绍

暂无

代码示例

代码示例来源:origin: org.apache.taverna.language/taverna-scufl2-api

/**
 * Returns true if processor contains a nested workflow in any of its
 * activities in any of its profiles.
 */
public boolean containsNestedWorkflow(Processor processor) {
  for (Profile profile : processor.getParent().getParent().getProfiles())
    if (containsNestedWorkflow(processor, profile))
      return true;
  return false;
}

代码示例来源:origin: org.apache.taverna.engine/taverna-run-impl

public void save(WorkflowReport wfReport, Bundle dataBundle)
    throws IOException {
  Path path = getWorkflowRunReport(dataBundle);
  save(wfReport, path);
  if (!Files.exists(getWorkflow(dataBundle)))
    // Usually already done by Run constructor
    setWorkflowBundle(wfReport.getDataBundle(), wfReport.getSubject()
        .getParent());
}

代码示例来源:origin: org.apache.taverna.language/taverna-scufl2-api

@Test
public void cloneWorkflow() throws Exception {
  Workflow original = originalWfBundle.getMainWorkflow();
  assertEquals(originalWfBundle, original.getParent());
  Workflow clone = (Workflow) original.clone();
  assertNull(clone.getParent());
  assertEquals(original.getName(), clone.getName());
  assertNotSame(original.getProcessors().getByName("Hello"), clone
      .getProcessors().getByName("Hello"));
  assertNotSame(original.getCurrentRevision(), clone.getCurrentRevision());
  assertEquals(original.getCurrentRevision(), clone.getCurrentRevision());
}

代码示例来源:origin: org.apache.taverna.language/taverna-scufl2-api

@Test
public void createBundle() throws Exception {
  WorkflowBundle wb = bundleIO.createBundle();
  assertEquals(wb, wb.getMainWorkflow().getParent());
  assertEquals(wb, wb.getMainProfile().getParent());
  assertEquals("bundle1", wb.getName());
  assertEquals("workflow1", wb.getMainWorkflow().getName());
  assertEquals("profile1", wb.getMainProfile().getName());
  assertNotNull(wb.getCurrentRevision());
  assertNotNull(wb.getMainWorkflow().getCurrentRevision());
  assertNotNull(wb.getMainProfile().getCurrentRevision());
}

相关文章