1 |
26600
|
sandro.lab
|
<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 |
30941
|
michele.ar
|
<PARAM required="true" type="string" name="api" managedBy="system">$params.("dataprovider:interface")$</PARAM>
|
7 |
26600
|
sandro.lab
|
</PARAMETERS>
|
8 |
|
|
<ARCS>
|
9 |
52038
|
alessia.ba
|
<ARC to="obtainParams" />
|
10 |
|
|
</ARCS>
|
11 |
|
|
</NODE>
|
12 |
52336
|
alessia.ba
|
<NODE name="obtainParams" type="ObtainOpenaireDataSourceParams">
|
13 |
|
|
<DESCRIPTION>Fetch records from MDStore</DESCRIPTION>
|
14 |
52038
|
alessia.ba
|
<PARAMETERS>
|
15 |
52336
|
alessia.ba
|
<PARAM required="true" type="string" name="providerId" managedBy="system">$params.("dataprovider:id")$</PARAM>
|
16 |
52038
|
alessia.ba
|
</PARAMETERS>
|
17 |
|
|
<ARCS>
|
18 |
|
|
<ARC to="fetchOriginals"/>
|
19 |
|
|
</ARCS>
|
20 |
|
|
</NODE>
|
21 |
|
|
|
22 |
26600
|
sandro.lab
|
<NODE name="fetchOriginals" type="FetchMDStoreRecords">
|
23 |
|
|
<DESCRIPTION>Fetch records from MDStore</DESCRIPTION>
|
24 |
|
|
<PARAMETERS>
|
25 |
30934
|
michele.ar
|
<PARAM required="true" type="string" name="mdId" managedBy="system" category="MDSTORE_ID">$params.("orig_id")$</PARAM>
|
26 |
26600
|
sandro.lab
|
<PARAM required="true" type="string" name="mdFormat" managedBy="system">$params.("orig_format")$</PARAM>
|
27 |
|
|
<PARAM required="true" type="string" name="eprParam" managedBy="system">orig_epr</PARAM>
|
28 |
|
|
</PARAMETERS>
|
29 |
|
|
<ARCS>
|
30 |
|
|
<ARC to="generateRows"/>
|
31 |
|
|
</ARCS>
|
32 |
|
|
</NODE>
|
33 |
|
|
|
34 |
43167
|
alessia.ba
|
<NODE name="generateRows" type="ApplyXslt">
|
35 |
26600
|
sandro.lab
|
<DESCRIPTION>Transform original records in DB rows</DESCRIPTION>
|
36 |
|
|
<PARAMETERS>
|
37 |
|
|
<PARAM required="true" type="string" name="xsltClasspath" managedBy="user" function="listFiles('/eu/dnetlib/msro/openaireplus/workflows/repo-hi/xslt','xsl')"></PARAM>
|
38 |
|
|
<PARAM required="true" type="string" name="inputEprParam" managedBy="system">orig_epr</PARAM>
|
39 |
|
|
<PARAM required="true" type="string" name="outputEprParam" managedBy="system">packed_row_epr</PARAM>
|
40 |
|
|
</PARAMETERS>
|
41 |
|
|
<ARCS>
|
42 |
|
|
<ARC to="cleanRows"/>
|
43 |
|
|
</ARCS>
|
44 |
|
|
</NODE>
|
45 |
|
|
|
46 |
|
|
<NODE name="cleanRows" type="Clean">
|
47 |
|
|
<DESCRIPTION>Clean DB rows values according to defined vocabularies</DESCRIPTION>
|
48 |
|
|
<PARAMETERS>
|
49 |
30934
|
michele.ar
|
<PARAM required="true" type="string" name="ruleId" managedBy="user" category="CLEANER_RULE_ID" function="listProfiles('CleanerDSResourceType', '//CLEANER_NAME')"></PARAM>
|
50 |
26600
|
sandro.lab
|
<PARAM required="true" type="string" name="inputEprParam" managedBy="system">packed_row_epr</PARAM>
|
51 |
|
|
<PARAM required="true" type="string" name="outputEprParam" managedBy="system">cleaned_row_epr</PARAM>
|
52 |
|
|
</PARAMETERS>
|
53 |
|
|
<ARCS>
|
54 |
50489
|
michele.ar
|
<ARC to="filterManaged"/>
|
55 |
26600
|
sandro.lab
|
</ARCS>
|
56 |
|
|
</NODE>
|
57 |
|
|
|
58 |
50489
|
michele.ar
|
<NODE name="filterManaged" type="FilterManagedDatasources">
|
59 |
|
|
<DESCRIPTION>Filter DB rows according to the managed flag state</DESCRIPTION>
|
60 |
|
|
<PARAMETERS>
|
61 |
|
|
<PARAM managedBy="system" name="inputEprParam" required="true" type="string">cleaned_row_epr</PARAM>
|
62 |
|
|
<PARAM managedBy="system" name="outputEprParam" required="true" type="string">filtered_row_epr</PARAM>
|
63 |
|
|
</PARAMETERS>
|
64 |
|
|
<ARCS>
|
65 |
|
|
<ARC to="storeRowRecords"/>
|
66 |
|
|
</ARCS>
|
67 |
|
|
</NODE>
|
68 |
|
|
|
69 |
26600
|
sandro.lab
|
<NODE name="storeRowRecords" type="StoreMDStoreRecords">
|
70 |
|
|
<DESCRIPTION>Store mdtore records</DESCRIPTION>
|
71 |
|
|
<PARAMETERS>
|
72 |
30934
|
michele.ar
|
<PARAM required="true" type="string" name="mdId" managedBy="system" category="MDSTORE_ID">$params.("row_id")$</PARAM>
|
73 |
|
|
<PARAM required="true" type="string" name="storingType" managedBy="system">REFRESH</PARAM>
|
74 |
50767
|
claudio.at
|
<PARAM required="true" type="string" name="eprParam" managedBy="system">filtered_row_epr</PARAM>
|
75 |
26600
|
sandro.lab
|
</PARAMETERS>
|
76 |
|
|
<ARCS>
|
77 |
30826
|
michele.ar
|
<ARC to="UPDATE_INFO"/>
|
78 |
|
|
</ARCS>
|
79 |
|
|
</NODE>
|
80 |
|
|
|
81 |
|
|
<NODE name="UPDATE_INFO" type="MDStoreToApiExtraField">
|
82 |
|
|
<DESCRIPTION>Update datasouce API extra fields</DESCRIPTION>
|
83 |
|
|
<PARAMETERS>
|
84 |
|
|
<PARAM required="true" type="string" name="mdId" managedBy="system">$params.("row_id")$</PARAM>
|
85 |
|
|
<PARAM required="true" type="string" name="datasourceId" managedBy="system">$params.("dataprovider:id")$</PARAM>
|
86 |
|
|
<PARAM required="true" type="string" name="datasourceInterface" managedBy="system">$params.("dataprovider:interface")$</PARAM>
|
87 |
|
|
<PARAM required="true" type="string" name="extraFieldForTotal" managedBy="system">last_aggregation_total</PARAM>
|
88 |
|
|
<PARAM required="true" type="string" name="extraFieldForDate" managedBy="system">last_aggregation_date</PARAM>
|
89 |
30867
|
michele.ar
|
<PARAM required="true" type="string" name="extraFieldForMdId" managedBy="system">last_aggregation_mdId</PARAM>
|
90 |
30826
|
michele.ar
|
</PARAMETERS>
|
91 |
|
|
<ARCS>
|
92 |
26600
|
sandro.lab
|
<ARC to="success"/>
|
93 |
|
|
</ARCS>
|
94 |
|
|
</NODE>
|