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.("harv_id")$</PARAM>
18
		<PARAM required="true" type="string" name="mdFormat" managedBy="system">$params.("harv_format")$</PARAM>
19
		<PARAM required="true" type="string" name="eprParam" managedBy="system">orig_epr</PARAM>
20
	</PARAMETERS>
21
	<ARCS>
22
		<ARC to="transformDatasets"/>
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="transformDatasets"/>
33
	</ARCS>
34
</NODE>
35

    
36

    
37

    
38
<NODE name="transformDatasets" type="ApplyXslt" isJoin="true">
39
	<DESCRIPTION>Transform original records to Datasets</DESCRIPTION>
40
	<PARAMETERS>
41
		<PARAM required="true" type="string" name="xsltClasspath" managedBy="user" function="listFiles('/eu/dnetlib/msro/openaireplus/workflows/repo-hi/xslt-datacite','xsl')"></PARAM>
42
		<PARAM required="true" type="string" name="inputEprParam" managedBy="system">orig_epr</PARAM>
43
		<PARAM required="true" type="string" name="outputEprParam" managedBy="system">datasets_epr</PARAM>		 
44
	</PARAMETERS>
45
	<ARCS>
46
		<ARC to="storeDatasetsRecords"/>
47
	</ARCS>
48
</NODE>
49

    
50
<NODE name="storeDatasetsRecords" type="StoreMDStoreRecords">
51
	<DESCRIPTION>Store mdtore records</DESCRIPTION>
52
	<PARAMETERS>
53
		<PARAM required="true" type="string" name="mdId" managedBy="system" category="MDSTORE_ID">$params.("tranODF_id")$</PARAM>
54
		<PARAM required="true" type="string" name="storingType" managedBy="system">REFRESH</PARAM>
55
		<PARAM required="true" type="string" name="eprParam" managedBy="system">datasets_epr</PARAM>
56
	</PARAMETERS>
57
	<ARCS>
58
		<ARC to="fetchOriginalsForPublication"/>
59
	</ARCS>
60
</NODE>
61

    
62
<NODE name="fetchOriginalsForPublication" type="FetchMDStoreRecords">
63
	<DESCRIPTION>Fetch records from MDStore</DESCRIPTION>
64
	<PARAMETERS>
65
		<PARAM required="true" type="string" name="mdId" managedBy="system" category="MDSTORE_ID">$params.("harv_id")$</PARAM>
66
		<PARAM required="true" type="string" name="mdFormat" managedBy="system">$params.("harv_format")$</PARAM>
67
		<PARAM required="true" type="string" name="eprParam" managedBy="system">orig_epr</PARAM>
68
	</PARAMETERS>
69
	<ARCS>
70
		<ARC to="transformPublication"/>
71
	</ARCS>
72
</NODE>
73

    
74
<NODE name="transformPublication" type="ApplyXslt">
75
	<DESCRIPTION>Transform original records to Publication</DESCRIPTION>
76
	<PARAMETERS>
77
		<PARAM required="true" type="string" name="xsltClasspath" managedBy="user" function="listFiles('/eu/dnetlib/msro/openaireplus/workflows/repo-hi/xslt-datacite','xsl')"></PARAM>
78
		<PARAM required="true" type="string" name="inputEprParam" managedBy="system">orig_epr</PARAM>
79
		<PARAM required="true" type="string" name="outputEprParam" managedBy="system">packed_row_epr</PARAM>		 
80
	</PARAMETERS>
81
	<ARCS>
82
		<ARC to="splitRecords"/>
83
	</ARCS>
84
</NODE>
85

    
86
<NODE name="splitRecords" type="SplitDatasetRecord">
87
	<DESCRIPTION>Split Records into datasets and publication</DESCRIPTION>
88
	<PARAMETERS>
89
		<PARAM required="true" type="string" name="datasetEprParm" managedBy="system">datasetsEPR</PARAM>
90
		<PARAM required="true" type="string" name="publicationEprParm" managedBy="system">publicationEPR</PARAM>
91
		<PARAM required="true" type="string" name="inputEprParm" managedBy="system">packed_row_epr</PARAM>
92
	</PARAMETERS>
93
	<ARCS>		
94
		<ARC to="storePublicationRecords"/>
95
	</ARCS>
96
</NODE>
97

    
98

    
99

    
100
<NODE name="storePublicationRecords" type="StoreMDStoreRecords">
101
	<DESCRIPTION>Store mdtore records</DESCRIPTION>
102
	<PARAMETERS>
103
		<PARAM required="true" type="string" name="mdId" managedBy="system" category="MDSTORE_ID">$params.("tranOAF_id")$</PARAM>
104
		<PARAM required="true" type="string" name="storingType" managedBy="system">REFRESH</PARAM>
105
		<PARAM required="true" type="string" name="eprParam" managedBy="system">publicationEPR</PARAM>
106
	</PARAMETERS>
107
	<ARCS>
108
		<ARC to="UPDATE_INFO"/>
109
	</ARCS>
110
</NODE>
111

    
112

    
113
 <NODE name="UPDATE_INFO" type="MDStoreToApiExtraField" isJoin="true">
114
	<DESCRIPTION>Update datasouce API extra fields</DESCRIPTION>
115
	<PARAMETERS>
116
		<PARAM required="true" type="string" name="mdId" managedBy="system">$params.("tranODF_id")$</PARAM>
117
		<PARAM required="true" type="string" name="datasourceId" managedBy="system">$params.("dataprovider:id")$</PARAM>
118
		<PARAM required="true" type="string" name="datasourceInterface" managedBy="system">$params.("dataprovider:interface")$</PARAM>
119
		<PARAM required="true" type="string" name="extraFieldForTotal" managedBy="system">last_aggregation_total</PARAM>
120
		<PARAM required="true" type="string" name="extraFieldForDate" managedBy="system">last_aggregation_date</PARAM>
121
		<PARAM required="true" type="string" name="extraFieldForMdId" managedBy="system">last_aggregation_mdId</PARAM>
122
	</PARAMETERS>
123
	<ARCS>
124
		<ARC to="success"/>
125
	</ARCS>
126
</NODE>
(3-3/3)