我正在尝试实现这样的 SWF 操作:
@Component(value = "initializeProjectsTestingFormAction")
public class InitializeProjectsTestingFormAction implements Action {
@Autowired
private ProjectsBo projectsBo;
@Override
public Event execute(RequestContext requestContext) throws Exception {
ProjectsTestingForm projectsTestingForm = (ProjectsTestingForm) requestContext.getFlowScope().get("projectsTestingForm");
EndUse selectedEndUse = (EndUse) requestContext.getFlowScope().get("selectedEndUse");
projectsTestingForm.setProjects(projectsBo.findImplementableProjectsForTesting(selectedEndUse));
return new Event("", "initializeProjectsTestingFormAction");
}
}
当流程调用动作时,它目前工作正常,但我对动作必须返回的事件感到有些不安。有谁知道 Event 是什么以及根据其值(源和 id)可能对流行为产生什么影响?
我正在阅读文档,但我完全无法理解并回答自己的问题:
http://static.springsource.org/spring-webflow/docs/2.3.x/javadoc-api/index.html http://static.springsource.org/spring-webflow/docs/2.3.x/javadoc-api /org/springframework/webflow/execution/Event.html
提前致谢。