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
	</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" category="MDSTORE_ID">$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" category="CLEANER_RULE_ID" 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" category="MDSTORE_ID">$params.("row_id")$</PARAM>
63
		<PARAM required="true" type="string" name="storingType" managedBy="system">REFRESH</PARAM>
64
		<PARAM required="true" type="string" name="eprParam" managedBy="system">cleaned_row_epr</PARAM>
65
	</PARAMETERS>
66
	<ARCS>
67
		<ARC to="UPDATE_INFO"/>
68
	</ARCS>
69
</NODE>
70

    
71
 <NODE name="UPDATE_INFO" type="MDStoreToApiExtraField">
72
	<DESCRIPTION>Update datasouce API extra fields</DESCRIPTION>
73
	<PARAMETERS>
74
		<PARAM required="true" type="string" name="mdId" managedBy="system">$params.("row_id")$</PARAM>
75
		<PARAM required="true" type="string" name="datasourceId" managedBy="system">$params.("dataprovider:id")$</PARAM>
76
		<PARAM required="true" type="string" name="datasourceInterface" managedBy="system">$params.("dataprovider:interface")$</PARAM>
77
		<PARAM required="true" type="string" name="extraFieldForTotal" managedBy="system">last_aggregation_total</PARAM>
78
		<PARAM required="true" type="string" name="extraFieldForDate" managedBy="system">last_aggregation_date</PARAM>
79
		<PARAM required="true" type="string" name="extraFieldForMdId" managedBy="system">last_aggregation_mdId</PARAM>
80
	</PARAMETERS>
81
	<ARCS>
82
		<ARC to="success"/>
83
	</ARCS>
84
</NODE>
(3-3/4)