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

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

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

Workflow.setIdentifier介绍

暂无

代码示例

代码示例来源:origin: uk.org.taverna.scufl2/scufl2-rdfxml

wf.setIdentifier(getParserState()
    .getCurrentBase()
    .resolve(workflow.getWorkflowIdentifier().getResource()));

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

public Workflow makeMainWorkflow() {
  workflow = new Workflow();
  workflow.setName("HelloWorld");
  // NOTE: setWorkflowIdentifier should only be called when loading a
  // workflow
  // which already has an ID
  workflow.setIdentifier(URI
      .create("http://ns.taverna.org.uk/2010/workflow/00626652-55ae-4a9e-80d4-c8e9ac84e2ca/"));
  InputWorkflowPort yourName = new InputWorkflowPort(workflow, "yourName");
  yourName.setDepth(0);
  OutputWorkflowPort results = new OutputWorkflowPort(workflow, "results");
  // Not needed:
  // workflow.getInputPorts().add(yourName);
  // workflow.getOutputPorts().add(results);
  workflow.getProcessors().add(makeProcessor());
  workflow.getProcessors().add(makeProcessor2());
  // Make links
  DataLink directLink = new DataLink(workflow, yourName, results);
  directLink.setMergePosition(1);
  DataLink greetingLink = new DataLink(workflow, processorGreeting,
      results);
  greetingLink.setMergePosition(0);
  nameLink = new DataLink(workflow, yourName, processorName);
  condition = new BlockingControlLink(processor, wait4me);
  return workflow;
}

相关文章