JPAService jpaService = Services.get().get(JPAService.class);
if (jpaService != null) {
log.debug("Updating WF record for WFID :" + wfId + " with parent id: " + actionId);
WorkflowJobBean wfJob = jpaService.execute(new WorkflowJobGetJPAExecutor(wfId));
wfJob.setParentId(actionId);
jpaService.execute(new WorkflowJobUpdateJPAExecutor(wfJob));
jpaService.execute(new org.apache.oozie.executor.jpa.CoordActionUpdateJPAExecutor(coordAction));
}
else {
log.error(ErrorCode.E0610);
}