My favorites | Sign in
Project Home Downloads Wiki Issues Source
Checkout   Browse   Changes    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<?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 />

<view-state id="createNewPerson" model="person">
<on-entry>
<evaluate expression="personBean" result="viewScope.person" />
</on-entry>
<transition on="person" to="createNewPerson">
<evaluate expression="personService.persist(person)" />
</transition>
<transition on="product" to="createNewProduct">
<evaluate expression="personService.persist(person)" />
</transition>
<transition on="cancel" to="cancel" bind="false" />
</view-state>

<view-state id="createNewProduct">
<transition on="cash" to="createNewCashProduct" />
<transition on="loan" to="createNewLoanProduct" />
<transition on="managedFund" to="createNewManagedFundProduct" />
<transition on="cancel" to="cancel" bind="false" />
</view-state>

<view-state id="createNewCashProduct" model="cash">
<on-entry>
<evaluate expression="cashBean" result="viewScope.cash" />
</on-entry>
<transition on="account" to="openNewAccount">
<evaluate expression="productService.persist(cash)" />
</transition>
<transition on="product" to="createNewProduct">
<evaluate expression="productService.persist(cash)" />
</transition>
<transition on="cancel" to="cancel" bind="false" />
</view-state>

<view-state id="createNewLoanProduct" model="loan">
<binder>
<binding property="id" converter="long" />
</binder>
<on-entry>
<evaluate expression="loanBean" result="viewScope.loan" />
<evaluate expression="personService.findAll()" result="viewScope.lenders" />
</on-entry>

<transition on="account" to="openNewAccount">
<evaluate expression="productService.persist(loan)" />
</transition>
<transition on="product" to="createNewProduct">
<evaluate expression="productService.persist(loan)" />
</transition>
<transition on="cancel" to="cancel" bind="false" />
</view-state>

<view-state id="createNewManagedFundProduct" model="managedFund">
<on-entry>
<evaluate expression="managedFundBean" result="viewScope.managedFund" />
</on-entry>
<transition on="account" to="openNewAccount">
<evaluate expression="productService.persist(managedFund)" />
</transition>
<transition on="product" to="createNewProduct">
<evaluate expression="productService.persist(managedFund)" />
</transition>
<transition on="cancel" to="cancel" bind="false" />
</view-state>

<view-state id="openNewAccount" model="account">
<on-entry>
<evaluate expression="accountBean" result="flowScope.account" />
<evaluate expression="personService.findAll()" result="viewScope.people" />
</on-entry>
<transition on="showAccount" to="showAccount" />
<transition on="cancel" to="cancel" bind="false" />
</view-state>

<view-state id="showAccount">
<on-entry>
<evaluate expression="investmentBean" result="viewScope.investment" />
<evaluate expression="productService.findAll()" result="viewScope.products" />
</on-entry>
<transition on="success" to="success" />
</view-state>

<end-state id="success" view="success"/>

<end-state id="cancel" view="cancel"/>

</flow>

Change log

r16 by stsmedia on Apr 12, 2009   Diff
Tagging the 0.3 release of the 'Spring
Finance Manager' project.
Go to: 
Project members, sign in to write a code review

Older revisions

r13 by stsmedia on Apr 12, 2009   Diff
Adding a Spring Web Flow wizard.

All revisions of this file

File info

Size: 3335 bytes, 93 lines
Powered by Google Project Hosting