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="fetchOriginals"/>
10
		<ARC to="obtainParams" />
11
	</ARCS>
12
</NODE>
13

    
14
<NODE name="fetchOriginals" type="FetchMDStoreRecords">
15
	<DESCRIPTION>Fetch records from MDStore</DESCRIPTION>
16
	<PARAMETERS>
17
		<PARAM required="true" type="string" name="mdId" managedBy="system" category="MDSTORE_ID">$params.("orig_id")$</PARAM>
18
		<PARAM required="true" type="string" name="mdFormat" managedBy="system">$params.("orig_format")$</PARAM>
19
		<PARAM required="true" type="string" name="eprParam" managedBy="system">orig_epr</PARAM>
20
	</PARAMETERS>
21
	<ARCS>
22
		<ARC to="setFunderAcronym"/>
23
	</ARCS>
24
</NODE>
25

    
26
<NODE name="obtainParams" type="ObtainOpenaireDataSourceParams">
27
	<DESCRIPTION>Fetch records from MDStore</DESCRIPTION>
28
	<PARAMETERS>
29
		<PARAM required="true" type="string" name="providerId" managedBy="system">$params.("dataprovider:id")$</PARAM>
30
	</PARAMETERS>
31
	<ARCS>
32
		<ARC to="setFunderAcronym"/>
33
	</ARCS>
34
</NODE>
35

    
36
<NODE name="setFunderAcronym" type="SetEnvParameter" isJoin="true">
37
	<DESCRIPTION>Set funder acronym to use in transformation</DESCRIPTION>
38
	<PARAMETERS>
39
		<PARAM required="true" type="string" name="parameterName" managedBy="system">funderAcronym</PARAM>
40
		<PARAM required="false" type="string" name="parameterValue" managedBy="user"></PARAM>
41
	</PARAMETERS>
42
	<ARCS>
43
		<ARC to="generateRows"/>
44
	</ARCS>
45
</NODE>
46

    
47
<NODE name="generateRows" type="ApplyXslt">
48
	<DESCRIPTION>Transform original records in DB rows</DESCRIPTION>
49
	<PARAMETERS>
50
		<PARAM required="true" type="string" name="xsltClasspath" managedBy="user" function="listFiles('/eu/dnetlib/msro/openaireplus/workflows/repo-hi/xslt','xsl')"></PARAM>
51
		<PARAM required="true" type="string" name="inputEprParam" managedBy="system">orig_epr</PARAM>
52
		<PARAM required="true" type="string" name="outputEprParam" managedBy="system">packed_row_epr</PARAM>
53
	</PARAMETERS>
54
	<ARCS>
55
		<ARC to="cleanRows"/>
56
	</ARCS>
57
</NODE>
58

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

    
71
<NODE name="filterManaged" type="FilterManagedDatasources">
72
    <DESCRIPTION>Filter DB rows according to the managed flag state</DESCRIPTION>
73
    <PARAMETERS>
74
        <PARAM managedBy="system" name="inputEprParam" required="true" type="string">cleaned_row_epr</PARAM>
75
        <PARAM managedBy="system" name="outputEprParam" required="true" type="string">filtered_row_epr</PARAM>
76
    </PARAMETERS>
77
    <ARCS>
78
        <ARC to="storeRowRecords"/>
79
    </ARCS>
80
</NODE>
81

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

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