Project

General

Profile

1
<?xml version="1.0" encoding="UTF-8"?>
2
<RESOURCE_PROFILE>
3
	<HEADER>
4
		<RESOURCE_IDENTIFIER value="da3531c6-2bf6-48ab-848b-bd4c6379fd65_V29ya2Zsb3dUZW1wbGF0ZURTUmVzb3VyY2VzL1dvcmtmbG93VGVtcGxhdGVEU1Jlc291cmNlVHlwZQ=="/>
5
		<RESOURCE_TYPE value="WorkflowTemplateDSResourceType"/>
6
		<RESOURCE_KIND value="WorkflowTemplateDSResources"/>
7
		<RESOURCE_URI value=""/>
8
		<DATE_OF_CREATION value="2001-12-31T12:00:00"/>
9
	</HEADER>
10
	<BODY>
11
		<CONFIGURATION>
12
			<PARAMETERS>
13
				<PARAM name="dsId" description="Datasource Id" required="true" type="string"/>
14
				<PARAM name="interface" description="Datasource Interface" required="true" type="string"/>
15
				<PARAM name="collMdstoreId" description="Store for collected records" required="true" type="string"/>
16
				<PARAM name="cleanMdstoreId" description="Store for cleaned records" required="true" type="string"/>
17
				<PARAM name="ruleId" description="Transformation Rule Id" required="true" type="string"/>
18
			</PARAMETERS>
19
			<WORKFLOW>
20
				<NODE name="fetchOriginals" type="FetchMDStoreRecords" isStart="true">
21
					<DESCRIPTION>Fetch records from MDStore</DESCRIPTION>
22
					<PARAMETERS>
23
						<PARAM name="mdId" ref="collMdstoreId"/>
24
						<PARAM name="mdFormat" value="oai_efg"/>
25
						<PARAM name="eprParam" value="orig_epr"/>
26
					</PARAMETERS>
27
					<ARCS>
28
						<ARC to="clean"/>
29
					</ARCS>
30
				</NODE>
31
				<NODE name="transform" type="Transform">
32
					<DESCRIPTION>Clean original records</DESCRIPTION>
33
					<PARAMETERS>
34
						<PARAM name="ruleId" ref="ruleId"/>
35
						<PARAM name="inputEprParam" value="orig_epr"/>
36
						<PARAM name="outputEprParam" value="clean_epr"/>
37
					</PARAMETERS>
38
					<ARCS>
39
						<ARC to="storeRecords"/>
40
					</ARCS>
41
				</NODE>
42
				<NODE name="storeRecords" type="StoreMDStoreRecords">
43
					<DESCRIPTION>Store mdtore records</DESCRIPTION>
44
					<PARAMETERS>
45
						<PARAM name="mdId" ref="cleanMdstoreId"/>
46
						<PARAM name="storingType" value="REFRESH"/>
47
						<PARAM name="eprParam" value="clean_epr"/>
48
					</PARAMETERS>
49
					<ARCS>
50
						<ARC to="UPDATE_INFO"/>
51
					</ARCS>
52
				</NODE>
53
				<NODE name="UPDATE_INFO" type="MDStoreToApiExtraField">
54
					<DESCRIPTION>Update datasouce API extra fields</DESCRIPTION>
55
					<PARAMETERS>
56
						<PARAM name="mdId" ref="cleanMdstoreId"/>
57
						<PARAM name="datasourceId" ref="dsId"/>
58
						<PARAM name="datasourceInterface" ref="interface"/>
59
						<PARAM name="extraFieldForTotal" value="last_aggregation_total"/>
60
						<PARAM name="extraFieldForDate" value="last_aggregation_date"/>
61
						<PARAM name="extraFieldForMdId" value="last_aggregation_mdId"/>
62
					</PARAMETERS>
63
					<ARCS>
64
						<ARC to="success"/>
65
					</ARCS>
66
				</NODE>
67
			</WORKFLOW>
68
		</CONFIGURATION>
69
	</BODY>
70
</RESOURCE_PROFILE>
(4-4/4)