class InMemoryCleanup {

    public void cancelFlowWithoutDbUpdate(String flowId) {
        String flowChainId = runningFlows.getFlowChainId(flowId);
        if (flowChainId != null) {
            flowChains.removeFullFlowChain(flowChainId);
        }
        runningFlows.remove(flowId);
    }

}