int actionDeleted = 0;
if (jobList != null && jobList.size() != 0) {
for (WorkflowJobBean w : jobList) {
String wfId = w.getId();
try {
jpaService.execute(new WorkflowJobDeleteJPAExecutor(wfId));
actionDeleted += jpaService.execute(new WorkflowActionsDeleteForPurgeJPAExecutor(wfId));
}
catch (JPAExecutorException e) {
throw new CommandException(e);
}