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="COLLECT_REFRESH"/>
|
20
|
</ARCS>
|
21
|
</NODE>
|
22
|
|
23
|
<NODE name="COLLECT_REFRESH" type="CollectRecords">
|
24
|
<DESCRIPTION>Start Harvesting</DESCRIPTION>
|
25
|
<PARAMETERS>
|
26
|
<PARAM required="true" type="string" name="datasourceId" managedBy="system">$params.("dataprovider:id")$</PARAM>
|
27
|
<PARAM required="true" type="string" name="datasourceInterface" managedBy="system">$params.("dataprovider:interface")$</PARAM>
|
28
|
<PARAM required="true" type="string" name="eprParam" managedBy="system">collected_epr</PARAM>
|
29
|
</PARAMETERS>
|
30
|
<ARCS>
|
31
|
<ARC to="MD_BUILDER_REFRESH"/>
|
32
|
</ARCS>
|
33
|
</NODE>
|
34
|
|
35
|
<NODE name="MD_BUILDER_REFRESH" type="ApplyXslt">
|
36
|
<DESCRIPTION>Transform original records in DB rows</DESCRIPTION>
|
37
|
<PARAMETERS>
|
38
|
<PARAM required="true" type="string" name="xsltClasspath" managedBy="user" function="listFiles('/eu/dnetlib/msro/openaireplus/workflows/repo-hi/xslt-datacite','xsl')"></PARAM>
|
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
|
</PARAMETERS>
|
42
|
<ARCS>
|
43
|
<ARC to="STORE_REFRESH"/>
|
44
|
</ARCS>
|
45
|
</NODE>
|
46
|
|
47
|
<NODE name="STORE_REFRESH" type="StoreMDStoreRecords">
|
48
|
<DESCRIPTION>Store mdstore records</DESCRIPTION>
|
49
|
<PARAMETERS>
|
50
|
<PARAM required="true" type="string" name="mdId" managedBy="system" category="MDSTORE_ID">$params.("harv_id")$</PARAM>
|
51
|
<PARAM required="true" type="string" name="storingType" managedBy="system">REFRESH</PARAM>
|
52
|
<PARAM required="true" type="string" name="eprParam" managedBy="system">store_epr</PARAM>
|
53
|
</PARAMETERS>
|
54
|
<ARCS>
|
55
|
<ARC to="UPDATE_INFO"/>
|
56
|
</ARCS>
|
57
|
</NODE>
|
58
|
|
59
|
<NODE name="UPDATE_INFO" type="MDStoreToApiExtraField">
|
60
|
<DESCRIPTION>Update datasouce API extra fields</DESCRIPTION>
|
61
|
<PARAMETERS>
|
62
|
<PARAM required="true" type="string" name="mdId" managedBy="system">$params.("harv_id")$</PARAM>
|
63
|
<PARAM required="true" type="string" name="datasourceId" managedBy="system">$params.("dataprovider:id")$</PARAM>
|
64
|
<PARAM required="true" type="string" name="datasourceInterface" managedBy="system">$params.("dataprovider:interface")$</PARAM>
|
65
|
<PARAM required="true" type="string" name="extraFieldForTotal" managedBy="system">last_collection_total</PARAM>
|
66
|
<PARAM required="true" type="string" name="extraFieldForDate" managedBy="system">last_collection_date</PARAM>
|
67
|
<PARAM required="true" type="string" name="extraFieldForMdId" managedBy="system">last_collection_mdId</PARAM>
|
68
|
</PARAMETERS>
|
69
|
<ARCS>
|
70
|
<ARC to="success"/>
|
71
|
</ARCS>
|
72
|
</NODE>
|
73
|
|
74
|
|