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

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

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

    
35
<NODE name="MD_BUILDER" type="MdBuilder" isJoin="true">
36
	<DESCRIPTION>Prepare mdstore records</DESCRIPTION>
37
	<PARAMETERS>
38
		<PARAM required="true" type="string" name="inputEprParam" managedBy="system">collected_epr</PARAM>
39
		<PARAM required="true" type="string" name="outputEprParam" managedBy="system">store_epr</PARAM>
40
		<PARAM required="true" type="string" name="datasourceId" managedBy="system">$params.("dataprovider:id")$</PARAM>
41
		<PARAM required="true" type="string" name="datasourceInterface" managedBy="system">$params.("dataprovider:interface")$</PARAM>
42
	</PARAMETERS>
43
	<ARCS>
44
		<ARC to="STORE"/>
45
	</ARCS>
46
</NODE>
47

    
48
<NODE name="STORE" type="StoreMDStoreRecords">
49
	<DESCRIPTION>Store mdtore records</DESCRIPTION>
50
	<PARAMETERS>
51
		<PARAM required="true" type="string" name="mdId" managedBy="system" category="MDSTORE_ID">$params.("harv_id")$</PARAM>
52
		<PARAM required="true" type="string" name="storingType" managedBy="user">REFRESH</PARAM>
53
		<PARAM required="true" type="string" name="eprParam" managedBy="system">store_epr</PARAM>
54
	</PARAMETERS>
55
	<ARCS>
56
		<ARC to="UPDATE_INFO"/>
57
	</ARCS>
58
</NODE>
59

    
60
<NODE name="UPDATE_INFO" type="MDStoreToApiExtraField">
61
	<DESCRIPTION>Update datasouce API extra fields</DESCRIPTION>
62
	<PARAMETERS>
63
		<PARAM required="true" type="string" name="mdId" managedBy="system">$params.("harv_id")$</PARAM>
64
		<PARAM required="true" type="string" name="datasourceId" managedBy="system">$params.("dataprovider:id")$</PARAM>
65
		<PARAM required="true" type="string" name="datasourceInterface" managedBy="system">$params.("dataprovider:interface")$</PARAM>
66
		<PARAM required="true" type="string" name="extraFieldForTotal" managedBy="system">last_collection_total</PARAM>
67
		<PARAM required="true" type="string" name="extraFieldForDate" managedBy="system">last_collection_date</PARAM>
68
		<PARAM required="true" type="string" name="extraFieldForMdId" managedBy="system">last_collection_mdId</PARAM>
69
	</PARAMETERS>
70
	<ARCS>
71
		<ARC to="success"/>
72
	</ARCS>
73
</NODE>
74

    
(1-1/5)