Search in sources :

Example 1 with StageLogEntityId

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);
    }
}
Also used : StageLogEntityId(pipelite.entity.StageLogEntityId) StageEntity(pipelite.entity.StageEntity)

Aggregations

StageEntity (pipelite.entity.StageEntity)1 StageLogEntityId (pipelite.entity.StageLogEntityId)1