use of org.springframework.webflow.engine.EndState in project cas by apereo.
the class AbstractCasWebflowConfigurer method createEndState.
@Override
public EndState createEndState(final Flow flow, final String id, final ViewFactory viewFactory) {
if (containsFlowState(flow, id)) {
LOGGER.trace("Flow [{}] already contains a definition for state id [{}]", flow.getId(), id);
return (EndState) flow.getStateInstance(id);
}
val endState = new EndState(flow, id);
if (viewFactory != null) {
val finalResponseAction = new ViewFactoryActionAdapter(viewFactory);
endState.setFinalResponseAction(finalResponseAction);
LOGGER.trace("Created end state state [{}] on flow id [{}], backed by view factory [{}]", id, flow.getId(), viewFactory);
} else {
LOGGER.trace("Created end state state [{}] on flow id [{}]", id, flow.getId());
}
return endState;
}
Aggregations