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

    
14
<NODE name="COLLECT" type="CollectRecords">
15
	<DESCRIPTION>Start Harvesting</DESCRIPTION>
16
	<PARAMETERS>
17
		<PARAM required="true" type="string" name="datasourceId" managedBy="system">$params.("dataprovider:id")$</PARAM>
18
		<PARAM required="true" type="string" name="datasourceInterface" managedBy="system">$params.("dataprovider:interface")$</PARAM>
19
		<PARAM required="true" type="string" name="eprParam" managedBy="system">collected_epr</PARAM>
20
	</PARAMETERS>
21
	<ARCS>
22
		<ARC to="MD_BUILDER"/>
23
	</ARCS>
24
</NODE>
25

    
26
<NODE name="obtainParams" type="ObtainOpenaireDataSourceParams">
27
	<DESCRIPTION>Obtain parameters for current provider</DESCRIPTION>
28
	<PARAMETERS>
29
		<PARAM required="true" type="string" name="providerId" managedBy="system">$params.("dataprovider:id")$</PARAM>
30
	</PARAMETERS>
31
	<ARCS>
32
		<ARC to="MD_BUILDER"/>
33
	</ARCS>
34
</NODE>
35

    
36
<NODE name="MD_BUILDER" isJoin="true" type="OpenaireMdBuilder">
37
	<DESCRIPTION>Prepare mdstore records</DESCRIPTION>
38
	<PARAMETERS>
39
		<PARAM required="true" type="string" name="inputEprParam" managedBy="system">collected_epr</PARAM>
40
		<PARAM required="true" type="string" name="outputEprParam" managedBy="system">store_epr</PARAM>
41
		<PARAM required="true" type="string" name="datasourceId" managedBy="system">$params.("dataprovider:id")$</PARAM>
42
		<PARAM required="true" type="string" name="datasourceInterface" managedBy="system">$params.("dataprovider:interface")$</PARAM>
43
		<PARAM required="false" type="boolean" name="inferred" managedBy="system">false</PARAM>
44
		<PARAM required="false" type="boolean" name="deletedbyinference" managedBy="system">false</PARAM>
45
		<PARAM required="false" type="string" name="inferenceprovenance" managedBy="system"></PARAM>
46
		<PARAM required="false" type="string" name="trust" managedBy="system">0.9</PARAM>
47
		<PARAM required="false" type="string" name="provenanceactionclassname" managedBy="system">sysimport:crosswalk</PARAM>
48
		<PARAM required="false" type="string" name="provenanceactionclassid" managedBy="system">sysimport:crosswalk</PARAM>
49
	</PARAMETERS>
50
	<ARCS>
51
		<ARC to="STORE"/>
52
	</ARCS>
53
</NODE>
54

    
55
<NODE name="STORE" type="StoreMDStoreRecords">
56
	<DESCRIPTION>Store mdtore records</DESCRIPTION>
57
	<PARAMETERS>
58
		<PARAM required="true" type="string" name="mdId" managedBy="system" category="MDSTORE_ID">$params.("harv_id")$</PARAM>
59
		<PARAM required="true" type="string" name="storingType" managedBy="user">REFRESH</PARAM>
60
		<PARAM required="true" type="string" name="eprParam" managedBy="system">store_epr</PARAM>
61
	</PARAMETERS>
62
	<ARCS>
63
		<ARC to="UPDATE_INFO"/>
64
	</ARCS>
65
</NODE>
66

    
67
<NODE name="UPDATE_INFO" type="MDStoreToApiExtraField">
68
	<DESCRIPTION>Update datasouce API extra fields</DESCRIPTION>
69
	<PARAMETERS>
70
		<PARAM required="true" type="string" name="mdId" managedBy="system">$params.("harv_id")$</PARAM>
71
		<PARAM required="true" type="string" name="datasourceId" managedBy="system">$params.("dataprovider:id")$</PARAM>
72
		<PARAM required="true" type="string" name="datasourceInterface" managedBy="system">$params.("dataprovider:interface")$</PARAM>
73
		<PARAM required="true" type="string" name="extraFieldForTotal" managedBy="system">last_collection_total</PARAM>
74
		<PARAM required="true" type="string" name="extraFieldForDate" managedBy="system">last_collection_date</PARAM>
75
		<PARAM required="true" type="string" name="extraFieldForMdId" managedBy="system">last_collection_mdId</PARAM>
76
	</PARAMETERS>
77
	<ARCS>
78
		<ARC to="success"/>
79
	</ARCS>
80
</NODE>
81

    
(1-1/5)