Project

General

Profile

1
<RESOURCE_PROFILE>
2
	<HEADER>
3
		<RESOURCE_IDENTIFIER value="c73dd31d-17ee-4a9c-b3df-c0b278668b3d_V29ya2Zsb3dUZW1wbGF0ZURTUmVzb3VyY2VzL1dvcmtmbG93VGVtcGxhdGVEU1Jlc291cmNlVHlwZQ=="/>
4
		<RESOURCE_TYPE value="WorkflowTemplateDSResourceType"/>
5
		<RESOURCE_KIND value="WorkflowTemplateDSResources"/>
6
		<RESOURCE_URI value=""/>
7
		<DATE_OF_CREATION value="2001-12-31T12:00:00"/>
8
	</HEADER>
9
	<BODY>
10
		<CONFIGURATION>
11
			<PARAMETERS>
12
				<PARAM name="cleanMdstoreId" description="Store for cleaned records" required="true" type="string"/>
13
				<PARAM name="dsId" description="Datasource Id" required="true" type="string"/>
14
			</PARAMETERS>
15
			<WORKFLOW>
16

    
17

    
18
				<NODE name="setFormat" type="SetFormatInfo" isStart="true">
19
					<DESCRIPTION>Set Format Info</DESCRIPTION>
20
					<PARAMETERS>
21
						<PARAM name="format" value="edm"/>
22
						<PARAM name="layout" value="store"/>
23
						<PARAM name="interpretation" value="cleaned"/>
24
						<PARAM name="formatParam" value="oai_format"/>
25
						<PARAM name="layoutParam" value="oai_layout"/>
26
						<PARAM name="interpretationParam" value="oai_interpretation"/>
27
					</PARAMETERS>
28
					<ARCS>
29
						<ARC to="prepareOAI"/>
30
					</ARCS>
31
				</NODE>
32

    
33
				<NODE name="prepareOAI" type="PrepareOaiJob">
34
					<DESCRIPTION>Prepare oai feeding</DESCRIPTION>
35
					<PARAMETERS>
36
						<PARAM name="oaiStoreCollectionParam" value="oaiStoreCollection"/>
37
						<PARAM name="oaiDBName" value="oaistore_efg"/>
38
						<PARAM name="oaiDBNameParam" value="oai_dbName"/>
39
					</PARAMETERS>
40
					<ARCS>
41
						<ARC to="CompoundIndexes"/>
42
					</ARCS>
43
				</NODE>
44

    
45
				<NODE name="CompoundIndexes" type="OAICreateIndex">
46
					<DESCRIPTION>Create composite indexes for the OAI store</DESCRIPTION>
47
					<PARAMETERS>
48
						<PARAM name="dbNameParam" value="oai_dbName"/>
49
						<PARAM name="oaiStoreCollectionParam" value="oaiStoreCollection"/>
50
						<PARAM name="fieldNames" value="set,datestamp;entitytype"/>
51
					</PARAMETERS>
52
					<ARCS>
53
						<ARC to="ConfigIndexes"/>
54
					</ARCS>
55
				</NODE>
56

    
57
				<NODE name="ConfigIndexes" type="OAIEnsureIndexes">
58
					<DESCRIPTION>Ensure an index exists on fields as specified in the configuration profile</DESCRIPTION>
59
					<PARAMETERS>
60
						<PARAM name="dbNameParam" value="oai_dbName"/>
61
						<PARAM name="oaiStoreCollectionParam" value="oaiStoreCollection"/>
62
					</PARAMETERS>
63
					<ARCS>
64
						<ARC to="SetsCount"/>
65
					</ARCS>
66
				</NODE>
67

    
68
				<NODE name="SetsCount" type="OAISetsCountUpdate">
69
					<DESCRIPTION>Count records in each OAI set, for each exported metadata format linked to the given oai collection</DESCRIPTION>
70
					<PARAMETERS>
71
						<PARAM name="dbNameParam" value="oai_dbName"/>
72
						<PARAM name="oaiStoreCollectionParam" value="oaiStoreCollection"/>
73
						<PARAM name="configuredOnly" value="false"/>
74
					</PARAMETERS>
75
					<ARCS>
76
						<ARC to="ConfigSets"/>
77
					</ARCS>
78
				</NODE>
79

    
80
				<NODE name="ConfigSets" type="OAIRefreshConfiguration">
81
					<DESCRIPTION>Reads the current OAI configuration and upsert OAI sets accordingly (counts are updated as well)</DESCRIPTION>
82
					<PARAMETERS>
83
						<PARAM name="dbNameParam" value="oai_dbName"/>
84
					</PARAMETERS>
85
					<ARCS>
86
						<ARC to="success"/>
87
					</ARCS>
88
				</NODE>
89

    
90

    
91
			</WORKFLOW>
92
		</CONFIGURATION>
93
	</BODY>
94
</RESOURCE_PROFILE>
(6-6/9)