1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
<RESOURCE_PROFILE xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
3
|
<HEADER>
|
4
|
<RESOURCE_IDENTIFIER value="8aabd31c-3be8-407a-8f53-6548f50ec728_V29ya2Zsb3dEU1Jlc291cmNlcy9Xb3JrZmxvd0RTUmVzb3VyY2VUeXBl"/>
|
5
|
<RESOURCE_TYPE value="WorkflowDSResourceType"/>
|
6
|
<RESOURCE_KIND value="WorkflowDSResources"/>
|
7
|
<RESOURCE_URI value=""/>
|
8
|
<DATE_OF_CREATION value="2014-12-16T18:13:51.0Z"/>
|
9
|
</HEADER>
|
10
|
<BODY>
|
11
|
<WORKFLOW_NAME>Prepare Pre-public Information Space</WORKFLOW_NAME>
|
12
|
<WORKFLOW_TYPE>InfoSpace preview</WORKFLOW_TYPE>
|
13
|
<WORKFLOW_PRIORITY>30</WORKFLOW_PRIORITY>
|
14
|
<CONFIGURATION start="manual">
|
15
|
<NODE name="SELECT_PREPARE_STATS" type="Selection" isStart="true">
|
16
|
<DESCRIPTION>Do we prepare the shadow stats for preview today?</DESCRIPTION>
|
17
|
<PARAMETERS>
|
18
|
<PARAM function="validValues(['YES', 'NO'])" managedBy="user" name="selection" required="true" type="string">YES</PARAM>
|
19
|
</PARAMETERS>
|
20
|
<ARCS>
|
21
|
<ARC name="YES" to="findStatsService" />
|
22
|
<ARC name="NO" to="waitForStats" />
|
23
|
</ARCS>
|
24
|
</NODE>
|
25
|
<NODE name="findStatsService" type="FindStatsService">
|
26
|
<DESCRIPTION>find stats service</DESCRIPTION>
|
27
|
<PARAMETERS>
|
28
|
<PARAM name="xquery" type="string" managedBy="user" required="false">/RESOURCE_PROFILE[.//RESOURCE_TYPE/@value='StatsManagerServiceResourceType' and .//RESOURCE_KIND/@value='ServiceResources']/HEADER/RESOURCE_IDENTIFIER/@value/string()</PARAM>
|
29
|
<PARAM name="xqueryForServiceIdParam" type="string" managedBy="system" required="true">xqueryForStatsManagerService</PARAM>
|
30
|
</PARAMETERS>
|
31
|
<ARCS>
|
32
|
<ARC name="found" to="setPortal" />
|
33
|
</ARCS>
|
34
|
</NODE>
|
35
|
<NODE name="setPortal" type="SetEnvParameter">
|
36
|
<DESCRIPTION>set the target portal instance for pre-public preview</DESCRIPTION>
|
37
|
<PARAMETERS>
|
38
|
<PARAM name="parameterName" type="string" managedBy="system" required="true">portal</PARAM>
|
39
|
<PARAM function="validValues(['test'])" managedBy="user" name="parameterValue" required="false" type="string">test</PARAM>
|
40
|
</PARAMETERS>
|
41
|
<ARCS>
|
42
|
<ARC to="refreshShadowCache" />
|
43
|
</ARCS>
|
44
|
</NODE>
|
45
|
<NODE name="refreshShadowCache" type="RefreshShadowCache">
|
46
|
<DESCRIPTION>Updates the shadow cache according to the shadow stats db.</DESCRIPTION>
|
47
|
<PARAMETERS>
|
48
|
<PARAM name="xqueryForServiceIdParam" type="string" managedBy="system" required="true">xqueryForStatsManagerService</PARAM>
|
49
|
<PARAM managedBy="system" name="portalParam" required="true" type="string">portal</PARAM>
|
50
|
</PARAMETERS>
|
51
|
<ARCS>
|
52
|
<ARC to="promoteCache" />
|
53
|
</ARCS>
|
54
|
</NODE>
|
55
|
<NODE name="promoteCache" type="PromoteShadowCacheStats">
|
56
|
<DESCRIPTION>Promote the shadow cache.</DESCRIPTION>
|
57
|
<PARAMETERS>
|
58
|
<PARAM name="xqueryForServiceIdParam" type="string" managedBy="system" required="true">xqueryForStatsManagerService</PARAM>
|
59
|
<PARAM managedBy="system" name="portalParam" required="true" type="string">portal</PARAM>
|
60
|
</PARAMETERS>
|
61
|
<ARCS>
|
62
|
<ARC to="waitForStats" />
|
63
|
</ARCS>
|
64
|
</NODE>
|
65
|
|
66
|
<NODE name="SELECT_SWITCH_INDEX" type="Selection" isStart="true">
|
67
|
<DESCRIPTION>Do we switch the index read by the pre-public portal today?</DESCRIPTION>
|
68
|
<PARAMETERS>
|
69
|
<PARAM function="validValues(['YES', 'NO'])" managedBy="user" name="selection" required="true" type="string">YES</PARAM>
|
70
|
</PARAMETERS>
|
71
|
<ARCS>
|
72
|
<ARC name="YES" to="findIndex" />
|
73
|
<ARC name="NO" to="waitForSearch" />
|
74
|
</ARCS>
|
75
|
</NODE>
|
76
|
<NODE name="findIndex" type="FindIndex">
|
77
|
<DESCRIPTION />
|
78
|
<PARAMETERS>
|
79
|
<PARAM name="mdFormat" type="string" managedBy="user" required="true">DMF</PARAM>
|
80
|
<PARAM name="layout" type="string" managedBy="system" required="true">index</PARAM>
|
81
|
<PARAM name="interpretation" type="string" managedBy="system" required="true">openaire</PARAM>
|
82
|
</PARAMETERS>
|
83
|
<ARCS>
|
84
|
<ARC name="found" to="findSearchService" />
|
85
|
<ARC name="notFound" to="waitForSearch" />
|
86
|
</ARCS>
|
87
|
</NODE>
|
88
|
<NODE name="findSearchService" type="FindSearchService">
|
89
|
<DESCRIPTION>find search service</DESCRIPTION>
|
90
|
<PARAMETERS>
|
91
|
<PARAM name="xquery" type="string" managedBy="user" required="false">/RESOURCE_PROFILE[.//RESOURCE_TYPE/@value='SearchServiceResourceType' and .//RESOURCE_KIND/@value='ServiceResources' and .//PROPERTY[@key="infrastructure"]/@value="shadow"]/HEADER/RESOURCE_IDENTIFIER/@value/string()</PARAM>
|
92
|
<PARAM name="xqueryForServiceIdParam" type="string" managedBy="system" required="true">xqueryForSearchService</PARAM>
|
93
|
</PARAMETERS>
|
94
|
<ARCS>
|
95
|
<ARC name="found" to="switch" />
|
96
|
<ARC name="notFound" to="waitForSearch" />
|
97
|
</ARCS>
|
98
|
</NODE>
|
99
|
<NODE name="switch" type="SwitchIndex">
|
100
|
<DESCRIPTION>switch index</DESCRIPTION>
|
101
|
<PARAMETERS>
|
102
|
<PARAM name="xqueryForServiceIdParam" type="string" managedBy="system" required="true">xqueryForSearchService</PARAM>
|
103
|
<PARAM name="inputIndexIdParam" type="string" managedBy="system" required="true">index_id</PARAM>
|
104
|
<PARAM name="outputIndexIdParam" type="string" managedBy="system" required="true">IndexId</PARAM>
|
105
|
</PARAMETERS>
|
106
|
<ARCS>
|
107
|
<ARC to="waitForSearch" />
|
108
|
</ARCS>
|
109
|
</NODE>
|
110
|
<NODE name="waitForStats">
|
111
|
<DESCRIPTION>Wait for the stats branch to fail or to success</DESCRIPTION>
|
112
|
<PARAMETERS/>
|
113
|
<ARCS>
|
114
|
<ARC to="waitAll" />
|
115
|
</ARCS>
|
116
|
</NODE>
|
117
|
<NODE name="waitForSearch">
|
118
|
<DESCRIPTION>Wait for the search branch to fail or to success</DESCRIPTION>
|
119
|
<PARAMETERS/>
|
120
|
<ARCS>
|
121
|
<ARC to="waitAll" />
|
122
|
</ARCS>
|
123
|
</NODE>
|
124
|
|
125
|
<!-- WAIT FOR ALL THE WF BRANCHES TO COMPLETE -->
|
126
|
<NODE name="waitAll" isJoin="true">
|
127
|
<DESCRIPTION>wait for all the branches to complete</DESCRIPTION>
|
128
|
<PARAMETERS/>
|
129
|
<ARCS>
|
130
|
<ARC to="success"/>
|
131
|
</ARCS>
|
132
|
</NODE>
|
133
|
</CONFIGURATION>
|
134
|
<STATUS />
|
135
|
</BODY>
|
136
|
</RESOURCE_PROFILE>
|
137
|
|
138
|
|