use of pipelite.entity.StageLogEntityId in project pipelite by enasequence.
the class StageService method deleteStageLog.
public static void deleteStageLog(StageLogRepository logRepository, Stage stage) {
StageEntity stageEntity = stage.getStageEntity();
StageLogEntityId stageLogEntityId = new StageLogEntityId(stageEntity.getProcessId(), stageEntity.getPipelineName(), stageEntity.getStageName());
if (logRepository.existsById(stageLogEntityId)) {
logRepository.deleteById(stageLogEntityId);
}
}
Aggregations