use of org.apereo.spring.webflow.plugin.ClientFlowExecutionRepository in project cas by apereo.
the class CasWebflowContextConfiguration method flowExecutorViaClientFlowExecution.
@Bean
public FlowExecutor flowExecutorViaClientFlowExecution() {
final FlowDefinitionRegistry loginFlowRegistry = loginFlowRegistry();
final ClientFlowExecutionRepository repository = new ClientFlowExecutionRepository();
repository.setFlowDefinitionLocator(loginFlowRegistry);
repository.setTranscoder(loginFlowStateTranscoder());
final FlowExecutionImplFactory factory = new FlowExecutionImplFactory();
factory.setExecutionKeyFactory(repository);
repository.setFlowExecutionFactory(factory);
return new FlowExecutorImpl(loginFlowRegistry, factory, repository);
}
Aggregations