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
|
</ARCS>
|
11
|
</NODE>
|
12
|
|
13
|
<NODE name="selectIncrementalTransformation" type="IncrementalTransformation">
|
14
|
<DESCRIPTION>Decide REFRESH/INCREMENTAL transformation</DESCRIPTION>
|
15
|
<PARAMETERS>
|
16
|
<PARAM required="true" type="string" name="operationType" managedBy="user" function="validValues(['REFRESH','INCREMENTAL'])"></PARAM>
|
17
|
</PARAMETERS>
|
18
|
<ARCS>
|
19
|
<ARC to="obtainParams"/>
|
20
|
</ARCS>
|
21
|
</NODE>
|
22
|
|
23
|
<NODE name="obtainParams" type="ObtainOpenaireDataSourceParams">
|
24
|
<DESCRIPTION>Obtain params on datasource</DESCRIPTION>
|
25
|
<PARAMETERS>
|
26
|
<PARAM required="true" type="string" name="providerId" managedBy="system">$params.("dataprovider:id")$</PARAM>
|
27
|
</PARAMETERS>
|
28
|
<ARCS>
|
29
|
<ARC to="fetchOriginals"/>
|
30
|
</ARCS>
|
31
|
</NODE>
|
32
|
|
33
|
<NODE name="fetchOriginals" type="FetchMDStoreRecords">
|
34
|
<DESCRIPTION>Fetch records from MDStore</DESCRIPTION>
|
35
|
<PARAMETERS>
|
36
|
<PARAM required="true" type="string" name="mdId" managedBy="system" category="MDSTORE_ID">$params.("orig_id")$</PARAM>
|
37
|
<PARAM required="true" type="string" name="mdFormat" managedBy="system">$params.("orig_format")$</PARAM>
|
38
|
<PARAM required="true" type="string" name="eprParam" managedBy="system">orig_epr</PARAM>
|
39
|
</PARAMETERS>
|
40
|
<ARCS>
|
41
|
<ARC to="transform"/>
|
42
|
</ARCS>
|
43
|
</NODE>
|
44
|
|
45
|
<NODE name="transform" type="Transform">
|
46
|
<DESCRIPTION>Transform original records in DB rows</DESCRIPTION>
|
47
|
<PARAMETERS>
|
48
|
<PARAM required="true" type="string" name="ruleId" managedBy="user" category="TRANSFORMATION_RULE_ID" function="listProfiles('TransformationRuleDSResourceType', '//TITLE')"></PARAM>
|
49
|
<PARAM required="true" type="string" name="inputEprParam" managedBy="system">orig_epr</PARAM>
|
50
|
<PARAM required="true" type="string" name="outputEprParam" managedBy="system">packed_row_epr</PARAM>
|
51
|
</PARAMETERS>
|
52
|
<ARCS>
|
53
|
<ARC to="cleanRows"/>
|
54
|
</ARCS>
|
55
|
</NODE>
|
56
|
|
57
|
<NODE name="cleanRows" type="Clean">
|
58
|
<DESCRIPTION>Clean DB rows values according to defined vocabularies</DESCRIPTION>
|
59
|
<PARAMETERS>
|
60
|
<PARAM required="true" type="string" name="ruleId" managedBy="user" category="CLEANER_RULE_ID" function="listProfiles('CleanerDSResourceType', '//CLEANER_NAME')"></PARAM>
|
61
|
<PARAM required="true" type="string" name="inputEprParam" managedBy="system">packed_row_epr</PARAM>
|
62
|
<PARAM required="true" type="string" name="outputEprParam" managedBy="system">cleaned_row_epr</PARAM>
|
63
|
</PARAMETERS>
|
64
|
<ARCS>
|
65
|
<ARC to="filterManaged"/>
|
66
|
</ARCS>
|
67
|
</NODE>
|
68
|
|
69
|
<NODE name="filterManaged" type="FilterManagedDatasources">
|
70
|
<DESCRIPTION>Filter DB rows according to the managed flag state</DESCRIPTION>
|
71
|
<PARAMETERS>
|
72
|
<PARAM managedBy="system" name="inputEprParam" required="true" type="string">cleaned_row_epr</PARAM>
|
73
|
<PARAM managedBy="system" name="outputEprParam" required="true" type="string">filtered_row_epr</PARAM>
|
74
|
</PARAMETERS>
|
75
|
<ARCS>
|
76
|
<ARC to="storeRowRecords"/>
|
77
|
</ARCS>
|
78
|
</NODE>
|
79
|
|
80
|
<NODE name="storeRowRecords" type="StoreMDStoreRecords">
|
81
|
<DESCRIPTION>Store mdtore records</DESCRIPTION>
|
82
|
<PARAMETERS>
|
83
|
<PARAM required="true" type="string" name="mdId" managedBy="system" category="MDSTORE_ID">$params.("row_id")$</PARAM>
|
84
|
<PARAM required="true" type="string" name="storingType" managedBy="system">REFRESH</PARAM>
|
85
|
<PARAM required="true" type="string" name="eprParam" managedBy="system">filtered_row_epr</PARAM>
|
86
|
</PARAMETERS>
|
87
|
<ARCS>
|
88
|
<ARC to="UPDATE_INFO"/>
|
89
|
</ARCS>
|
90
|
</NODE>
|
91
|
|
92
|
<NODE name="UPDATE_INFO" type="MDStoreToApiExtraField">
|
93
|
<DESCRIPTION>Update datasouce API extra fields</DESCRIPTION>
|
94
|
<PARAMETERS>
|
95
|
<PARAM required="true" type="string" name="mdId" managedBy="system">$params.("row_id")$</PARAM>
|
96
|
<PARAM required="true" type="string" name="datasourceId" managedBy="system">$params.("dataprovider:id")$</PARAM>
|
97
|
<PARAM required="true" type="string" name="datasourceInterface" managedBy="system">$params.("dataprovider:interface")$</PARAM>
|
98
|
<PARAM required="true" type="string" name="extraFieldForTotal" managedBy="system">last_aggregation_total</PARAM>
|
99
|
<PARAM required="true" type="string" name="extraFieldForDate" managedBy="system">last_aggregation_date</PARAM>
|
100
|
<PARAM required="true" type="string" name="extraFieldForMdId" managedBy="system">last_aggregation_mdId</PARAM>
|
101
|
</PARAMETERS>
|
102
|
<ARCS>
|
103
|
<ARC to="success"/>
|
104
|
</ARCS>
|
105
|
</NODE>
|