public void exceptionOccurred(final Exception exception) { nosteps = true; exitState(); ret.setException(exception); } };
public void resultAvailable(Void result) { nosteps = true; exitState(); ret.setResult(result); } public void exceptionOccurred(final Exception exception)
public void exceptionOccurred(Exception exception) { collectInjectedResults(); nosteps = true; exitState(); StringWriter sw = new StringWriter(); exception.printStackTrace(new PrintWriter(sw)); microagent.getLogger().severe(microagent.getComponentIdentifier()+", "+microagent.getModel().getFullName()+": Exception during cleanup: "+sw); ret.setResult(null); } }));