I found a workaround.
SWF:
Spring Beans:Code:<start-state idref="start" /> <action-state id="start"> <evaluate-action expression="externalContext.applicationMap['org.springframework.web.context.WebApplicationContext.ROOT'].getBean('phonebookFlowAction').start()" /> </action-state> <subflow-state id="INPUT_FLOW" flow="InputFlow"> <attribute-mapper> <input-mapper> <mapping source="externalContext.applicationMap['org.springframework.web.context.WebApplicationContext.ROOT'].getBean('phonebookFlowData').inputFlowParam" target="flowParam" /> </input-mapper> <output-mapper> <mapping source="flowParam" target="externalContext.applicationMap['org.springframework.web.context.WebApplicationContext.ROOT'].getBean('phonebookFlowData').inputFlowParam" /> </output-mapper> </attribute-mapper> <transition to="afterInputFlow" /> </subflow-state> <action-state id="afterInputFlow"> <evaluate-action expression="externalContext.applicationMap['org.springframework.web.context.WebApplicationContext.ROOT'].getBean('phonebookFlowAction').afterInputFlow()" /> </action-state> ...
However, I hope that SWF become easier.Code:<bean id="phonebookFlowAction" class="foo.phonebook.PhonebookFlowAction" scope="request" autowire="byType" dependency-check="objects" /> <bean id="phonebookFlowData" class="foo.phonebook.PhonebookFlowData" scope="flow" /> ...
Thanks.


Reply With Quote