Project

General

Profile

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="setFormat" type="SetFormatInfo" isStart="true">
16
				<DESCRIPTION />
17
				<PARAMETERS>
18
					<PARAM name="format" type="string" managedBy="user" required="true">oaf</PARAM>
19
					<PARAM name="layout" type="string" managedBy="user" required="true">index</PARAM>
20
					<PARAM name="interpretation" type="string" managedBy="user" required="true">openaire</PARAM>	
21
					<PARAM name="formatParam" type="string" managedBy="system" required="true">oai_format</PARAM>
22
					<PARAM name="layoutParam" type="string" managedBy="system" required="true">oai_layout</PARAM>
23
					<PARAM name="interpretationParam" type="string" managedBy="system" required="true">oai_interpretation</PARAM>													
24
				</PARAMETERS>
25
				<ARCS>
26
					<ARC to="prepareOAI" />
27
				</ARCS>
28
			</NODE>	
29
			<NODE name="prepareOAI" type="PrepareOaiJob">
30
				<DESCRIPTION>Prepare oai feeding</DESCRIPTION>
31
				<PARAMETERS>
32
					<PARAM name="oaiStoreCollectionParam" type="string" managedBy="system" required="true">oaiStoreCollection</PARAM>
33
					<PARAM name="oaiDBName" type="string" managedBy="user" required="true">oaistore</PARAM>
34
					<PARAM name="oaiDBNameParam" type="string" managedBy="system" required="true">oai_dbName</PARAM>
35
				</PARAMETERS>
36
				<ARCS>
37
					<ARC to="RefreshConfig" />
38
				</ARCS>
39
			</NODE>
40
			<NODE name="RefreshConfig" type="OAIRefreshConfiguration">
41
				<DESCRIPTION>Reads the current OAI configuration and upsert OAI sets accordingly</DESCRIPTION>
42
				<PARAMETERS>
43
					<PARAM name="dbNameParam" required="true" type="string" managedBy="system">oai_dbName</PARAM>
44
				</PARAMETERS>
45
				<ARCS>
46
					<ARC to="SELECT_UPDATE_INDICES" />
47
				</ARCS>
48
			</NODE>
49
			<NODE name="SELECT_UPDATE_INDICES" type="Selection">
50
				<DESCRIPTION>Do we update the indices on the oai store?</DESCRIPTION>
51
				<PARAMETERS>
52
					<PARAM function="validValues(['YES', 'NO'])" managedBy="user" name="selection" required="true" type="string">YES</PARAM>
53
				</PARAMETERS>
54
				<ARCS>
55
					<ARC name="YES" to="CompoundIndexes" />
56
					<ARC name="NO" to="SELECT_REFRESH_SET_COUNTS" />
57
				</ARCS>
58
			</NODE>
59
			<NODE name="CompoundIndexes" type="OAICreateIndex">
60
				<DESCRIPTION>Create composite indexes for the OAI store</DESCRIPTION>
61
				<PARAMETERS>
62
					<PARAM name="dbNameParam" required="true" type="string" managedBy="system">oai_dbName</PARAM>
63
					<PARAM name="oaiStoreCollectionParam" type="string" managedBy="system" required="true">oaiStoreCollection</PARAM>
64
					<PARAM name="fieldNames" type="string" managedBy="user" required="true">set,datestamp;license,oaftype;set,oaftype;oaftype,funder;resulttypeid,oaftype</PARAM>
65
				</PARAMETERS>
66
				<ARCS>
67
					<ARC to="ConfigIndexes" />
68
				</ARCS>
69
			</NODE>
70
			<NODE name="ConfigIndexes" type="OAIEnsureIndexes" >
71
				<DESCRIPTION>Ensure an index exists on fields as specified in the configuration profile</DESCRIPTION>
72
				<PARAMETERS>
73
					<PARAM name="dbNameParam" required="true" type="string" managedBy="system">oai_dbName</PARAM>
74
					<PARAM name="oaiStoreCollectionParam" type="string" managedBy="system" required="true">oaiStoreCollection</PARAM>
75
				</PARAMETERS>
76
				<ARCS>
77
					<ARC to="SELECT_REFRESH_SET_COUNTS" />
78
				</ARCS>
79
			</NODE>			
80
			<NODE name="SELECT_REFRESH_SET_COUNTS" type="Selection">
81
				<DESCRIPTION>Do we refresh the sets counts?</DESCRIPTION>
82
				<PARAMETERS>
83
					<PARAM function="validValues(['YES', 'NO'])" managedBy="user" name="selection" required="true" type="string">YES</PARAM>
84
				</PARAMETERS>
85
				<ARCS>
86
					<ARC name="YES" to="SetsCount" />
87
					<ARC name="NO" to="success" />
88
				</ARCS>
89
			</NODE>
90
			<NODE name="SetsCount" type="OAISetsCountUpdate">
91
				<DESCRIPTION>Count records in each OAI set, for each exported metadata format linked to the given oai collection</DESCRIPTION>
92
				<PARAMETERS>
93
				<PARAM name="dbNameParam" required="true" type="string" managedBy="system">oai_dbName</PARAM>
94
					<PARAM name="oaiStoreCollectionParam" type="string" managedBy="system" required="true">oaiStoreCollection</PARAM>
95
					<PARAM name="configuredOnly" type="boolean" managedBy="user" required="true">false</PARAM>	
96
				</PARAMETERS>
97
				<ARCS>
98
					<ARC to="SELECT_SWITCH_OAIDB" />
99
				</ARCS>
100
			</NODE>			
101
			
102
			<NODE name="SELECT_SWITCH_OAIDB" type="Selection">
103
				<DESCRIPTION>Do we switch the oaistore db for the public now? If not, you can change the value manually on the configuration profile</DESCRIPTION>
104
				<PARAMETERS>
105
					<PARAM function="validValues(['YES', 'NO'])" managedBy="user" name="selection" required="true" type="string">YES</PARAM>
106
				</PARAMETERS>
107
				<ARCS>
108
					<ARC name="YES" to="SetOAIDB" />
109
					<ARC name="NO" to="success" />
110
				</ARCS>
111
			</NODE>
112
			<NODE name="SetOAIDB" type="SetCurrentOAIDB">
113
				<DESCRIPTION>Update the currentdb in the OAI configuration profile to the value in oai_dbName</DESCRIPTION>
114
				<PARAMETERS>
115
					<PARAM name="oaiDBNameParam" required="true" type="string" managedBy="system">oai_dbName</PARAM>
116
				</PARAMETERS>
117
				<ARCS>
118
					<ARC to="success" />
119
				</ARCS>
120
			</NODE>
121
			
122
		</CONFIGURATION>
123
		<STATUS />
124
	</BODY>
125
</RESOURCE_PROFILE>
(2-2/2)