Search in sources :

Example 1 with FlowNotFoundException

use of com.sequenceiq.flow.core.exception.FlowNotFoundException in project cloudbreak by hortonworks.

the class Flow2Handler method restartFlow.

public void restartFlow(String flowId) {
    FlowLog flowLog = flowLogService.findFirstByFlowIdOrderByCreatedDesc(flowId).orElseThrow(() -> new FlowNotFoundException(flowId));
    restartFlow(flowLog);
}
Also used : FlowNotFoundException(com.sequenceiq.flow.core.exception.FlowNotFoundException) FlowLog(com.sequenceiq.flow.domain.FlowLog)

Aggregations

FlowNotFoundException (com.sequenceiq.flow.core.exception.FlowNotFoundException)1 FlowLog (com.sequenceiq.flow.domain.FlowLog)1