本文整理汇总了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);
}
}
示例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);
}
示例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);
}
示例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);
}
}
示例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());
}
}
示例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());
}
}
示例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());
}
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
}
示例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;
示例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;
示例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;