public ExecuteJobCmd(Long jobDbid) {
this.jobDbid = jobDbid;
}
public Job execute(Environment environment) throws Exception {
DbSession dbSession = environment.get(DbSession.class);
if (dbSession==null) {
throw new JbpmException("no db-session configured");
}
JobImpl<?> job = (JobImpl<?>) dbSession.get(JobImpl.class, jobDbid);
// in case of decision jobs, the job might have been deleted
// before we execute it (they are in a list)
if (job != null) {
JobContext jobContext = new JobContext(job);