protected void fireCommandFailed(Throwable t) { for (CommandContextListener listener : commandContextListeners) { try { listener.onCommandFailed(this, t); } catch(Throwable ex) { LOG.exceptionWhileInvokingOnCommandFailed(t); } } }
public void debugExecutingAtomicOperation(CoreAtomicOperation<?> executionOperation, CoreExecution execution) { logDebug( "001", "Executing atomic operation {} on {}", executionOperation, execution); }
public void exceptionWhileInvokingOnCommandFailed(Throwable t) { logError( "005", "Exception while invoking onCommandFailed()", t); }
LOG.infoException(commandInvocationContext.getThrowable()); LOG.debugException(commandInvocationContext.getThrowable()); LOG.errorException(commandInvocationContext.getThrowable());
public void performOperation(final CmmnAtomicOperation executionOperation, final CaseExecutionEntity execution) { ProcessApplicationReference targetProcessApplication = getTargetProcessApplication(execution); if(requiresContextSwitch(targetProcessApplication)) { Context.executeWithinProcessApplication(new Callable<Void>() { public Void call() throws Exception { performOperation(executionOperation, execution); return null; } }, targetProcessApplication, new InvocationContext(execution)); } else { try { Context.setExecutionContext(execution); LOG.debugExecutingAtomicOperation(executionOperation, execution); executionOperation.execute(execution); } finally { Context.removeExecutionContext(); } } }
public void infoException(Throwable throwable) { logInfo( "003", "Exception while closing command context: {}",throwable.getMessage(), throwable); }
public void printStackTrace(boolean verbose) { if(perfromedInvocations.isEmpty()) { return; } StringWriter writer = new StringWriter(); writer.write("BPMN Stack Trace:\n"); if(!verbose) { logNonVerbose(writer); } else { logVerbose(writer); } LOG.bpmnStackTrace(writer.toString()); perfromedInvocations.clear(); }
LOG.infoException(commandInvocationContext.getThrowable()); LOG.debugException(commandInvocationContext.getThrowable()); LOG.errorException(commandInvocationContext.getThrowable());
public void performOperation(final CmmnAtomicOperation executionOperation, final CaseExecutionEntity execution) { ProcessApplicationReference targetProcessApplication = getTargetProcessApplication(execution); if(requiresContextSwitch(targetProcessApplication)) { Context.executeWithinProcessApplication(new Callable<Void>() { public Void call() throws Exception { performOperation(executionOperation, execution); return null; } }, targetProcessApplication, new InvocationContext(execution)); } else { try { Context.setExecutionContext(execution); LOG.debugExecutingAtomicOperation(executionOperation, execution); executionOperation.execute(execution); } finally { Context.removeExecutionContext(); } } }
public void infoException(Throwable throwable) { logInfo( "003", "Exception while closing command context: {}",throwable.getMessage(), throwable); }
public void printStackTrace(boolean verbose) { if(perfromedInvocations.isEmpty()) { return; } StringWriter writer = new StringWriter(); writer.write("BPMN Stack Trace:\n"); if(!verbose) { logNonVerbose(writer); } else { logVerbose(writer); } LOG.bpmnStackTrace(writer.toString()); perfromedInvocations.clear(); }
LOG.infoException(commandInvocationContext.getThrowable()); LOG.debugException(commandInvocationContext.getThrowable()); LOG.errorException(commandInvocationContext.getThrowable());
public void exceptionWhileInvokingOnCommandFailed(Throwable t) { logError( "005", "Exception while invoking onCommandFailed()", t); }
public void debugExecutingAtomicOperation(CoreAtomicOperation<?> executionOperation, CoreExecution execution) { logDebug( "001", "Executing atomic operation {} on {}", executionOperation, execution); }
Context.setExecutionContext(execution); if(!performAsync) { LOG.debugExecutingAtomicOperation(operation, execution); operation.execute(execution);
protected void fireCommandFailed(Throwable t) { for (CommandContextListener listener : commandContextListeners) { try { listener.onCommandFailed(this, t); } catch(Throwable ex) { LOG.exceptionWhileInvokingOnCommandFailed(t); } } }
public void infoException(Throwable throwable) { logInfo( "003", "Exception while closing command context: {}",throwable.getMessage(), throwable); }
public void printStackTrace(boolean verbose) { if(perfromedInvocations.isEmpty()) { return; } StringWriter writer = new StringWriter(); writer.write("BPMN Stack Trace:\n"); if(!verbose) { logNonVerbose(writer); } else { logVerbose(writer); } LOG.bpmnStackTrace(writer.toString()); perfromedInvocations.clear(); }
public void bpmnStackTrace(String string) { logError( "006", string); }
public void debugException(Throwable throwable) { logDebug( "002", "Exception while closing command context: {}",throwable.getMessage(), throwable); }