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
|
</PARAMETERS>
|
7
|
<ARCS>
|
8
|
<ARC to="fetchOriginals"/>
|
9
|
<ARC to="obtainParams" />
|
10
|
</ARCS>
|
11
|
</NODE>
|
12
|
|
13
|
<NODE name="fetchOriginals" type="FetchMDStoreRecords">
|
14
|
<DESCRIPTION>Fetch records from MDStore</DESCRIPTION>
|
15
|
<PARAMETERS>
|
16
|
<PARAM required="true" type="string" name="mdId" managedBy="system">$params.("orig_id")$</PARAM>
|
17
|
<PARAM required="true" type="string" name="mdFormat" managedBy="system">$params.("orig_format")$</PARAM>
|
18
|
<PARAM required="true" type="string" name="eprParam" managedBy="system">orig_epr</PARAM>
|
19
|
</PARAMETERS>
|
20
|
<ARCS>
|
21
|
<ARC to="generateRows"/>
|
22
|
</ARCS>
|
23
|
</NODE>
|
24
|
|
25
|
<NODE name="obtainParams" type="ObtainOpenaireDataSourceParams">
|
26
|
<DESCRIPTION>Fetch records from MDStore</DESCRIPTION>
|
27
|
<PARAMETERS>
|
28
|
<PARAM required="true" type="string" name="providerId" managedBy="system">$params.("dataprovider:id")$</PARAM>
|
29
|
</PARAMETERS>
|
30
|
<ARCS>
|
31
|
<ARC to="generateRows"/>
|
32
|
</ARCS>
|
33
|
</NODE>
|
34
|
|
35
|
<NODE name="generateRows" type="ApplyXslt" isJoin="true">
|
36
|
<DESCRIPTION>Transform original records in DB rows</DESCRIPTION>
|
37
|
<PARAMETERS>
|
38
|
<PARAM required="true" type="string" name="xsltClasspath" managedBy="user" function="listFiles('/eu/dnetlib/msro/openaireplus/workflows/repo-hi/xslt','xsl')"></PARAM>
|
39
|
<PARAM required="true" type="string" name="inputEprParam" managedBy="system">orig_epr</PARAM>
|
40
|
<PARAM required="true" type="string" name="outputEprParam" managedBy="system">packed_row_epr</PARAM>
|
41
|
</PARAMETERS>
|
42
|
<ARCS>
|
43
|
<ARC to="cleanRows"/>
|
44
|
</ARCS>
|
45
|
</NODE>
|
46
|
|
47
|
<NODE name="cleanRows" type="Clean">
|
48
|
<DESCRIPTION>Clean DB rows values according to defined vocabularies</DESCRIPTION>
|
49
|
<PARAMETERS>
|
50
|
<PARAM required="true" type="string" name="ruleId" managedBy="user" function="listProfiles('CleanerDSResourceType', '//CLEANER_NAME')"></PARAM>
|
51
|
<PARAM required="true" type="string" name="inputEprParam" managedBy="system">packed_row_epr</PARAM>
|
52
|
<PARAM required="true" type="string" name="outputEprParam" managedBy="system">cleaned_row_epr</PARAM>
|
53
|
</PARAMETERS>
|
54
|
<ARCS>
|
55
|
<ARC to="storeRowRecords"/>
|
56
|
</ARCS>
|
57
|
</NODE>
|
58
|
|
59
|
<NODE name="storeRowRecords" type="StoreMDStoreRecords">
|
60
|
<DESCRIPTION>Store mdtore records</DESCRIPTION>
|
61
|
<PARAMETERS>
|
62
|
<PARAM required="true" type="string" name="mdId" managedBy="system">$params.("row_id")$</PARAM>
|
63
|
<PARAM required="true" type="string" name="storingType" managedBy="user" function="validValues(['REFRESH','INCREMENTAL'])">REFRESH</PARAM>
|
64
|
<PARAM required="true" type="string" name="eprParam" managedBy="system">cleaned_row_epr</PARAM>
|
65
|
</PARAMETERS>
|
66
|
<ARCS>
|
67
|
<ARC to="success"/>
|
68
|
</ARCS>
|
69
|
</NODE>
|