Search in sources :

Example 1 with StateStatus

use of com.sequenceiq.flow.domain.StateStatus in project cloudbreak by hortonworks.

the class FlowLogDBService method updateLastFlowLogStatus.

@Override
public void updateLastFlowLogStatus(FlowLog lastFlowLog, boolean failureEvent) {
    StateStatus stateStatus = failureEvent ? StateStatus.FAILED : StateStatus.SUCCESSFUL;
    flowLogRepository.updateLastLogStatusInFlow(lastFlowLog.getId(), stateStatus);
}
Also used : StateStatus(com.sequenceiq.flow.domain.StateStatus)

Aggregations

StateStatus (com.sequenceiq.flow.domain.StateStatus)1