public void execute(CommandContext commandContext) { if (executionId != null) { ExecutionEntity execution = getExecution(); ensureNotNull("Cannot find execution with id '" + executionId + "' referenced from job '" + this + "'", "execution", execution); } // initialize activity id getActivityId(); // increment sequence counter before job execution incrementSequenceCounter(); preExecute(commandContext); JobHandler jobHandler = getJobHandler(); JobHandlerConfiguration configuration = getJobHandlerConfiguration(); ensureNotNull("Cannot find job handler '" + jobHandlerType + "' from job '" + this + "'", "jobHandler", jobHandler); jobHandler.execute(configuration, execution, commandContext, tenantId); postExecute(commandContext); }
public void execute(CommandContext commandContext) { if (executionId != null) { ExecutionEntity execution = getExecution(); ensureNotNull("Cannot find execution with id '" + executionId + "' referenced from job '" + this + "'", "execution", execution); } // initialize activity id getActivityId(); // increment sequence counter before job execution incrementSequenceCounter(); preExecute(commandContext); JobHandler jobHandler = getJobHandler(); JobHandlerConfiguration configuration = getJobHandlerConfiguration(); ensureNotNull("Cannot find job handler '" + jobHandlerType + "' from job '" + this + "'", "jobHandler", jobHandler); jobHandler.execute(configuration, execution, commandContext, tenantId); postExecute(commandContext); }
public void execute(CommandContext commandContext) { if (executionId != null) { ExecutionEntity execution = getExecution(); ensureNotNull("Cannot find execution with id '" + executionId + "' referenced from job '" + this + "'", "execution", execution); } // initialize activity id getActivityId(); // increment sequence counter before job execution incrementSequenceCounter(); preExecute(commandContext); JobHandler jobHandler = getJobHandler(); JobHandlerConfiguration configuration = getJobHandlerConfiguration(); ensureNotNull("Cannot find job handler '" + jobHandlerType + "' from job '" + this + "'", "jobHandler", jobHandler); jobHandler.execute(configuration, execution, commandContext, tenantId); postExecute(commandContext); }