@SuppressWarnings("unchecked") @Override public ExecutionResults execute(CommandContext ctx) throws Exception { String deploymentId = getDeploymentId(ctx); String processId = (String) getData("ProcessId", ctx); String correlationKey = (String) getData("CorrelationKey", ctx); Map<String, Object> variables = (Map<String, Object>) getData("Variables", ctx);
@Override public Void call() throws Exception { AsyncExecutionMarker.markAsync(); ExecutableRunner runner = null; TransactionManager jtaTm = null; throw e; } finally { AsyncExecutionMarker.reset(); if (runner != null && runner instanceof DisposableCommandService) { if (allowedToDispose(((DisposableCommandService) runner).getEnvironment())) {
@Override public void checkPermission() throws SecurityException { if (active.get() && !AsyncExecutionMarker.isAsync()) { throw new SecurityException("Only async allowed"); } }
public void executeGivenJob(RequestInfo request) { Throwable exception = null; try { AsyncExecutionMarker.markAsync(); eventSupport.fireBeforeJobExecuted(request, null); if (request != null) { AsyncExecutionMarker.reset(); handleCompletion(processReoccurring, cmd, ctx); eventSupport.fireAfterJobExecuted(request, exception);
@SuppressWarnings("unchecked") @Override public ExecutionResults execute(CommandContext ctx) throws Exception { String deploymentId = getDeploymentId(ctx); String processId = (String) getData("ProcessId", ctx); String correlationKey = (String) getData("CorrelationKey", ctx); Map<String, Object> variables = (Map<String, Object>) getData("Variables", ctx);