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

    
13
<NODE name="obtainParams" type="ObtainOpenaireDataSourceParams">
14
	<DESCRIPTION>Fetch records from MDStore</DESCRIPTION>
15
	<PARAMETERS>
16
		<PARAM required="true" type="string" name="providerId" managedBy="system">$params.("dataprovider:id")$</PARAM>
17
	</PARAMETERS>
18
	<ARCS>
19
		<ARC to="SELECT_MODE"/>
20
	</ARCS>
21
</NODE>
22

    
23
 <NODE name="SELECT_MODE" type="Selection">
24
	<DESCRIPTION>Set information about current provider</DESCRIPTION>
25
	<PARAMETERS>
26
		<PARAM required="true" type="string" name="selection" managedBy="user" function="validValues(['REFRESH','INCREMENTAL'])">REFRESH</PARAM>
27
	</PARAMETERS>
28
	<ARCS>
29
		<ARC to="COLLECT_REFRESH" name="REFRESH" />
30
		<ARC to="PREPARE_INCREMENTAL" name="INCREMENTAL" />
31
	</ARCS>
32
</NODE>
33

    
34
<NODE name="COLLECT_REFRESH" type="CollectRecords">
35
	<DESCRIPTION>Start Harvesting</DESCRIPTION>
36
	<PARAMETERS>
37
		<PARAM required="true" type="string" name="datasourceId" managedBy="system">$params.("dataprovider:id")$</PARAM>
38
		<PARAM required="true" type="string" name="datasourceInterface" managedBy="system">$params.("dataprovider:interface")$</PARAM>
39
		<PARAM required="true" type="string" name="eprParam" managedBy="system">collected_epr</PARAM>
40
	</PARAMETERS>
41
	<ARCS>
42
		<ARC to="MD_BUILDER_REFRESH"/>
43
	</ARCS>
44
</NODE>
45

    
46
<NODE name="MD_BUILDER_REFRESH" type="OpenaireMdBuilder">
47
	<DESCRIPTION>Prepare mdstore records</DESCRIPTION>
48
	<PARAMETERS>
49
		<PARAM required="true" type="string" name="inputEprParam" managedBy="system">collected_epr</PARAM>
50
		<PARAM required="true" type="string" name="outputEprParam" managedBy="system">store_epr</PARAM>
51
		<PARAM required="true" type="string" name="datasourceId" managedBy="system">$params.("dataprovider:id")$</PARAM>
52
		<PARAM required="true" type="string" name="datasourceInterface" managedBy="system">$params.("dataprovider:interface")$</PARAM>
53
		<PARAM required="false" type="boolean" name="inferred" managedBy="system">false</PARAM>
54
		<PARAM required="false" type="boolean" name="deletedbyinference" managedBy="system">false</PARAM>
55
		<PARAM required="false" type="string" name="inferenceprovenance" managedBy="system"></PARAM>
56
		<PARAM required="false" type="string" name="trust" managedBy="user">0.9</PARAM>
57
		<PARAM required="false" type="string" name="provenanceactionclassname" managedBy="system">sysimport:crosswalk:datasetarchive</PARAM>
58
		<PARAM required="false" type="string" name="provenanceactionclassid" managedBy="system">sysimport:crosswalk:datasetarchive</PARAM>
59
	</PARAMETERS>
60
	<ARCS>
61
		<ARC to="STORE_REFRESH"/>
62
	</ARCS>
63
</NODE>
64

    
65
<NODE name="STORE_REFRESH" type="StoreMDStoreRecords">
66
	<DESCRIPTION>Store mdstore records</DESCRIPTION>
67
	<PARAMETERS>
68
		<PARAM required="true" type="string" name="mdId" managedBy="system" category="MDSTORE_ID">$params.("harv_id")$</PARAM>
69
		<PARAM required="true" type="string" name="storingType" managedBy="system">REFRESH</PARAM>
70
		<PARAM required="true" type="string" name="eprParam" managedBy="system">store_epr</PARAM>
71
	</PARAMETERS>
72
	<ARCS>
73
		<ARC to="UPDATE_INFO"/>
74
	</ARCS>
75
</NODE>
76

    
77
<NODE name="PREPARE_INCREMENTAL" type="FindDateRangeForIncrementalHarvesting">
78
	<DESCRIPTION>Find Date Range For Incremental Harvesting</DESCRIPTION>
79
	<PARAMETERS>
80
		<PARAM required="true" type="string" name="fromDateParam" managedBy="system">FROM_DATE</PARAM>
81
		<PARAM required="true" type="string" name="untilDateParam" managedBy="system">UNTIL_DATE</PARAM>
82
	</PARAMETERS>
83
	<ARCS>
84
		<ARC to="COLLECT_INCREMENTAL"/>
85
	</ARCS>
86
</NODE>
87

    
88
<NODE name="COLLECT_INCREMENTAL" type="DateRangeCollectRecords">
89
	<DESCRIPTION>Start incremental harvesting</DESCRIPTION>
90
	<PARAMETERS>
91
		<PARAM required="true" type="string" name="datasourceId" managedBy="system">$params.("dataprovider:id")$</PARAM>
92
		<PARAM required="true" type="string" name="datasourceInterface" managedBy="system">$params.("dataprovider:interface")$</PARAM>
93
		<PARAM required="true" type="string" name="eprParam" managedBy="system">collected_epr</PARAM>
94
		<PARAM required="true" type="string" name="fromDateParam" managedBy="system">FROM_DATE</PARAM>
95
		<PARAM required="true" type="string" name="untilDateParam" managedBy="system">UNTIL_DATE</PARAM>
96
		<PARAM required="false" type="string" name="overrideFrom" managedBy="user"></PARAM>
97
        <PARAM required="false" type="string" name="overrideUntil" managedBy="user"></PARAM>
98
	</PARAMETERS>
99
	<ARCS>
100
		<ARC to="MD_BUILDER_INCREMENTAL"/>
101
	</ARCS>
102
</NODE>
103

    
104
<NODE name="MD_BUILDER_INCREMENTAL" type="OpenaireMdBuilder">
105
	<DESCRIPTION>Prepare mdstore records</DESCRIPTION>
106
	<PARAMETERS>
107
		<PARAM required="true" type="string" name="inputEprParam" managedBy="system">collected_epr</PARAM>
108
		<PARAM required="true" type="string" name="outputEprParam" managedBy="system">store_epr</PARAM>
109
		<PARAM required="true" type="string" name="datasourceId" managedBy="system">$params.("dataprovider:id")$</PARAM>
110
		<PARAM required="true" type="string" name="datasourceInterface" managedBy="system">$params.("dataprovider:interface")$</PARAM>
111
		<PARAM required="false" type="boolean" name="inferred" managedBy="system">false</PARAM>
112
		<PARAM required="false" type="boolean" name="deletedbyinference" managedBy="system">false</PARAM>
113
		<PARAM required="false" type="string" name="inferenceprovenance" managedBy="system"></PARAM>
114
		<PARAM required="false" type="string" name="trust" managedBy="system">0.9</PARAM>
115
		<PARAM required="false" type="string" name="provenanceactionclassname" managedBy="system">sysimport:crosswalk:datasetarchive</PARAM>
116
		<PARAM required="false" type="string" name="provenanceactionclassid" managedBy="system">sysimport:crosswalk:datasetarchive</PARAM>		
117
	</PARAMETERS>
118
	<ARCS>
119
		<ARC to="STORE_INCREMENTAL"/>
120
	</ARCS>
121
</NODE>
122

    
123
<NODE name="STORE_INCREMENTAL" type="StoreMDStoreRecords">
124
	<DESCRIPTION>Store mdtore records incrementally</DESCRIPTION>
125
	<PARAMETERS>
126
		<PARAM required="true" type="string" name="mdId" managedBy="system" category="MDSTORE_ID">$params.("harv_id")$</PARAM>
127
		<PARAM required="true" type="string" name="storingType" managedBy="system">INCREMENTAL</PARAM>
128
		<PARAM required="true" type="string" name="eprParam" managedBy="system">store_epr</PARAM>
129
	</PARAMETERS>
130
	<ARCS>
131
		<ARC to="UPDATE_INFO"/>
132
	</ARCS>
133
</NODE>
134

    
135
<NODE name="UPDATE_INFO" type="MDStoreToApiExtraField">
136
	<DESCRIPTION>Update datasouce API extra fields</DESCRIPTION>
137
	<PARAMETERS>
138
		<PARAM required="true" type="string" name="mdId" managedBy="system">$params.("harv_id")$</PARAM>
139
		<PARAM required="true" type="string" name="datasourceId" managedBy="system">$params.("dataprovider:id")$</PARAM>
140
		<PARAM required="true" type="string" name="datasourceInterface" managedBy="system">$params.("dataprovider:interface")$</PARAM>
141
		<PARAM required="true" type="string" name="extraFieldForTotal" managedBy="system">last_collection_total</PARAM>
142
		<PARAM required="true" type="string" name="extraFieldForDate" managedBy="system">last_collection_date</PARAM>
143
		<PARAM required="true" type="string" name="extraFieldForMdId" managedBy="system">last_collection_mdId</PARAM>
144
	</PARAMETERS>
145
	<ARCS>
146
		<ARC to="success"/>
147
	</ARCS>
148
</NODE>
149

    
150

    
(1-1/3)