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="transform"/>
43
	</ARCS>
44
</NODE>
45

    
46
<NODE name="transform" type="Transform">
47
	<DESCRIPTION>Transform original records in DB rows</DESCRIPTION>
48
	<PARAMETERS>
49
		<PARAM required="true" type="string" name="ruleId" managedBy="user" category="TRANSFORMATION_RULE_ID" function="listProfiles('TransformationRuleDSResourceType', '//TITLE')"></PARAM>
50
		<PARAM required="true" type="string" name="inputEprParam" managedBy="system">orig_epr</PARAM>
51
		<PARAM required="true" type="string" name="outputEprParam" managedBy="system">packed_row_epr</PARAM>
52
	</PARAMETERS>
53
	<ARCS>
54
		<ARC to="cleanRows"/>
55
	</ARCS>
56
</NODE>
57

    
58
<NODE name="cleanRows" type="Clean">
59
	<DESCRIPTION>Clean DB rows values according to defined vocabularies</DESCRIPTION>
60
	<PARAMETERS>
61
		<PARAM required="true" type="string" name="ruleId" managedBy="user" category="CLEANER_RULE_ID" function="listProfiles('CleanerDSResourceType', '//CLEANER_NAME')"></PARAM>
62
		<PARAM required="true" type="string" name="inputEprParam" managedBy="system">packed_row_epr</PARAM>
63
		<PARAM required="true" type="string" name="outputEprParam" managedBy="system">cleaned_row_epr</PARAM>
64
	</PARAMETERS>
65
	<ARCS>
66
		<ARC to="storeRowRecords"/>
67
	</ARCS>
68
</NODE>
69

    
70
<NODE name="storeRowRecords" type="StoreMDStoreRecords">
71
	<DESCRIPTION>Store mdtore records</DESCRIPTION>
72
	<PARAMETERS>
73
		<PARAM required="true" type="string" name="mdId" managedBy="system" category="MDSTORE_ID">$params.("row_id")$</PARAM>
74
		<PARAM required="true" type="string" name="storingType" managedBy="system">REFRESH</PARAM>
75
		<PARAM required="true" type="string" name="eprParam" managedBy="system">cleaned_row_epr</PARAM>
76
	</PARAMETERS>
77
	<ARCS>
78
		<ARC to="UPDATE_INFO"/>
79
	</ARCS>
80
</NODE>
81

    
82
 <NODE name="UPDATE_INFO" type="MDStoreToApiExtraField">
83
	<DESCRIPTION>Update datasouce API extra fields</DESCRIPTION>
84
	<PARAMETERS>
85
		<PARAM required="true" type="string" name="mdId" managedBy="system">$params.("row_id")$</PARAM>
86
		<PARAM required="true" type="string" name="datasourceId" managedBy="system">$params.("dataprovider:id")$</PARAM>
87
		<PARAM required="true" type="string" name="datasourceInterface" managedBy="system">$params.("dataprovider:interface")$</PARAM>
88
		<PARAM required="true" type="string" name="extraFieldForTotal" managedBy="system">last_aggregation_total</PARAM>
89
		<PARAM required="true" type="string" name="extraFieldForDate" managedBy="system">last_aggregation_date</PARAM>
90
		<PARAM required="true" type="string" name="extraFieldForMdId" managedBy="system">last_aggregation_mdId</PARAM>
91
	</PARAMETERS>
92
	<ARCS>
93
		<ARC to="success"/>
94
	</ARCS>
95
</NODE>
(4-4/5)