JPAService jpaService = Services.get().get(JPAService.class);
CoordinatorJobBean coordJob = addRecordToCoordJobTable(CoordinatorJob.Status.RUNNING, false, false);
CoordinatorActionBean coordAction = addRecordToCoordActionTable(coordJob.getId(), 1,
CoordinatorAction.Status.RUNNING, "coord-action-get.xml", "wfId", "RUNNING", 0);
final String jobId = engine.submitJob(conf, true);
coordAction.setExternalId(jobId);
CoordActionUpdateJPAExecutor coordActionUpdateExecutor = new CoordActionUpdateJPAExecutor(coordAction);
jpaService.execute(coordActionUpdateExecutor);