@Bean public FlowExecutor flowExecutor() { return getFlowExecutorBuilder(flowRegistry()) .setMaxFlowExecutions(1).setMaxFlowExecutionSnapshots(2) .setConversationManager(new ExceptionThrowingConversationManager()) .setAlwaysRedirectOnPause(false) .setRedirectInSameState(true) .addFlowExecutionAttribute("foo", "bar") .addFlowExecutionAttribute("bar", 2) .addFlowExecutionListener(new ConfigurationListener(), "*") .build(); }