Hi,
I am using SWF + JSF, in the refrence and samples, the solution that to add an executionListener via:
I found it couldn't work, the reason is FlowNavigationHandler never use the executor to execute flow. instead, it use FlowExecutionImpl that created by FlowFacesUtils.getExecutionFactory(). and in FlowFacesUtils.getExecutionFactory(), it lookup the FlowExecutionFactory in spring IOC configration via the key of "flowExecutionFactory", and it looks like to composite the repository-type need diffrent way with flow:executor, I don't know how to config my repository type strategy to "singlekey".Code:<flow:executor id="flowExecutor" registry-ref="flowDefinitionLocator" repository-type="singlekey"> <flow:execution-listeners> <flow:listener ref="flowViewNavigationExecutionListener" criteria="*"/> </flow:execution-listeners> </flow:executor>
so, if I want to add some execution Listeners, I need to write the down of code in applicaption config:
but I have no way to composite the repository type strategy .Code:<bean id="flowExecutionFactory" class="org.springframework.webflow.engine.impl.FlowExecutionImplFactory"> <property name="executionListenerLoader" ref="simpleFlowExecutionListenerLoader"></property> </bean> <bean name="simpleFlowExecutionListenerLoader" class="org.springframework.webflow.execution.factory.StaticFlowExecutionListenerLoader" scope="singleton"> <constructor-arg> <list> <ref bean="flowViewNavigationExecutionListener"/> </list> </constructor-arg> </bean>
who can give me some advice?
Thanks very much.


Reply With Quote
