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="obtainParams"/>
|
9
|
</ARCS>
|
10
|
</NODE>
|
11
|
|
12
|
<NODE name="obtainParams" type="ObtainOpenaireDataSourceParams">
|
13
|
<DESCRIPTION>Fetch records from MDStore</DESCRIPTION>
|
14
|
<PARAMETERS>
|
15
|
<PARAM required="true" type="string" name="providerId" managedBy="system">$params.("dataprovider:id")$</PARAM>
|
16
|
</PARAMETERS>
|
17
|
<ARCS>
|
18
|
<ARC to="SELECT_MODE"/>
|
19
|
</ARCS>
|
20
|
</NODE>
|
21
|
|
22
|
<NODE name="SELECT_MODE" type="Selection">
|
23
|
<DESCRIPTION>Set information about current provider</DESCRIPTION>
|
24
|
<PARAMETERS>
|
25
|
<PARAM required="true" type="string" name="selection" managedBy="user" function="validValues(['REFRESH','INCREMENTAL'])">REFRESH</PARAM>
|
26
|
</PARAMETERS>
|
27
|
<ARCS>
|
28
|
<ARC to="COLLECT_REFRESH" name="REFRESH" />
|
29
|
<ARC to="PREPARE_INCREMENTAL" name="INCREMENTAL" />
|
30
|
</ARCS>
|
31
|
</NODE>
|
32
|
|
33
|
<NODE name="COLLECT_REFRESH" type="CollectRecords">
|
34
|
<DESCRIPTION>Start Harvesting</DESCRIPTION>
|
35
|
<PARAMETERS>
|
36
|
<PARAM required="true" type="string" name="datasourceId" managedBy="system">$params.("dataprovider:id")$</PARAM>
|
37
|
<PARAM required="true" type="string" name="datasourceInterface" managedBy="system">$params.("dataprovider:interface")$</PARAM>
|
38
|
<PARAM required="true" type="string" name="eprParam" managedBy="system">collected_epr</PARAM>
|
39
|
</PARAMETERS>
|
40
|
<ARCS>
|
41
|
<ARC to="MD_BUILDER_REFRESH"/>
|
42
|
</ARCS>
|
43
|
</NODE>
|
44
|
|
45
|
<NODE name="MD_BUILDER_REFRESH" type="MdBuilder">
|
46
|
<DESCRIPTION>Prepare mdstore records</DESCRIPTION>
|
47
|
<PARAMETERS>
|
48
|
<PARAM required="true" type="string" name="inputEprParam" managedBy="system">collected_epr</PARAM>
|
49
|
<PARAM required="true" type="string" name="outputEprParam" managedBy="system">store_epr</PARAM>
|
50
|
<PARAM required="true" type="string" name="datasourceId" managedBy="system">$params.("dataprovider:id")$</PARAM>
|
51
|
<PARAM required="true" type="string" name="datasourceInterface" managedBy="system">$params.("dataprovider:interface")$</PARAM>
|
52
|
</PARAMETERS>
|
53
|
<ARCS>
|
54
|
<ARC to="STORE_REFRESH"/>
|
55
|
</ARCS>
|
56
|
</NODE>
|
57
|
|
58
|
<NODE name="STORE_REFRESH" type="StoreMDStoreRecords">
|
59
|
<DESCRIPTION>Store mdtore records</DESCRIPTION>
|
60
|
<PARAMETERS>
|
61
|
<PARAM required="true" type="string" name="mdId" managedBy="system">$params.("harv_id")$</PARAM>
|
62
|
<PARAM required="true" type="string" name="storingType" managedBy="system">REFRESH</PARAM>
|
63
|
<PARAM required="true" type="string" name="eprParam" managedBy="system">store_epr</PARAM>
|
64
|
</PARAMETERS>
|
65
|
<ARCS>
|
66
|
<ARC to="success"/>
|
67
|
</ARCS>
|
68
|
</NODE>
|
69
|
|
70
|
<NODE name="PREPARE_INCREMENTAL" type="FindDateRangeForIncrementalHarvesting">
|
71
|
<DESCRIPTION>Find Date Range For Incremental Harvesting</DESCRIPTION>
|
72
|
<PARAMETERS>
|
73
|
<PARAM required="true" type="string" name="fromDateParam" managedBy="system">FROM_DATE</PARAM>
|
74
|
<PARAM required="true" type="string" name="untilDateParam" managedBy="system">UNTIL_DATE</PARAM>
|
75
|
</PARAMETERS>
|
76
|
<ARCS>
|
77
|
<ARC to="COLLECT_INCREMENTAL"/>
|
78
|
</ARCS>
|
79
|
</NODE>
|
80
|
|
81
|
<NODE name="COLLECT_INCREMENTAL" type="DateRangeCollectRecords">
|
82
|
<DESCRIPTION>Start incremental harvesting</DESCRIPTION>
|
83
|
<PARAMETERS>
|
84
|
<PARAM required="true" type="string" name="datasourceId" managedBy="system">$params.("dataprovider:id")$</PARAM>
|
85
|
<PARAM required="true" type="string" name="datasourceInterface" managedBy="system">$params.("dataprovider:interface")$</PARAM>
|
86
|
<PARAM required="true" type="string" name="eprParam" managedBy="system">collected_epr</PARAM>
|
87
|
<PARAM required="true" type="string" name="fromDateParam" managedBy="system">FROM_DATE</PARAM>
|
88
|
<PARAM required="true" type="string" name="untilDateParam" managedBy="system">UNTIL_DATE</PARAM>
|
89
|
</PARAMETERS>
|
90
|
<ARCS>
|
91
|
<ARC to="MD_BUILDER_INCREMENTAL"/>
|
92
|
</ARCS>
|
93
|
</NODE>
|
94
|
|
95
|
<NODE name="MD_BUILDER_INCREMENTAL" type="MdBuilder">
|
96
|
<DESCRIPTION>Prepare mdstore records</DESCRIPTION>
|
97
|
<PARAMETERS>
|
98
|
<PARAM required="true" type="string" name="inputEprParam" managedBy="system">collected_epr</PARAM>
|
99
|
<PARAM required="true" type="string" name="outputEprParam" managedBy="system">store_epr</PARAM>
|
100
|
<PARAM required="true" type="string" name="datasourceId" managedBy="system">$params.("dataprovider:id")$</PARAM>
|
101
|
<PARAM required="true" type="string" name="datasourceInterface" managedBy="system">$params.("dataprovider:interface")$</PARAM>
|
102
|
</PARAMETERS>
|
103
|
<ARCS>
|
104
|
<ARC to="STORE_INCREMENTAL"/>
|
105
|
</ARCS>
|
106
|
</NODE>
|
107
|
|
108
|
<NODE name="STORE_INCREMENTAL" type="StoreMDStoreRecords">
|
109
|
<DESCRIPTION>Store mdtore records incrementally</DESCRIPTION>
|
110
|
<PARAMETERS>
|
111
|
<PARAM required="true" type="string" name="mdId" managedBy="system">$params.("harv_id")$</PARAM>
|
112
|
<PARAM required="true" type="string" name="storingType" managedBy="system">INCREMENTAL</PARAM>
|
113
|
<PARAM required="true" type="string" name="eprParam" managedBy="system">store_epr</PARAM>
|
114
|
</PARAMETERS>
|
115
|
<ARCS>
|
116
|
<ARC to="success"/>
|
117
|
</ARCS>
|
118
|
</NODE>
|
119
|
|
120
|
|