2526272829303132
try { URL url = new URL(urlString(context)); task.setup(url, context.getMergedJobDataMap()); task.execute(); } catch (Exception e) { throw new TaskExecutionException(e); } }
1718192021222324
public void execute(JobExecutionContext context) throws JobExecutionException { try { task.execute(); } catch (Exception e) { throw new TaskExecutionException(e); } }
2122232425262728
3031323334353637383940
task.execute(); if (!validator.hasErrors()) { transaction.commit(); } } catch (Exception e) { throw new TaskExecutionException(e); } finally { if (transaction != null && transaction.isActive()) { transaction.rollback(); }
2930313233343536373839