本文整理汇总了Java中org.apache.taverna.platform.run.api.RunProfileException类的典型用法代码示例。如果您正苦于以下问题:Java RunProfileException类的具体用法?Java RunProfileException怎么用?Java RunProfileException使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
RunProfileException类属于org.apache.taverna.platform.run.api包,在下文中一共展示了RunProfileException类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: runWorkflow
import org.apache.taverna.platform.run.api.RunProfileException; //导入依赖的package包/类
private void runWorkflow(WorkflowBundle workflowBundle, Profile profile,
ExecutionEnvironment executionEnvironment, Bundle workflowInputs) {
try {
RunProfile runProfile = createRunProfile(workflowBundle, profile,
executionEnvironment, workflowInputs);
if (runProfile != null) {
String runId = runService.createRun(runProfile);
runService.start(runId);
}
} catch (InvalidWorkflowException | RunProfileException | InvalidRunIdException
| RunStateException | InvalidExecutionIdException e) {
String message = "Could not run workflow " + workflowBundle.getName();
logger.warn(message, e);
InvalidDataflowReport.showErrorDialog(e.getMessage(), message);
}
}
示例2: createRun
import org.apache.taverna.platform.run.api.RunProfileException; //导入依赖的package包/类
@Override
public String createRun(RunProfile runProfile) throws InvalidWorkflowException, RunProfileException {
Run run = new Run(runProfile);
run.getWorkflowReport().addReportListener(new RunReportListener(run.getID()));
runMap.put(run.getID(), run);
postEvent(RUN_CREATED, run.getID());
return run.getID();
}