Project

General

Profile

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="2017-07-23T16:39:03+00:00"/>
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 isStart="true" name="START_SWITCH">
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 managedBy="user" name="xquery" required="false" type="string">/RESOURCE_PROFILE[.//RESOURCE_TYPE/@value='StatsManagerServiceResourceType' and .//RESOURCE_KIND/@value='ServiceResources']/HEADER/RESOURCE_IDENTIFIER/@value/string()</PARAM>
37
					<PARAM managedBy="system" name="xqueryForServiceIdParam" required="true" type="string">xqueryForStatsManagerService</PARAM>
38
				</PARAMETERS>
39
				<ARCS>
40
					<ARC name="found" to="PROMOTE_STATS"/>
41
					<ARC name="notFound" to="waitForStats"/>
42
				</ARCS>
43
			</NODE>
44
			<NODE name="PROMOTE_STATS" type="PromoteShadowStats">
45
				<DESCRIPTION>Copy shadow Joomla cache and stats db to public schema</DESCRIPTION>
46
				<PARAMETERS>
47
					<PARAM managedBy="system" name="xqueryForServiceIdParam" required="true" type="string">xqueryForStatsManagerService</PARAM>
48
					<PARAM function="validValues(['test', 'beta', 'production'])" managedBy="user" name="portal" required="true" type="string">beta</PARAM>
49
				</PARAMETERS>
50
				<ARCS>
51
					<ARC to="waitForStats"/>
52
				</ARCS>
53
			</NODE>
54
			<NODE name="SELECT_SWITCH_INDEX" type="Selection">
55
				<DESCRIPTION>Do we switch the index read by the public Search Service today?</DESCRIPTION>
56
				<PARAMETERS>
57
					<PARAM function="validValues(['YES', 'NO'])" managedBy="user" name="selection" required="true" type="string">YES</PARAM>
58
				</PARAMETERS>
59
				<ARCS>
60
					<ARC name="YES" to="findIndex"/>
61
					<ARC name="NO" to="waitForSearch"/>
62
				</ARCS>
63
			</NODE>
64
			<NODE name="findIndex" type="FindIndex">
65
				<DESCRIPTION>Select index mdformat</DESCRIPTION>
66
				<PARAMETERS>
67
					<PARAM managedBy="user" name="mdFormat" required="true" type="string">TMF</PARAM>
68
					<PARAM managedBy="system" name="layout" required="true" type="string">index</PARAM>
69
					<PARAM managedBy="system" name="interpretation" required="true" type="string">openaire</PARAM>
70
				</PARAMETERS>
71
				<ARCS>
72
					<ARC name="found" to="findSearchServices"/>
73
					<ARC name="notFound" to="waitForSearch"/>
74
				</ARCS>
75
			</NODE>
76
			<NODE name="findSearchServices" type="FindSearchServices">
77
				<DESCRIPTION>find search services</DESCRIPTION>
78
				<PARAMETERS>
79
					<PARAM managedBy="user" name="xquery" required="false" type="string">/RESOURCE_PROFILE[.//RESOURCE_TYPE/@value='SearchServiceResourceType'
80
						and .//RESOURCE_KIND/@value='ServiceResources' and
81
						.//PROPERTY[@key="infrastructure"]/@value="public"]/HEADER/RESOURCE_IDENTIFIER/@value/string()
82
					</PARAM>
83
				</PARAMETERS>
84
				<ARCS>
85
					<ARC name="found" to="switches"/>
86
					<ARC name="notFound" to="waitForSearch"/>
87
				</ARCS>
88
			</NODE>
89
			<NODE name="switches" type="SwitchIndexes">
90
				<DESCRIPTION>switch index</DESCRIPTION>
91
				<PARAMETERS/>
92
				<ARCS>
93
					<ARC name="switch" to="switch"/>
94
					<ARC to="waitForSearch"/>
95
				</ARCS>
96
			</NODE>
97
			<NODE name="switch" type="SwitchSearchService">
98
				<DESCRIPTION>switch index</DESCRIPTION>
99
				<PARAMETERS>
100
					<PARAM managedBy="system" name="inputIndexIdParam" required="true" type="string">index_id</PARAM>
101
					<PARAM managedBy="system" name="outputIndexIdParam" required="true" type="string">IndexId</PARAM>
102
				</PARAMETERS>
103
				<ARCS>
104
					<ARC to="switches"/>
105
				</ARCS>
106
			</NODE>
107
			<NODE name="SELECT_SWITCH_OAI" type="Selection">
108
				<DESCRIPTION>Do we switch the store used by the OAI Publisher today?</DESCRIPTION>
109
				<PARAMETERS>
110
					<PARAM function="validValues(['YES', 'NO'])" managedBy="user" name="selection" required="true" type="string">NO</PARAM>
111
				</PARAMETERS>
112
				<ARCS>
113
					<ARC name="YES" to="setOAIDB"/>
114
					<ARC name="NO" to="waitForOAI"/>
115
				</ARCS>
116
			</NODE>
117
			<NODE name="setOAIDB" type="SetCurrentOAIDB">
118
				<DESCRIPTION>Update the currentdb in the OAI configuration profile</DESCRIPTION>
119
				<PARAMETERS>
120
					<PARAM managedBy="user" name="oaiDbName" required="true" type="string">oaistore2</PARAM>
121
				</PARAMETERS>
122
				<ARCS>
123
					<ARC to="waitForOAI"/>
124
				</ARCS>
125
			</NODE>
126

    
127
			<NODE name="waitForSearch">
128
				<DESCRIPTION>Wait for the search branch to fail or to success</DESCRIPTION>
129
				<PARAMETERS/>
130
				<ARCS>
131
					<ARC to="waitAll"/>
132
				</ARCS>
133
			</NODE>
134
			<NODE name="waitForStats">
135
				<DESCRIPTION>Wait for the stats branch to fail or success</DESCRIPTION>
136
				<PARAMETERS/>
137
				<ARCS>
138
					<ARC to="waitAll"/>
139
				</ARCS>
140
			</NODE>
141
			<NODE name="waitForOAI">
142
				<DESCRIPTION>Wait for the OAI branch to fail or to success</DESCRIPTION>
143
				<PARAMETERS/>
144
				<ARCS>
145
					<ARC to="waitAll"/>
146
				</ARCS>
147
			</NODE>
148
			<!-- WAIT FOR ALL THE WF BRANCHES TO COMPLETE -->
149
			<NODE isJoin="true" name="waitAll">
150
				<DESCRIPTION>wait for all the branches to complete</DESCRIPTION>
151
				<PARAMETERS/>
152
				<ARCS>
153
					<ARC to="SELECT_FEED_CLAIMS"/>
154
				</ARCS>
155
			</NODE>
156
			<NODE name="SELECT_FEED_CLAIMS" type="Selection">
157
				<DESCRIPTION>Do we feed the the most recent claims today?</DESCRIPTION>
158
				<PARAMETERS>
159
					<PARAM function="validValues(['YES', 'NO'])" managedBy="user" name="selection" required="true" type="string">YES</PARAM>
160
				</PARAMETERS>
161
				<ARCS>
162
					<ARC name="YES" to="feedClaims"/>
163
					<ARC name="NO" to="success"/>
164
				</ARCS>
165
			</NODE>
166
			<NODE name="feedClaims" type="FeedMissingClaims">
167
				<DESCRIPTION>Feed the most recent claims</DESCRIPTION>
168
				<PARAMETERS/>
169
				<ARCS>
170
					<ARC to="success"/>
171
				</ARCS>
172
			</NODE>
173
		</CONFIGURATION>
174
		<STATUS>
175
			<LAST_EXECUTION_ID>wf_20170723_163915_443</LAST_EXECUTION_ID>
176
			<LAST_EXECUTION_DATE>2017-07-23T16:39:26+00:00</LAST_EXECUTION_DATE>
177
			<LAST_EXECUTION_STATUS>SUCCESS</LAST_EXECUTION_STATUS>
178
			<LAST_EXECUTION_ERROR/>
179
			<LAST_EXECUTION_OUTPUT name="mainlog:selection">YES</LAST_EXECUTION_OUTPUT>
180
		</STATUS>
181
	</BODY>
182
</RESOURCE_PROFILE>
(3-3/17)