Project

General

Profile

1
<NODE name="SET_INFO" isStart="true" type="SetProviderInfo">
2
	<DESCRIPTION>Set information about current provider</DESCRIPTION>
3
	<PARAMETERS>
4
		<PARAM required="true" type="string" name="providerId" managedBy="system">$params.("dataprovider:id")$</PARAM>
5
		<PARAM required="true" type="string" name="providerName" managedBy="system">$params.("dataprovider:name")$</PARAM>
6
		<PARAM required="true" type="string" name="api" managedBy="system">$params.("dataprovider:interface")$</PARAM>
7
	</PARAMETERS>
8
	<ARCS>
9
		<ARC to="selectIncrementalTransformation"/>
10
    	<ARC to="obtainParams" />
11
    </ARCS>
12
    </NODE>
13

    
14
<NODE name="selectIncrementalTransformation" type="IncrementalTransformation">
15
    	<DESCRIPTION>Decide REFRESH/INCREMENTAL transformation</DESCRIPTION>
16
    	<PARAMETERS>
17
    		<PARAM required="true" type="string" name="operationType" managedBy="user" function="validValues(['REFRESH','INCREMENTAL'])"></PARAM>
18
    	</PARAMETERS>
19
    	<ARCS>
20
    		<ARC to="fetchOriginals"/>
21
    	</ARCS>
22
    </NODE>
23

    
24
<NODE name="fetchOriginals" type="FetchMDStoreRecords">
25
	<DESCRIPTION>Fetch records from MDStore</DESCRIPTION>
26
	<PARAMETERS>
27
		<PARAM required="true" type="string" name="mdId" managedBy="system" category="MDSTORE_ID">$params.("orig_id")$</PARAM>
28
		<PARAM required="true" type="string" name="mdFormat" managedBy="system">$params.("orig_format")$</PARAM>
29
		<PARAM required="true" type="string" name="eprParam" managedBy="system">orig_epr</PARAM>
30
	</PARAMETERS>
31
	<ARCS>
32
		<ARC to="setFunderAcronym"/>
33
	</ARCS>
34
</NODE>
35

    
36
<NODE name="obtainParams" type="ObtainOpenaireDataSourceParams">
37
	<DESCRIPTION>Fetch records from MDStore</DESCRIPTION>
38
	<PARAMETERS>
39
		<PARAM required="true" type="string" name="providerId" managedBy="system">$params.("dataprovider:id")$</PARAM>
40
	</PARAMETERS>
41
	<ARCS>
42
		<ARC to="setFunderAcronym"/>
43
	</ARCS>
44
</NODE>
45

    
46
<NODE name="setFunderAcronym" type="SetEnvParameter" isJoin="true">
47
	<DESCRIPTION>Set funder acronym to use in transformation</DESCRIPTION>
48
	<PARAMETERS>
49
		<PARAM required="true" type="string" name="parameterName" managedBy="system">funderAcronym</PARAM>
50
		<PARAM required="false" type="string" name="parameterValue" managedBy="user"></PARAM>
51
	</PARAMETERS>
52
	<ARCS>
53
		<ARC to="transform"/>
54
	</ARCS>
55
</NODE>
56

    
57
<NODE name="transform" type="Transform">
58
	<DESCRIPTION>Transform original records in DB rows</DESCRIPTION>
59
	<PARAMETERS>
60
		<PARAM required="true" type="string" name="ruleId" managedBy="user" category="TRANSFORMATION_RULE_ID" function="listProfiles('TransformationRuleDSResourceType', '//TITLE')"></PARAM>
61
		<PARAM required="true" type="string" name="inputEprParam" managedBy="system">orig_epr</PARAM>
62
		<PARAM required="true" type="string" name="outputEprParam" managedBy="system">packed_row_epr</PARAM>
63
	</PARAMETERS>
64
	<ARCS>
65
		<ARC to="cleanRows"/>
66
	</ARCS>
67
</NODE>
68

    
69
<NODE name="cleanRows" type="Clean">
70
	<DESCRIPTION>Clean DB rows values according to defined vocabularies</DESCRIPTION>
71
	<PARAMETERS>
72
		<PARAM required="true" type="string" name="ruleId" managedBy="user" category="CLEANER_RULE_ID" function="listProfiles('CleanerDSResourceType', '//CLEANER_NAME')"></PARAM>
73
		<PARAM required="true" type="string" name="inputEprParam" managedBy="system">packed_row_epr</PARAM>
74
		<PARAM required="true" type="string" name="outputEprParam" managedBy="system">cleaned_row_epr</PARAM>
75
	</PARAMETERS>
76
	<ARCS>
77
		<ARC to="storeRowRecords"/>
78
	</ARCS>
79
</NODE>
80

    
81
<NODE name="storeRowRecords" type="StoreMDStoreRecords">
82
	<DESCRIPTION>Store mdtore records</DESCRIPTION>
83
	<PARAMETERS>
84
		<PARAM required="true" type="string" name="mdId" managedBy="system" category="MDSTORE_ID">$params.("row_id")$</PARAM>
85
		<PARAM required="true" type="string" name="storingType" managedBy="system">REFRESH</PARAM>
86
		<PARAM required="true" type="string" name="eprParam" managedBy="system">cleaned_row_epr</PARAM>
87
	</PARAMETERS>
88
	<ARCS>
89
		<ARC to="UPDATE_INFO"/>
90
	</ARCS>
91
</NODE>
92

    
93
 <NODE name="UPDATE_INFO" type="MDStoreToApiExtraField">
94
	<DESCRIPTION>Update datasouce API extra fields</DESCRIPTION>
95
	<PARAMETERS>
96
		<PARAM required="true" type="string" name="mdId" managedBy="system">$params.("row_id")$</PARAM>
97
		<PARAM required="true" type="string" name="datasourceId" managedBy="system">$params.("dataprovider:id")$</PARAM>
98
		<PARAM required="true" type="string" name="datasourceInterface" managedBy="system">$params.("dataprovider:interface")$</PARAM>
99
		<PARAM required="true" type="string" name="extraFieldForTotal" managedBy="system">last_aggregation_total</PARAM>
100
		<PARAM required="true" type="string" name="extraFieldForDate" managedBy="system">last_aggregation_date</PARAM>
101
		<PARAM required="true" type="string" name="extraFieldForMdId" managedBy="system">last_aggregation_mdId</PARAM>
102
	</PARAMETERS>
103
	<ARCS>
104
		<ARC to="success"/>
105
	</ARCS>
106
</NODE>
(4-4/5)