/** * Register a {@link FlowExecutionListener} that observes the lifecycle of all flow * executions launched by this executor. * @param listener the listener to be registered */ public FlowExecutorBuilder addFlowExecutionListener(FlowExecutionListener listener) { return addFlowExecutionListener(listener, "*"); }
/** * Register a {@link FlowExecutionListener} that observes the lifecycle of all flow * executions launched by this executor. * @param listener the listener to be registered */ public FlowExecutorBuilder addFlowExecutionListener(FlowExecutionListener listener) { return addFlowExecutionListener(listener, "*"); }
@Bean public FlowExecutor flowExecutor() { return getFlowExecutorBuilder(flowRegistry()).addFlowExecutionListener(new SecurityFlowExecutionListener(), "*") .build(); }
@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(); }