本文整理了Java中org.apache.taverna.scufl2.api.core.Workflow.setIdentifier()
方法的一些代码示例,展示了Workflow.setIdentifier()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Workflow.setIdentifier()
方法的具体详情如下:
包路径:org.apache.taverna.scufl2.api.core.Workflow
类名称:Workflow
方法名:setIdentifier
暂无
代码示例来源:origin: org.apache.taverna.language/taverna-scufl2-t2flow
protected Workflow skeletonDataflow(Dataflow df) {
Workflow wf = new Workflow();
parserState.get().setCurrentWorkflow(wf);
wf.setName(df.getName());
wf.setIdentifier(WORKFLOW_ROOT.resolve(df.getId() + "/"));
return wf;
}
代码示例来源:origin: org.apache.taverna.language/taverna-scufl2-wfbundle
if (workflow.getWorkflowIdentifier() != null
&& workflow.getWorkflowIdentifier().getResource() != null)
wf.setIdentifier(getParserState().getCurrentBase().resolve(
workflow.getWorkflowIdentifier().getResource()));
代码示例来源:origin: org.apache.taverna.language/taverna-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;
}
内容来源于网络,如有侵权,请联系作者删除!