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="440e5de7-7106-469c-8c8d-89c261a1e09d_V29ya2Zsb3dEU1Jlc291cmNlcy9Xb3JrZmxvd0RTUmVzb3VyY2VUeXBl"/>
|
5
|
<RESOURCE_TYPE value="WorkflowDSResourceType"/>
|
6
|
<RESOURCE_KIND value="WorkflowDSResources"/>
|
7
|
<RESOURCE_URI value=""/>
|
8
|
<DATE_OF_CREATION value="2014-07-16T18:13:51.0Z"/>
|
9
|
</HEADER>
|
10
|
<BODY>
|
11
|
<WORKFLOW_NAME>OAI Post feed</WORKFLOW_NAME>
|
12
|
<WORKFLOW_TYPE>Provision</WORKFLOW_TYPE>
|
13
|
<WORKFLOW_PRIORITY>30</WORKFLOW_PRIORITY>
|
14
|
<CONFIGURATION start="manual">
|
15
|
<NODE name="prepareOAI" type="PrepareOaiJob" isStart="true">
|
16
|
<DESCRIPTION>Prepare target OAI store</DESCRIPTION>
|
17
|
<PARAMETERS>
|
18
|
<PARAM name="oaiDbName" type="string" managedBy="user" required="true">oaistore</PARAM>
|
19
|
<PARAM name="oaiFormat" type="string" managedBy="user" required="true">oaf</PARAM>
|
20
|
<PARAM name="oaiLayout" type="string" managedBy="user" required="true">index</PARAM>
|
21
|
<PARAM name="oaiInterpretation" type="string" managedBy="user" required="true">openaire</PARAM>
|
22
|
<PARAM name="oaiSource" type="string" managedBy="user" required="false"></PARAM>
|
23
|
</PARAMETERS>
|
24
|
<ARCS>
|
25
|
<ARC to="RefreshConfig" />
|
26
|
</ARCS>
|
27
|
</NODE>
|
28
|
<NODE name="RefreshConfig" type="OAIRefreshConfiguration">
|
29
|
<DESCRIPTION>Reads the current OAI configuration and upsert OAI sets accordingly</DESCRIPTION>
|
30
|
<PARAMETERS></PARAMETERS>
|
31
|
<ARCS>
|
32
|
<ARC to="SELECT_UPDATE_INDICES" />
|
33
|
</ARCS>
|
34
|
</NODE>
|
35
|
<NODE name="SELECT_UPDATE_INDICES" type="Selection">
|
36
|
<DESCRIPTION>Do we update the indices on the oai store?</DESCRIPTION>
|
37
|
<PARAMETERS>
|
38
|
<PARAM function="validValues(['YES', 'NO'])" managedBy="user" name="selection" required="true" type="string">YES</PARAM>
|
39
|
</PARAMETERS>
|
40
|
<ARCS>
|
41
|
<ARC name="YES" to="CompoundIndexes" />
|
42
|
<ARC name="NO" to="SELECT_REFRESH_SET_COUNTS" />
|
43
|
</ARCS>
|
44
|
</NODE>
|
45
|
<NODE name="CompoundIndexes" type="OAICreateIndex">
|
46
|
<DESCRIPTION>Create composite indexes for the OAI store</DESCRIPTION>
|
47
|
<PARAMETERS>
|
48
|
<PARAM name="fieldNames" type="string" managedBy="user" required="true">set,datestamp;license,oaftype;set,oaftype;oaftype,funder;resulttypeid,oaftype</PARAM>
|
49
|
</PARAMETERS>
|
50
|
<ARCS>
|
51
|
<ARC to="ConfigIndexes" />
|
52
|
</ARCS>
|
53
|
</NODE>
|
54
|
<NODE name="ConfigIndexes" type="OAIEnsureIndexes" >
|
55
|
<DESCRIPTION>Create indexes on fields as specified in the configuration profile</DESCRIPTION>
|
56
|
<PARAMETERS>
|
57
|
</PARAMETERS>
|
58
|
<ARCS>
|
59
|
<ARC to="SELECT_REFRESH_SET_COUNTS" />
|
60
|
</ARCS>
|
61
|
</NODE>
|
62
|
<NODE name="SELECT_REFRESH_SET_COUNTS" type="Selection">
|
63
|
<DESCRIPTION>Do we refresh the sets counts?</DESCRIPTION>
|
64
|
<PARAMETERS>
|
65
|
<PARAM function="validValues(['YES', 'NO'])" managedBy="user" name="selection" required="true" type="string">YES</PARAM>
|
66
|
</PARAMETERS>
|
67
|
<ARCS>
|
68
|
<ARC name="YES" to="SetsCount" />
|
69
|
<ARC name="NO" to="SELECT_SWITCH_OAIDB" />
|
70
|
</ARCS>
|
71
|
</NODE>
|
72
|
<NODE name="SetsCount" type="OAISetsCountUpdate">
|
73
|
<DESCRIPTION>Count records in each OAI set, for each exported metadata format linked to the given oai collection</DESCRIPTION>
|
74
|
<PARAMETERS>
|
75
|
<PARAM name="configuredOnly" type="boolean" managedBy="user" required="true">false</PARAM>
|
76
|
</PARAMETERS>
|
77
|
<ARCS>
|
78
|
<ARC to="SELECT_SWITCH_OAIDB" />
|
79
|
</ARCS>
|
80
|
</NODE>
|
81
|
|
82
|
<NODE name="SELECT_SWITCH_OAIDB" type="Selection">
|
83
|
<DESCRIPTION>Do we switch the oaistore db for the public now? If not, you can change the value manually on the configuration profile</DESCRIPTION>
|
84
|
<PARAMETERS>
|
85
|
<PARAM function="validValues(['YES', 'NO'])" managedBy="user" name="selection" required="true" type="string">YES</PARAM>
|
86
|
</PARAMETERS>
|
87
|
<ARCS>
|
88
|
<ARC name="YES" to="SetOAIDB" />
|
89
|
<ARC name="NO" to="success" />
|
90
|
</ARCS>
|
91
|
</NODE>
|
92
|
<NODE name="SetOAIDB" type="SetCurrentOAIDB">
|
93
|
<DESCRIPTION>Update the currentdb in the OAI configuration profile</DESCRIPTION>
|
94
|
<PARAMETERS>
|
95
|
</PARAMETERS>
|
96
|
<ARCS>
|
97
|
<ARC to="success" />
|
98
|
</ARCS>
|
99
|
</NODE>
|
100
|
|
101
|
</CONFIGURATION>
|
102
|
<STATUS />
|
103
|
</BODY>
|
104
|
</RESOURCE_PROFILE>
|