class FlowCancelService {

    public void cancelFlow(FlowLog flowLog) throws TransactionExecutionException {
        LOGGER.debug("Cancel flow [{}] for resource [{}]. FlowType: [{}] Current state: [{}]",
                flowLog.getFlowId(), flowLog.getResourceId(), flowLog.getFlowType(), flowLog.getCurrentState());
        flow2Handler.cancelFlow(flowLog.getResourceId(), flowLog.getFlowId());
    }

}