}
else {
LOG.warn("Unexpected workflow " + workflow.getId() + " STATUS " + workflow.getStatus());
// update lastModifiedTime
coordAction.setLastModifiedTime(new Date());
jpaService.execute(new CoordActionUpdateStatusJPAExecutor(coordAction));
return null;
}
LOG.info("Updating Coordintaor action id :" + coordAction.getId() + " status from " + preCoordStatus
+ " to " + coordAction.getStatus() + ", pending = " + coordAction.getPending());
coordAction.setLastModifiedTime(new Date());
jpaService.execute(new CoordActionUpdateStatusJPAExecutor(coordAction));
if (slaStatus != null) {
SLADbOperations.writeStausEvent(coordAction.getSlaXml(), coordAction.getId(), slaStatus,
SlaAppType.COORDINATOR_ACTION, LOG);
}
if (workflow.getStatus() != WorkflowJob.Status.SUSPENDED