source: raptor-distribution/MSIs/raptor-web/tags/v1.2.1/source/web/webapp/raptor-web/WEB-INF/flows/reports/main-flow.xml @ 1748

Revision 1748, 7.6 KB checked in by rhyssmith, 5 years ago (diff)

Tagging raptor-web v1.2.1-1 release of Raptor Web MSI

  • Property svn:executable set to *
Line 
1<!-- Copyright (C) 2010 Cardiff University, Wales <smartp@cf.ac.uk> Licensed under the Apache License, Version 2.0 (the "License");
2    you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
3    Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS
4    IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language
5    governing permissions and limitations under the License. -->
6<flow parent="globalflow" xmlns="http://www.springframework.org/schema/webflow" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
7    xsi:schemaLocation="http://www.springframework.org/schema/webflow http://www.springframework.org/schema/webflow/spring-webflow-2.0.xsd">
8
9
10    <var name="common" class="uk.ac.cardiff.raptorweb.model.CommonModel" />
11
12
13    <on-start>
14        <!-- websession holds all variables for a particualar user, for a particular instance -->
15        <!-- load the user preferences -->
16        <evaluate expression="preferenceService.loadUserPrefs()" result="flowScope.websession" />
17        <!-- load saved reports for that user, although could be added to the preferences service -->
18        <evaluate expression="graphService.loadSavedReports(flowScope.websession)" />
19
20    </on-start>
21
22
23
24    <view-state id="startReport" view="dashboard.xhtml">
25
26        <on-entry>
27            <evaluate expression="startService.generateStatistics(flowScope.websession)" />
28        </on-entry>
29
30        <transition on="refreshStartStats">
31            <evaluate expression="startService.generateStatistics(flowScope.websession)" />
32        </transition>
33
34
35    </view-state>
36
37    <view-state id="reportWizard" view="reportWizard.xhtml">
38        <var name="savedReports" class="uk.ac.cardiff.raptorweb.model.wizard.GraphWizardReports" />
39        <on-entry>
40            <evaluate expression="savedWizardReportsService.load(savedReports,flowScope.websession.user.name)" />
41        </on-entry>
42        <transition on="startReportWizard" to="graphWizardSubflow">
43            <evaluate expression="savedReports.initNewReport()" result="flowScope.savedGraphWizardModel"/>
44        </transition>
45        <transition on="editReportWizard" to="graphWizardSubflow">
46            <evaluate expression="savedReports.initEditReport()" result="flowScope.savedGraphWizardModel"/>
47        </transition>
48        <transition on="runReportWizard" to="graphWizardSubflow">
49            <evaluate expression="savedReports.initRunReport()" result="flowScope.savedGraphWizardModel"/>
50        </transition>
51        <transition on="removeReportWizard">
52            <evaluate expression="savedWizardReportsService.removeReport(savedReports)"/>
53        </transition>
54        <transition on="loadReportFromUrl" to="reportWizard">
55            <evaluate expression="savedWizardReportsService.loadReportFromUrl(savedReports,flowScope.websession.user.name)"/>
56        </transition>
57    </view-state>
58
59    <subflow-state id="graphWizardSubflow" subflow="report-wizard-subflow">
60        <input name="savedGraphWizardModel" value="flowScope.savedGraphWizardModel"/>
61        <transition on="cancelWizard" to="reportWizard" />
62    </subflow-state>
63
64    <view-state id="about" view="about.xhtml">
65
66    </view-state>
67
68    <view-state id="graphicalReports" view="graphicalReports.xhtml">
69
70        <var name="processorToAdd" class="uk.ac.cardiff.model.wsmodel.ProcessorInformation" />
71
72        <!-- populate the statisticalunit list -->
73        <on-entry>
74            <evaluate expression="graphService.populateStatisticalUnits(flowScope.websession)" />
75            <evaluate expression="graphService.populateSuggestionValues(flowScope.websession)" />
76        </on-entry>
77
78        <transition on="invokeStatisticalUnit">
79            <evaluate expression="graphService.invokeStatisticalUnit(flowScope.websession)" />
80        </transition>
81
82        <transition on="updateMUAStatistic">
83            <evaluate expression="graphService.updateAndInvokeStatisticalUnit(flowScope.websession)" />
84        </transition>
85
86        <transition on="removeReport">
87            <evaluate expression="graphService.removeReport(flowScope.websession)" />
88        </transition>
89
90        <transition on="generateExcelReport">
91            <evaluate expression="graphService.generateExcelReport(flowScope.websession)" />
92        </transition>
93
94        <transition on="generateCSVReport">
95            <evaluate expression="graphService.generateCSVReport(flowScope.websession)" />
96        </transition>
97
98        <transition on="generatePDFReport">
99            <evaluate expression="graphService.generatePDFReport(flowScope.websession)" />
100        </transition>
101
102        <transition on="initialiseNewProcessorAdd">
103            <evaluate expression="flowScope.websession.graphmodel.initialiseNewProcessorAdd()" />
104        </transition>
105
106        <transition on="setupProcessorToAdd">
107            <evaluate expression="flowScope.websession.graphmodel.setupProcessorToAdd()" />
108        </transition>
109
110
111        <transition on="removeSeriesFromSelectedStatistic">
112            <evaluate expression="graphService.removeSeriesFromSelectedStatistic(flowScope.websession)" />
113        </transition>
114
115        <transition on="removeSelectedFilterFromSelectedStatistic">
116            <evaluate expression="graphService.removeSelectedFilterFromSelectedStatistic(flowScope.websession)" />
117        </transition>
118
119        <transition on="addSeriesToSelectedStatistic">
120            <evaluate expression="graphService.addSeriesToSelectedStatistic(flowScope.websession)"></evaluate>
121        </transition>
122
123        <transition on="addProcessorToSelectedStatistic">
124            <evaluate expression="graphService.addProcessorToSelectedStatistic(flowScope.websession)"></evaluate>
125        </transition>
126
127        <transition on="removePostProcessorFromSelectedStatistic">
128            <evaluate expression="graphService.removePostProcessorFromSelectedStatistic(flowScope.websession)"></evaluate>
129        </transition>
130
131        <transition on="addFilterToSelectedSeries">
132            <evaluate expression="graphService.addFilterToSelectedSeries(flowScope.websession)"></evaluate>
133        </transition>
134
135        <transition on="rerenderGraph">
136            <evaluate expression="graphService.rerenderGraph(flowScope.websession)" />
137        </transition>
138
139
140    </view-state>
141
142
143
144
145
146
147
148
149    <view-state id="setupRaptorWeb" view="setupRaptorWeb.xhtml">
150
151        <on-entry>
152            <!-- get capabilities every time the web page is rendered, hence resource classification is up to date -->
153            <evaluate expression="setupService.getCapabilitiesOfCurrentlyAttachedEndpoint(flowScope.websession)" />
154        </on-entry>
155
156
157
158        <!-- force update of capabilities -->
159        <transition on="getAggregatorCapabilities">
160            <evaluate expression="setupService.getCapabilities(flowScope.websession)" />
161        </transition>
162
163        <transition on="deleteAllEntriesFromAttachedMUA">
164            <evaluate expression="setupService.deleteAllEntriesFromAttachedMUA(flowScope.websession)" />
165        </transition>
166
167        <transition on="attachMUA">
168            <evaluate expression="setupService.setAttachedEndpoint(flowScope.websession)" />
169        </transition>
170
171        <transition on="batchUpload">
172            <evaluate expression="setupService.batchUpload(flowScope.websession)" />
173        </transition>
174
175        <transition on="sendResourceClassification">
176            <evaluate expression="setupService.sendResourceClassification(flowScope.websession)" />
177        </transition>
178
179    </view-state>
180
181
182</flow>
Note: See TracBrowser for help on using the repository browser.