For your overview, we want to show you a complete flow file (add.xml
from the webapp/WEB-INF/issue/add
directory) from our example application:
<?xml version="1.0" encoding="UTF-8"?> <flow xmlns="http://www.springframework.org/schema/webflow" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/webflow http://www.springframework.org/schema/webflow/spring-webflow-2.0.xsd" > <persistence-context/> <!-- The id of the issue which should be edited --> <input name="id" /> <on-start> <evaluate expression="issueService.findById(id)" result="flowScope.issue"> <attribute name="create" value="true" type="boolean"></attribute> </evaluate> </on-start> <!-- If no view is specified a page with the same name as the id is searched in the directory of the flow definition. Additionally its possible to define a view with the attribute view. --> ...