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

    
14
<NODE name="selectIncrementalTransformation" type="IncrementalTransformation">
15
	<DESCRIPTION>Decide REFRESH/INCREMENTAL transformation</DESCRIPTION>
16
	<PARAMETERS>
17
		<PARAM required="true" type="string" name="transformationType" managedBy="user" function="validValues(['REFRESH','INCREMENTAL'])"></PARAM>
18
	</PARAMETERS>
19
	<ARCS>
20
		<ARC to="fetchOriginals"/>
21
	</ARCS>
22
</NODE>
23

    
24
<NODE name="fetchOriginals" type="FetchMDStoreRecords">
25
	<DESCRIPTION>Fetch records from MDStore</DESCRIPTION>
26
	<PARAMETERS>
27
		<PARAM required="true" type="string" name="mdId" managedBy="system" category="MDSTORE_ID">$params.("orig_id")$</PARAM>
28
		<PARAM required="true" type="string" name="mdFormat" managedBy="system">$params.("orig_format")$</PARAM>
29
		<PARAM required="true" type="string" name="eprParam" managedBy="system">orig_epr</PARAM>
30
	</PARAMETERS>
31
	<ARCS>
32
		<ARC to="generateRows"/>
33
	</ARCS>
34
</NODE>
35

    
36
<NODE name="obtainParams" type="ObtainOpenaireDataSourceParams">
37
	<DESCRIPTION>Fetch records from MDStore</DESCRIPTION>
38
	<PARAMETERS>
39
		<PARAM required="true" type="string" name="providerId" managedBy="system">$params.("dataprovider:id")$</PARAM>
40
	</PARAMETERS>
41
	<ARCS>
42
		<ARC to="generateRows"/>
43
	</ARCS>
44
</NODE>
45

    
46
<NODE name="generateRows" type="ApplyXslt" isJoin="true">
47
	<DESCRIPTION>Transform original records in DB rows</DESCRIPTION>
48
	<PARAMETERS>
49
		<PARAM required="true" type="string" name="xsltClasspath" managedBy="system">/eu/dnetlib/msro/openaireplus/workflows/repo-hi/xslt-datacite/datacite_sets_2_db.xslt</PARAM>
50
		<PARAM required="true" type="string" name="inputEprParam" managedBy="system">orig_epr</PARAM>
51
		<PARAM required="true" type="string" name="outputEprParam" managedBy="system">packed_row_epr</PARAM>
52
	</PARAMETERS>
53
	<ARCS>
54
		<ARC to="storeRowRecords"/>
55
	</ARCS>
56
</NODE>
57

    
58
<NODE name="storeRowRecords" type="StoreMDStoreRecords">
59
	<DESCRIPTION>Store mdtore records</DESCRIPTION>
60
	<PARAMETERS>
61
		<PARAM required="true" type="string" name="mdId" managedBy="system" category="MDSTORE_ID">$params.("row_id")$</PARAM>
62
		<PARAM required="true" type="string" name="storingType" managedBy="system">REFRESH</PARAM>
63
		<PARAM required="true" type="string" name="eprParam" managedBy="system">packed_row_epr</PARAM>
64
	</PARAMETERS>
65
	<ARCS>
66
		<ARC to="UPDATE_INFO"/>
67
	</ARCS>
68
</NODE>
69

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