1 |
33604
|
alessia.ba
|
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
40491
|
michele.ar
|
<RESOURCE_PROFILE>
|
3 |
48139
|
alessia.ba
|
<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="findIndex" type="FindIndex" isStart="true">
|
16 |
|
|
<DESCRIPTION/>
|
17 |
|
|
<PARAMETERS>
|
18 |
|
|
<PARAM name="mdFormat" type="string" managedBy="user" required="true">DMF</PARAM>
|
19 |
|
|
<PARAM name="layout" type="string" managedBy="system" required="true">index</PARAM>
|
20 |
|
|
<PARAM name="interpretation" type="string" managedBy="system" required="true">openaire</PARAM>
|
21 |
|
|
</PARAMETERS>
|
22 |
|
|
<ARCS>
|
23 |
|
|
<ARC name="found" to="findShadowSearchService"/>
|
24 |
|
|
<ARC name="notFound" to="waitForSearch"/>
|
25 |
|
|
</ARCS>
|
26 |
|
|
</NODE>
|
27 |
|
|
<NODE name="findShadowSearchService" type="FindSearchServices">
|
28 |
|
|
<DESCRIPTION>find shadow search service</DESCRIPTION>
|
29 |
|
|
<PARAMETERS>
|
30 |
|
|
<PARAM name="xquery" type="string" managedBy="user" required="false">/RESOURCE_PROFILE[.//RESOURCE_TYPE/@value='SearchServiceResourceType'
|
31 |
|
|
and .//RESOURCE_KIND/@value='ServiceResources' and
|
32 |
|
|
.//PROPERTY[@key="infrastructure"]/@value="shadow"]/HEADER/RESOURCE_IDENTIFIER/@value/string()
|
33 |
|
|
</PARAM>
|
34 |
|
|
</PARAMETERS>
|
35 |
|
|
<ARCS>
|
36 |
|
|
<ARC name="found" to="switches"/>
|
37 |
|
|
<ARC name="notFound" to="waitForSearch"/>
|
38 |
|
|
</ARCS>
|
39 |
|
|
</NODE>
|
40 |
|
|
<NODE name="switches" type="SwitchIndexes">
|
41 |
|
|
<DESCRIPTION>switch index</DESCRIPTION>
|
42 |
|
|
<PARAMETERS></PARAMETERS>
|
43 |
|
|
<ARCS>
|
44 |
|
|
<ARC name="switch" to="switch"/>
|
45 |
|
|
<ARC to="waitForSearch"/>
|
46 |
|
|
</ARCS>
|
47 |
|
|
</NODE>
|
48 |
|
|
<NODE name="switch" type="SwitchSearchService">
|
49 |
|
|
<DESCRIPTION>switch index</DESCRIPTION>
|
50 |
|
|
<PARAMETERS>
|
51 |
|
|
<PARAM name="inputIndexIdParam" type="string" managedBy="system" required="true">index_id</PARAM>
|
52 |
|
|
<PARAM name="outputIndexIdParam" type="string" managedBy="system" required="true">IndexId</PARAM>
|
53 |
|
|
</PARAMETERS>
|
54 |
|
|
<ARCS>
|
55 |
|
|
<ARC to="switches"/>
|
56 |
|
|
</ARCS>
|
57 |
|
|
</NODE>
|
58 |
|
|
<NODE name="waitForSearch">
|
59 |
|
|
<DESCRIPTION>Wait for the search branch to fail or to success</DESCRIPTION>
|
60 |
|
|
<PARAMETERS/>
|
61 |
|
|
<ARCS>
|
62 |
|
|
<ARC to="SELECT_FEED_CLAIMS"/>
|
63 |
|
|
</ARCS>
|
64 |
|
|
</NODE>
|
65 |
40491
|
michele.ar
|
|
66 |
48139
|
alessia.ba
|
<NODE name="SELECT_FEED_CLAIMS" type="Selection">
|
67 |
|
|
<DESCRIPTION>Do we feed the the most recent claims today?</DESCRIPTION>
|
68 |
|
|
<PARAMETERS>
|
69 |
|
|
<PARAM function="validValues(['YES', 'NO'])" managedBy="user" name="selection" required="true" type="string">NO</PARAM>
|
70 |
|
|
</PARAMETERS>
|
71 |
|
|
<ARCS>
|
72 |
|
|
<ARC name="YES" to="feedClaims"/>
|
73 |
|
|
<ARC name="NO" to="findStatsService"/>
|
74 |
|
|
</ARCS>
|
75 |
|
|
</NODE>
|
76 |
40491
|
michele.ar
|
|
77 |
48139
|
alessia.ba
|
<NODE name="feedClaims" type="FeedMissingClaims">
|
78 |
|
|
<DESCRIPTION>Feed the most recent claims</DESCRIPTION>
|
79 |
|
|
<PARAMETERS/>
|
80 |
|
|
<ARCS>
|
81 |
|
|
<ARC to="findStatsService"/>
|
82 |
|
|
</ARCS>
|
83 |
|
|
</NODE>
|
84 |
40491
|
michele.ar
|
|
85 |
48139
|
alessia.ba
|
<NODE name="findStatsService" type="FindStatsService">
|
86 |
|
|
<DESCRIPTION>find stats service</DESCRIPTION>
|
87 |
|
|
<PARAMETERS>
|
88 |
|
|
<PARAM name="xquery" type="string" managedBy="user" required="false">
|
89 |
|
|
/RESOURCE_PROFILE[.//RESOURCE_TYPE/@value='StatsManagerServiceResourceType' and
|
90 |
|
|
.//RESOURCE_KIND/@value='ServiceResources']/HEADER/RESOURCE_IDENTIFIER/@value/string()
|
91 |
|
|
</PARAM>
|
92 |
|
|
<PARAM name="xqueryForServiceIdParam" type="string" managedBy="system" required="true">xqueryForStatsManagerService</PARAM>
|
93 |
|
|
</PARAMETERS>
|
94 |
|
|
<ARCS>
|
95 |
|
|
<ARC name="found" to="SELECT_PREPARE_STATS"/>
|
96 |
|
|
<ARC name="notFound" to="failure"/>
|
97 |
|
|
</ARCS>
|
98 |
|
|
</NODE>
|
99 |
|
|
<NODE name="SELECT_PREPARE_STATS" type="Selection">
|
100 |
|
|
<DESCRIPTION>Do we prepare the shadow stats for preview today?</DESCRIPTION>
|
101 |
|
|
<PARAMETERS>
|
102 |
|
|
<PARAM function="validValues(['YES', 'NO'])" managedBy="user" name="selection" required="true" type="string">YES</PARAM>
|
103 |
|
|
</PARAMETERS>
|
104 |
|
|
<ARCS>
|
105 |
|
|
<ARC name="YES" to="setPortal"/>
|
106 |
|
|
<ARC name="NO" to="success"/>
|
107 |
|
|
</ARCS>
|
108 |
|
|
</NODE>
|
109 |
|
|
<NODE name="setPortal" type="SetEnvParameter">
|
110 |
|
|
<DESCRIPTION>set the target portal instance for pre-public preview</DESCRIPTION>
|
111 |
|
|
<PARAMETERS>
|
112 |
|
|
<PARAM name="parameterName" type="string" managedBy="system" required="true">portal</PARAM>
|
113 |
|
|
<PARAM function="validValues(['test'])" managedBy="user" name="parameterValue" required="false" type="string">test</PARAM>
|
114 |
|
|
</PARAMETERS>
|
115 |
|
|
<ARCS>
|
116 |
|
|
<ARC to="refreshShadowCache"/>
|
117 |
|
|
</ARCS>
|
118 |
|
|
</NODE>
|
119 |
|
|
<NODE name="refreshShadowCache" type="RefreshShadowCache">
|
120 |
|
|
<DESCRIPTION>Updates the shadow cache according to the shadow stats db.</DESCRIPTION>
|
121 |
|
|
<PARAMETERS>
|
122 |
|
|
<PARAM name="xqueryForServiceIdParam" type="string" managedBy="system" required="true">xqueryForStatsManagerService</PARAM>
|
123 |
|
|
<PARAM managedBy="system" name="portalParam" required="true" type="string">portal</PARAM>
|
124 |
|
|
</PARAMETERS>
|
125 |
|
|
<ARCS>
|
126 |
|
|
<ARC to="promoteCache"/>
|
127 |
|
|
</ARCS>
|
128 |
|
|
</NODE>
|
129 |
|
|
<NODE name="promoteCache" type="PromoteShadowCacheStats">
|
130 |
|
|
<DESCRIPTION>Promote the shadow cache.</DESCRIPTION>
|
131 |
|
|
<PARAMETERS>
|
132 |
|
|
<PARAM name="xqueryForServiceIdParam" type="string" managedBy="system" required="true">xqueryForStatsManagerService</PARAM>
|
133 |
|
|
<PARAM managedBy="system" name="portalParam" required="true" type="string">portal</PARAM>
|
134 |
|
|
</PARAMETERS>
|
135 |
|
|
<ARCS>
|
136 |
|
|
<ARC to="success"/>
|
137 |
|
|
</ARCS>
|
138 |
|
|
</NODE>
|
139 |
|
|
</CONFIGURATION>
|
140 |
|
|
<STATUS/>
|
141 |
|
|
</BODY>
|
142 |
33604
|
alessia.ba
|
</RESOURCE_PROFILE>
|
143 |
|
|
|