- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {FileOutputStream f =
File file;new FileOutputStream(file)
String name;new FileOutputStream(name)
File file;new FileOutputStream(file, true)
- Smart code suggestions by Codota
}
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()); } } }