Project

General

Profile

« Previous | Next » 

Revision 48139

integrated (hopefully) all required changes from dnet40

View differences:

content.publishing.xml
1 1
<RESOURCE_PROFILE>
2
    <HEADER>
3
        <RESOURCE_IDENTIFIER value="546f8ba1-2ca2-4e29-86ea-c9489ab9b857_V29ya2Zsb3dEU1Jlc291cmNlcy9Xb3JrZmxvd0RTUmVzb3VyY2VUeXBl"/>
4
        <RESOURCE_TYPE value="WorkflowDSResourceType"/>
5
        <RESOURCE_KIND value="WorkflowDSResources"/>
6
        <RESOURCE_URI value=""/>
7
        <DATE_OF_CREATION value="2014-12-16T18:13:51.0Z"/>
8
    </HEADER>
9
    <BODY>
10
        <WORKFLOW_NAME>Publish Information Space</WORKFLOW_NAME>
11
        <WORKFLOW_TYPE>Content Publishing</WORKFLOW_TYPE>
12
        <WORKFLOW_PRIORITY>30</WORKFLOW_PRIORITY>
13
        <CONFIGURATION start="manual">
14
            <NODE name="START_SWITCH" isStart="true">
15
                <DESCRIPTION>Start content Publishing</DESCRIPTION>
16
                <PARAMETERS/>
17
                <ARCS>
18
                    <ARC to="SELECT_PROMOTE_STATS"/>
19
                    <ARC to="SELECT_SWITCH_INDEX"/>
20
                    <ARC to="SELECT_SWITCH_OAI"/>
21
                </ARCS>
22
            </NODE>
23
            <NODE name="SELECT_PROMOTE_STATS" type="Selection">
24
                <DESCRIPTION>Do we promote the shadow stats to public today?</DESCRIPTION>
25
                <PARAMETERS>
26
                    <PARAM function="validValues(['YES', 'NO'])" managedBy="user" name="selection" required="true" type="string">YES</PARAM>
27
                </PARAMETERS>
28
                <ARCS>
29
                    <ARC name="YES" to="findStatsService"/>
30
                    <ARC name="NO" to="waitForStats"/>
31
                </ARCS>
32
            </NODE>
33
            <NODE name="findStatsService" type="FindStatsService">
34
                <DESCRIPTION>find stats service</DESCRIPTION>
35
                <PARAMETERS>
36
                    <PARAM name="xquery" type="string" managedBy="user" required="false">
37
                        /RESOURCE_PROFILE[.//RESOURCE_TYPE/@value='StatsManagerServiceResourceType' and
38
                        .//RESOURCE_KIND/@value='ServiceResources']/HEADER/RESOURCE_IDENTIFIER/@value/string()
39
                    </PARAM>
40
                    <PARAM name="xqueryForServiceIdParam" type="string" managedBy="system" required="true">xqueryForStatsManagerService</PARAM>
41
                </PARAMETERS>
42
                <ARCS>
43
                    <ARC name="found" to="PROMOTE_STATS"/>
44
                    <ARC name="notFound" to="waitForStats"/>
45
                </ARCS>
46
            </NODE>
47
            <NODE name="PROMOTE_STATS" type="PromoteShadowStats">
48
                <DESCRIPTION>Copy shadow Joomla cache and stats db to public schema</DESCRIPTION>
49
                <PARAMETERS>
50
                    <PARAM name="xqueryForServiceIdParam" type="string" managedBy="system" required="true">xqueryForStatsManagerService</PARAM>
51
                    <PARAM function="validValues(['test', 'beta', 'production'])" managedBy="user" name="portal" required="true" type="string">test</PARAM>
52
                </PARAMETERS>
53
                <ARCS>
54
                    <ARC to="waitForStats"/>
55
                </ARCS>
56
            </NODE>
2
	<HEADER>
3
		<RESOURCE_IDENTIFIER value="546f8ba1-2ca2-4e29-86ea-c9489ab9b857_V29ya2Zsb3dEU1Jlc291cmNlcy9Xb3JrZmxvd0RTUmVzb3VyY2VUeXBl"/>
4
		<RESOURCE_TYPE value="WorkflowDSResourceType"/>
5
		<RESOURCE_KIND value="WorkflowDSResources"/>
6
		<RESOURCE_URI value=""/>
7
		<DATE_OF_CREATION value="2014-12-16T18:13:51.0Z"/>
8
	</HEADER>
9
	<BODY>
10
		<WORKFLOW_NAME>Publish Information Space</WORKFLOW_NAME>
11
		<WORKFLOW_TYPE>Content Publishing</WORKFLOW_TYPE>
12
		<WORKFLOW_PRIORITY>30</WORKFLOW_PRIORITY>
13
		<CONFIGURATION start="manual">
14
			<NODE name="START_SWITCH" isStart="true">
15
				<DESCRIPTION>Start content Publishing</DESCRIPTION>
16
				<PARAMETERS/>
17
				<ARCS>
18
					<ARC to="SELECT_PROMOTE_STATS"/>
19
					<ARC to="SELECT_SWITCH_INDEX"/>
20
					<ARC to="SELECT_SWITCH_OAI"/>
21
				</ARCS>
22
			</NODE>
23
			<NODE name="SELECT_PROMOTE_STATS" type="Selection">
24
				<DESCRIPTION>Do we promote the shadow stats to public today?</DESCRIPTION>
25
				<PARAMETERS>
26
					<PARAM function="validValues(['YES', 'NO'])" managedBy="user" name="selection" required="true" type="string">YES</PARAM>
27
				</PARAMETERS>
28
				<ARCS>
29
					<ARC name="YES" to="findStatsService"/>
30
					<ARC name="NO" to="waitForStats"/>
31
				</ARCS>
32
			</NODE>
33
			<NODE name="findStatsService" type="FindStatsService">
34
				<DESCRIPTION>find stats service</DESCRIPTION>
35
				<PARAMETERS>
36
					<PARAM name="xquery" type="string" managedBy="user" required="false">
37
						/RESOURCE_PROFILE[.//RESOURCE_TYPE/@value='StatsManagerServiceResourceType' and
38
						.//RESOURCE_KIND/@value='ServiceResources']/HEADER/RESOURCE_IDENTIFIER/@value/string()
39
					</PARAM>
40
					<PARAM name="xqueryForServiceIdParam" type="string" managedBy="system" required="true">xqueryForStatsManagerService</PARAM>
41
				</PARAMETERS>
42
				<ARCS>
43
					<ARC name="found" to="PROMOTE_STATS"/>
44
					<ARC name="notFound" to="waitForStats"/>
45
				</ARCS>
46
			</NODE>
47
			<NODE name="PROMOTE_STATS" type="PromoteShadowStats">
48
				<DESCRIPTION>Copy shadow Joomla cache and stats db to public schema</DESCRIPTION>
49
				<PARAMETERS>
50
					<PARAM name="xqueryForServiceIdParam" type="string" managedBy="system" required="true">xqueryForStatsManagerService</PARAM>
51
					<PARAM function="validValues(['test', 'beta', 'production'])" managedBy="user" name="portal" required="true" type="string">test</PARAM>
52
				</PARAMETERS>
53
				<ARCS>
54
					<ARC to="waitForStats"/>
55
				</ARCS>
56
			</NODE>
57 57

  
58
            <NODE name="SELECT_SWITCH_INDEX" type="Selection">
59
                <DESCRIPTION>Do we switch the index read by the public Search Service today?</DESCRIPTION>
60
                <PARAMETERS>
61
                    <PARAM function="validValues(['YES', 'NO'])" managedBy="user" name="selection" required="true" type="string">YES</PARAM>
62
                </PARAMETERS>
63
                <ARCS>
64
                    <ARC name="YES" to="findIndex"/>
65
                    <ARC name="NO" to="waitForSearch"/>
66
                </ARCS>
67
            </NODE>
68
            <NODE name="findIndex" type="FindIndex">
69
                <DESCRIPTION>Select index mdformat</DESCRIPTION>
70
                <PARAMETERS>
71
                    <PARAM name="mdFormat" type="string" managedBy="user" required="true">DMF</PARAM>
72
                    <PARAM name="layout" type="string" managedBy="system" required="true">index</PARAM>
73
                    <PARAM name="interpretation" type="string" managedBy="system" required="true">openaire</PARAM>
74
                </PARAMETERS>
75
                <ARCS>
76
                    <ARC name="found" to="findSearchServices"/>
77
                    <ARC name="notFound" to="waitForSearch"/>
78
                </ARCS>
79
            </NODE>
80
            <NODE name="findSearchServices" type="FindSearchServices">
81
                <DESCRIPTION>find search services</DESCRIPTION>
82
                <PARAMETERS>
83
                    <PARAM name="xquery" type="string" managedBy="user" required="false">/RESOURCE_PROFILE[.//RESOURCE_TYPE/@value='SearchServiceResourceType'
84
                        and .//RESOURCE_KIND/@value='ServiceResources' and
85
                        .//PROPERTY[@key="infrastructure"]/@value="public"]/HEADER/RESOURCE_IDENTIFIER/@value/string()
86
                    </PARAM>
87
                </PARAMETERS>
88
                <ARCS>
89
                    <ARC name="found" to="switches" />
90
                    <ARC name="notFound" to="waitForSearch" />
91
                </ARCS>
92
            </NODE>
93
            <NODE name="switches" type="SwitchIndexes">
94
                <DESCRIPTION>switch index</DESCRIPTION>
95
                <PARAMETERS></PARAMETERS>
96
                <ARCS>
97
                    <ARC name="switch" to="switch" />
98
                    <ARC to="waitForSearch" />
99
                </ARCS>
100
            </NODE>
101
            <NODE name="switch" type="SwitchSearchService">
102
                <DESCRIPTION>switch index</DESCRIPTION>
103
                <PARAMETERS>
104
                    <PARAM name="inputIndexIdParam" type="string" managedBy="system" required="true">index_id</PARAM>
105
                    <PARAM name="outputIndexIdParam" type="string" managedBy="system" required="true">IndexId</PARAM>
106
                </PARAMETERS>
107
                <ARCS>
108
                    <ARC to="switches" />
109
                </ARCS>
110
            </NODE>
111
            <NODE name="SELECT_SWITCH_OAI" type="Selection">
112
                <DESCRIPTION>Do we switch the store used by the OAI Publisher today?</DESCRIPTION>
113
                <PARAMETERS>
114
                    <PARAM function="validValues(['YES', 'NO'])" managedBy="user" name="selection" required="true" type="string">YES</PARAM>
115
                </PARAMETERS>
116
                <ARCS>
117
                    <ARC name="YES" to="setOAIDB"/>
118
                    <ARC name="NO" to="waitForOAI"/>
119
                </ARCS>
120
            </NODE>
121
            <NODE name="setOAIDB" type="SetCurrentOAIDB">
122
                <DESCRIPTION>Update the currentdb in the OAI configuration profile</DESCRIPTION>
123
                <PARAMETERS>
124
                    <PARAM name="oaiDBName" type="string" managedBy="user" required="true">oaistore</PARAM>
125
                </PARAMETERS>
126
                <ARCS>
127
                    <ARC to="waitForOAI"/>
128
                </ARCS>
129
            </NODE>
58
			<NODE name="SELECT_SWITCH_INDEX" type="Selection">
59
				<DESCRIPTION>Do we switch the index read by the public Search Service today?</DESCRIPTION>
60
				<PARAMETERS>
61
					<PARAM function="validValues(['YES', 'NO'])" managedBy="user" name="selection" required="true" type="string">YES</PARAM>
62
				</PARAMETERS>
63
				<ARCS>
64
					<ARC name="YES" to="findIndex"/>
65
					<ARC name="NO" to="waitForSearch"/>
66
				</ARCS>
67
			</NODE>
68
			<NODE name="findIndex" type="FindIndex">
69
				<DESCRIPTION>Select index mdformat</DESCRIPTION>
70
				<PARAMETERS>
71
					<PARAM name="mdFormat" type="string" managedBy="user" required="true">DMF</PARAM>
72
					<PARAM name="layout" type="string" managedBy="system" required="true">index</PARAM>
73
					<PARAM name="interpretation" type="string" managedBy="system" required="true">openaire</PARAM>
74
				</PARAMETERS>
75
				<ARCS>
76
					<ARC name="found" to="findSearchServices"/>
77
					<ARC name="notFound" to="waitForSearch"/>
78
				</ARCS>
79
			</NODE>
80
			<NODE name="findSearchServices" type="FindSearchServices">
81
				<DESCRIPTION>find search services</DESCRIPTION>
82
				<PARAMETERS>
83
					<PARAM name="xquery" type="string" managedBy="user" required="false">/RESOURCE_PROFILE[.//RESOURCE_TYPE/@value='SearchServiceResourceType'
84
						and .//RESOURCE_KIND/@value='ServiceResources' and
85
						.//PROPERTY[@key="infrastructure"]/@value="public"]/HEADER/RESOURCE_IDENTIFIER/@value/string()
86
					</PARAM>
87
				</PARAMETERS>
88
				<ARCS>
89
					<ARC name="found" to="switches"/>
90
					<ARC name="notFound" to="waitForSearch"/>
91
				</ARCS>
92
			</NODE>
93
			<NODE name="switches" type="SwitchIndexes">
94
				<DESCRIPTION>switch index</DESCRIPTION>
95
				<PARAMETERS></PARAMETERS>
96
				<ARCS>
97
					<ARC name="switch" to="switch"/>
98
					<ARC to="waitForSearch"/>
99
				</ARCS>
100
			</NODE>
101
			<NODE name="switch" type="SwitchSearchService">
102
				<DESCRIPTION>switch index</DESCRIPTION>
103
				<PARAMETERS>
104
					<PARAM name="inputIndexIdParam" type="string" managedBy="system" required="true">index_id</PARAM>
105
					<PARAM name="outputIndexIdParam" type="string" managedBy="system" required="true">IndexId</PARAM>
106
				</PARAMETERS>
107
				<ARCS>
108
					<ARC to="switches"/>
109
				</ARCS>
110
			</NODE>
111
			<NODE name="SELECT_SWITCH_OAI" type="Selection">
112
				<DESCRIPTION>Do we switch the store used by the OAI Publisher today?</DESCRIPTION>
113
				<PARAMETERS>
114
					<PARAM function="validValues(['YES', 'NO'])" managedBy="user" name="selection" required="true" type="string">YES</PARAM>
115
				</PARAMETERS>
116
				<ARCS>
117
					<ARC name="YES" to="setOAIDB"/>
118
					<ARC name="NO" to="waitForOAI"/>
119
				</ARCS>
120
			</NODE>
121
			<NODE name="setOAIDB" type="SetCurrentOAIDB">
122
				<DESCRIPTION>Update the currentdb in the OAI configuration profile</DESCRIPTION>
123
				<PARAMETERS>
124
					<PARAM name="oaiDBName" type="string" managedBy="user" required="true">oaistore</PARAM>
125
				</PARAMETERS>
126
				<ARCS>
127
					<ARC to="waitForOAI"/>
128
				</ARCS>
129
			</NODE>
130 130

  
131
            <NODE name="waitForSearch">
132
                <DESCRIPTION>Wait for the search branch to fail or to success</DESCRIPTION>
133
                <PARAMETERS/>
134
                <ARCS>
135
                    <ARC to="waitAll"/>
136
                </ARCS>
137
            </NODE>
131
			<NODE name="waitForSearch">
132
				<DESCRIPTION>Wait for the search branch to fail or to success</DESCRIPTION>
133
				<PARAMETERS/>
134
				<ARCS>
135
					<ARC to="waitAll"/>
136
				</ARCS>
137
			</NODE>
138 138

  
139
            <NODE name="waitForStats">
140
                <DESCRIPTION>Wait for the stats branch to fail or success</DESCRIPTION>
141
                <PARAMETERS/>
142
                <ARCS>
143
                    <ARC to="waitAll"/>
144
                </ARCS>
145
            </NODE>
139
			<NODE name="waitForStats">
140
				<DESCRIPTION>Wait for the stats branch to fail or success</DESCRIPTION>
141
				<PARAMETERS/>
142
				<ARCS>
143
					<ARC to="waitAll"/>
144
				</ARCS>
145
			</NODE>
146 146

  
147
            <NODE name="waitForOAI">
148
                <DESCRIPTION>Wait for the OAI branch to fail or to success</DESCRIPTION>
149
                <PARAMETERS/>
150
                <ARCS>
151
                    <ARC to="waitAll"/>
152
                </ARCS>
153
            </NODE>
147
			<NODE name="waitForOAI">
148
				<DESCRIPTION>Wait for the OAI branch to fail or to success</DESCRIPTION>
149
				<PARAMETERS/>
150
				<ARCS>
151
					<ARC to="waitAll"/>
152
				</ARCS>
153
			</NODE>
154 154

  
155
            <!-- WAIT FOR ALL THE WF BRANCHES TO COMPLETE -->
156
            <NODE name="waitAll" isJoin="true">
157
                <DESCRIPTION>wait for all the branches to complete</DESCRIPTION>
158
                <PARAMETERS/>
159
                <ARCS>
160
                    <ARC to="SELECT_FEED_CLAIMS"/>
161
                </ARCS>
162
            </NODE>
155
			<!-- WAIT FOR ALL THE WF BRANCHES TO COMPLETE -->
156
			<NODE name="waitAll" isJoin="true">
157
				<DESCRIPTION>wait for all the branches to complete</DESCRIPTION>
158
				<PARAMETERS/>
159
				<ARCS>
160
					<ARC to="SELECT_FEED_CLAIMS"/>
161
				</ARCS>
162
			</NODE>
163 163

  
164
            <NODE name="SELECT_FEED_CLAIMS" type="Selection">
165
                <DESCRIPTION>Do we feed the the most recent claims today?</DESCRIPTION>
166
                <PARAMETERS>
167
                    <PARAM function="validValues(['YES', 'NO'])" managedBy="user" name="selection" required="true" type="string">NO</PARAM>
168
                </PARAMETERS>
169
                <ARCS>
170
                    <ARC name="YES" to="feedClaims"/>
171
                    <ARC name="NO" to="success"/>
172
                </ARCS>
173
            </NODE>
164
			<NODE name="SELECT_FEED_CLAIMS" type="Selection">
165
				<DESCRIPTION>Do we feed the the most recent claims today?</DESCRIPTION>
166
				<PARAMETERS>
167
					<PARAM function="validValues(['YES', 'NO'])" managedBy="user" name="selection" required="true" type="string">NO</PARAM>
168
				</PARAMETERS>
169
				<ARCS>
170
					<ARC name="YES" to="feedClaims"/>
171
					<ARC name="NO" to="success"/>
172
				</ARCS>
173
			</NODE>
174 174

  
175
            <NODE name="feedClaims" type="FeedMissingClaims">
176
                <DESCRIPTION>Feed the most recent claims</DESCRIPTION>
177
                <PARAMETERS/>
178
                <ARCS>
179
                    <ARC to="success"/>
180
                </ARCS>
181
            </NODE>
182
        </CONFIGURATION>
183
        <STATUS>
184
        </STATUS>
185
    </BODY>
175
			<NODE name="feedClaims" type="FeedMissingClaims">
176
				<DESCRIPTION>Feed the most recent claims</DESCRIPTION>
177
				<PARAMETERS/>
178
				<ARCS>
179
					<ARC to="success"/>
180
				</ARCS>
181
			</NODE>
182
		</CONFIGURATION>
183
		<STATUS>
184
		</STATUS>
185
	</BODY>
186 186
</RESOURCE_PROFILE>

Also available in: Unified diff