当前位置: 首页>>代码示例>>Java>>正文


Java InvalidExecutionIdException类代码示例

本文整理汇总了Java中org.apache.taverna.platform.execution.api.InvalidExecutionIdException的典型用法代码示例。如果您正苦于以下问题:Java InvalidExecutionIdException类的具体用法?Java InvalidExecutionIdException怎么用?Java InvalidExecutionIdException使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


InvalidExecutionIdException类属于org.apache.taverna.platform.execution.api包,在下文中一共展示了InvalidExecutionIdException类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: runWorkflow

import org.apache.taverna.platform.execution.api.InvalidExecutionIdException; //导入依赖的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);
	}
}
 
开发者ID:apache,项目名称:incubator-taverna-workbench,代码行数:17,代码来源:RunWorkflowAction.java

示例2: close

import org.apache.taverna.platform.execution.api.InvalidExecutionIdException; //导入依赖的package包/类
@Override
public void close(String runID) throws InvalidRunIdException, InvalidExecutionIdException {
	Run run = getRun(runID);
	try {
		Bundle dataBundle = run.getDataBundle();
		DataBundles.closeBundle(dataBundle);
	} catch (IOException | ClosedFileSystemException e) {
		logger.log(Level.WARNING, "Error closing data bundle for run " + runID, e);
	}
	runMap.remove(runID);
	postEvent(RUN_CLOSED, runID);
}
 
开发者ID:apache,项目名称:incubator-taverna-engine,代码行数:13,代码来源:RunServiceImpl.java

示例3: delete

import org.apache.taverna.platform.execution.api.InvalidExecutionIdException; //导入依赖的package包/类
@Override
public void delete(String runID) throws InvalidRunIdException, InvalidExecutionIdException {
	Run run = getRun(runID);
	run.delete();
	Bundle dataBundle = run.getDataBundle();
	try {
		DataBundles.closeBundle(dataBundle);
	} catch (IOException e) {
		logger.log(Level.WARNING, "Error closing data bundle for run " + runID, e);
	}
	runMap.remove(runID);
	postEvent(RUN_DELETED, runID);
}
 
开发者ID:apache,项目名称:incubator-taverna-engine,代码行数:14,代码来源:RunServiceImpl.java

示例4: start

import org.apache.taverna.platform.execution.api.InvalidExecutionIdException; //导入依赖的package包/类
public void start() throws RunStateException, InvalidExecutionIdException {
	synchronized (workflowReport) {
		State state = workflowReport.getState();
		if (!state.equals(CREATED))
			throw new RunStateException("Cannot start a " + state + " run.");
		executionEnvironment.getExecutionService().start(executionID);
	}
}
 
开发者ID:apache,项目名称:incubator-taverna-engine,代码行数:9,代码来源:Run.java

示例5: pause

import org.apache.taverna.platform.execution.api.InvalidExecutionIdException; //导入依赖的package包/类
public void pause() throws RunStateException, InvalidExecutionIdException {
	synchronized (workflowReport) {
		State state = workflowReport.getState();
		if (!state.equals(RUNNING))
			throw new RunStateException("Cannot pause a " + state + " run.");
		executionEnvironment.getExecutionService().pause(executionID);
		workflowReport.setPausedDate(new Date());
	}
}
 
开发者ID:apache,项目名称:incubator-taverna-engine,代码行数:10,代码来源:Run.java

示例6: resume

import org.apache.taverna.platform.execution.api.InvalidExecutionIdException; //导入依赖的package包/类
public void resume() throws RunStateException, InvalidExecutionIdException {
	synchronized (workflowReport) {
		State state = workflowReport.getState();
		if (!state.equals(PAUSED))
			throw new RunStateException("Cannot resume a " + state
					+ " run.");
		executionEnvironment.getExecutionService().resume(executionID);
		workflowReport.setResumedDate(new Date());
	}
}
 
开发者ID:apache,项目名称:incubator-taverna-engine,代码行数:11,代码来源:Run.java

示例7: cancel

import org.apache.taverna.platform.execution.api.InvalidExecutionIdException; //导入依赖的package包/类
public void cancel() throws RunStateException, InvalidExecutionIdException {
	synchronized (workflowReport) {
		State state = workflowReport.getState();
		if (state.equals(CANCELLED) || state.equals(COMPLETED)
				|| state.equals(FAILED))
			throw new RunStateException("Cannot cancel a " + state
					+ " run.");
		executionEnvironment.getExecutionService().cancel(executionID);
		workflowReport.setCancelledDate(new Date());
	}
}
 
开发者ID:apache,项目名称:incubator-taverna-engine,代码行数:12,代码来源:Run.java

示例8: start

import org.apache.taverna.platform.execution.api.InvalidExecutionIdException; //导入依赖的package包/类
@Override
public void start(String runID) throws InvalidRunIdException, RunStateException, InvalidExecutionIdException {
	getRun(runID).start();
	postEvent(RUN_STARTED, runID);
}
 
开发者ID:apache,项目名称:incubator-taverna-engine,代码行数:6,代码来源:RunServiceImpl.java

示例9: pause

import org.apache.taverna.platform.execution.api.InvalidExecutionIdException; //导入依赖的package包/类
@Override
public void pause(String runID) throws InvalidRunIdException, RunStateException, InvalidExecutionIdException {
	getRun(runID).pause();
	postEvent(RUN_PAUSED, runID);
}
 
开发者ID:apache,项目名称:incubator-taverna-engine,代码行数:6,代码来源:RunServiceImpl.java

示例10: resume

import org.apache.taverna.platform.execution.api.InvalidExecutionIdException; //导入依赖的package包/类
@Override
public void resume(String runID) throws InvalidRunIdException, RunStateException, InvalidExecutionIdException {
	getRun(runID).resume();
	postEvent(RUN_RESUMED, runID);
}
 
开发者ID:apache,项目名称:incubator-taverna-engine,代码行数:6,代码来源:RunServiceImpl.java

示例11: cancel

import org.apache.taverna.platform.execution.api.InvalidExecutionIdException; //导入依赖的package包/类
@Override
public void cancel(String runID) throws InvalidRunIdException, RunStateException, InvalidExecutionIdException {
	getRun(runID).cancel();
	postEvent(RUN_STOPPED, runID);
}
 
开发者ID:apache,项目名称:incubator-taverna-engine,代码行数:6,代码来源:RunServiceImpl.java

示例12: delete

import org.apache.taverna.platform.execution.api.InvalidExecutionIdException; //导入依赖的package包/类
/**
 * Deletes a run.
 * 
 * @throws InvalidExecutionIdException
 */
public void delete() throws InvalidExecutionIdException {
	synchronized (workflowReport) {
		executionEnvironment.getExecutionService().delete(executionID);
	}
}
 
开发者ID:apache,项目名称:incubator-taverna-engine,代码行数:11,代码来源:Run.java

示例13: close

import org.apache.taverna.platform.execution.api.InvalidExecutionIdException; //导入依赖的package包/类
/**
 * Closes a run.
 * 
 * @param runID
 *            the ID of the run
 * @throws InvalidRunIdException
 *             if the run ID is not valid
 * @throws InvalidExecutionIdException
 */
void close(String runID) throws InvalidRunIdException,
		InvalidExecutionIdException;
 
开发者ID:apache,项目名称:incubator-taverna-engine,代码行数:12,代码来源:RunService.java

示例14: delete

import org.apache.taverna.platform.execution.api.InvalidExecutionIdException; //导入依赖的package包/类
/**
 * Deletes a run.
 * 
 * @param runID
 *            the ID of the run
 * @throws InvalidRunIdException
 *             if the run ID is not valid
 * @throws InvalidExecutionIdException
 */
void delete(String runID) throws InvalidRunIdException,
		InvalidExecutionIdException;
 
开发者ID:apache,项目名称:incubator-taverna-engine,代码行数:12,代码来源:RunService.java

示例15: start

import org.apache.taverna.platform.execution.api.InvalidExecutionIdException; //导入依赖的package包/类
/**
 * Starts a run.
 * 
 * @param runID
 *            the ID of the run
 * @throws InvalidRunIdException
 *             if the run ID is not valid
 * @throws RunStateException
 *             if the run state is not CREATED
 * @throws InvalidExecutionIdException
 */
void start(String runID) throws InvalidRunIdException, RunStateException,
		InvalidExecutionIdException;
 
开发者ID:apache,项目名称:incubator-taverna-engine,代码行数:14,代码来源:RunService.java


注:本文中的org.apache.taverna.platform.execution.api.InvalidExecutionIdException类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。