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="selectIncrementalTransformation"/>
|
10
|
<ARC to="obtainParams" />
|
11
|
</ARCS>
|
12
|
</NODE>
|
13
|
|
14
|
<NODE name="selectIncrementalTransformation" type="IncrementalTransformation">
|
15
|
<DESCRIPTION>Decide REFRESH/INCREMENTAL transformation</DESCRIPTION>
|
16
|
<PARAMETERS>
|
17
|
<PARAM required="true" type="string" name="transformationType" managedBy="user" function="validValues(['REFRESH','INCREMENTAL'])"></PARAM>
|
18
|
</PARAMETERS>
|
19
|
<ARCS>
|
20
|
<ARC to="fetchOriginals"/>
|
21
|
</ARCS>
|
22
|
</NODE>
|
23
|
|
24
|
<NODE name="fetchOriginals" type="FetchMDStoreRecords">
|
25
|
<DESCRIPTION>Fetch records from MDStore</DESCRIPTION>
|
26
|
<PARAMETERS>
|
27
|
<PARAM required="true" type="string" name="mdId" managedBy="system" category="MDSTORE_ID">$params.("harv_id")$</PARAM>
|
28
|
<PARAM required="true" type="string" name="mdFormat" managedBy="system">$params.("harv_format")$</PARAM>
|
29
|
<PARAM required="true" type="string" name="eprParam" managedBy="system">orig_epr</PARAM>
|
30
|
</PARAMETERS>
|
31
|
<ARCS>
|
32
|
<ARC to="transform"/>
|
33
|
</ARCS>
|
34
|
</NODE>
|
35
|
|
36
|
<NODE name="obtainParams" type="ObtainOpenaireDataSourceParams">
|
37
|
<DESCRIPTION>Fetch records from MDStore</DESCRIPTION>
|
38
|
<PARAMETERS>
|
39
|
<PARAM required="true" type="string" name="providerId" managedBy="system">$params.("dataprovider:id")$</PARAM>
|
40
|
</PARAMETERS>
|
41
|
<ARCS>
|
42
|
<ARC to="transform"/>
|
43
|
</ARCS>
|
44
|
</NODE>
|
45
|
|
46
|
<NODE name="transform" type="Transform" isJoin="true">
|
47
|
<DESCRIPTION>Transform original records</DESCRIPTION>
|
48
|
<PARAMETERS>
|
49
|
<PARAM required="true" type="string" name="ruleId" managedBy="user" category="TRANSFORMATION_RULE_ID" function="listProfiles('TransformationRuleDSResourceType', '//TITLE')"></PARAM>
|
50
|
<PARAM required="true" type="string" name="inputEprParam" managedBy="system">orig_epr</PARAM>
|
51
|
<PARAM required="true" type="string" name="outputEprParam" managedBy="system">tran_epr</PARAM>
|
52
|
</PARAMETERS>
|
53
|
<ARCS>
|
54
|
<ARC to="patchHostedBy"/>
|
55
|
</ARCS>
|
56
|
</NODE>
|
57
|
|
58
|
<NODE name="patchHostedBy" type="PatchHostedBy">
|
59
|
<DESCRIPTION>Patch oaf:hostedBy fields</DESCRIPTION>
|
60
|
<PARAMETERS>
|
61
|
<PARAM required="true" type="string" name="inputEprParam" managedBy="system">tran_epr</PARAM>
|
62
|
<PARAM required="true" type="string" name="outputEprParam" managedBy="system">patched_epr</PARAM>
|
63
|
<!-- <PARAM required="true" type="string" name="dbName" managedBy="user">dnet_openaireplus</PARAM> -->
|
64
|
<PARAM required="true" type="string" name="countersParam" managedBy="system">hostedByCounters</PARAM>
|
65
|
<PARAM required="true" type="string" name="hostedbyMapTable" managedBy="user">hostedby_map</PARAM>
|
66
|
<PARAM required="true" type="string" name="xpathEntry" managedBy="user">//*[local-name()='header']/*[local-name()='setSpec']</PARAM>
|
67
|
<PARAM required="true" type="string" name="datasourceId" managedBy="system">$params.("dataprovider:id")$</PARAM>
|
68
|
</PARAMETERS>
|
69
|
<ARCS>
|
70
|
<ARC to="storeRecords"/>
|
71
|
</ARCS>
|
72
|
</NODE>
|
73
|
|
74
|
<NODE name="storeRecords" type="StoreMDStoreRecords">
|
75
|
<DESCRIPTION>Store mdtore records</DESCRIPTION>
|
76
|
<PARAMETERS>
|
77
|
<PARAM required="true" type="string" name="mdId" managedBy="system" category="MDSTORE_ID">$params.("tran_id")$</PARAM>
|
78
|
<PARAM required="true" type="string" name="storingType" managedBy="system">REFRESH</PARAM>
|
79
|
<PARAM required="true" type="string" name="eprParam" managedBy="system">patched_epr</PARAM>
|
80
|
</PARAMETERS>
|
81
|
<ARCS>
|
82
|
<ARC to="UPDATE_INFO"/>
|
83
|
</ARCS>
|
84
|
</NODE>
|
85
|
|
86
|
<NODE name="UPDATE_INFO" type="MDStoreToApiExtraField">
|
87
|
<DESCRIPTION>Update datasouce API extra fields</DESCRIPTION>
|
88
|
<PARAMETERS>
|
89
|
<PARAM required="true" type="string" name="mdId" managedBy="system">$params.("tran_id")$</PARAM>
|
90
|
<PARAM required="true" type="string" name="datasourceId" managedBy="system">$params.("dataprovider:id")$</PARAM>
|
91
|
<PARAM required="true" type="string" name="datasourceInterface" managedBy="system">$params.("dataprovider:interface")$</PARAM>
|
92
|
<PARAM required="true" type="string" name="extraFieldForTotal" managedBy="system">last_aggregation_total</PARAM>
|
93
|
<PARAM required="true" type="string" name="extraFieldForDate" managedBy="system">last_aggregation_date</PARAM>
|
94
|
<PARAM required="true" type="string" name="extraFieldForMdId" managedBy="system">last_aggregation_mdId</PARAM>
|
95
|
</PARAMETERS>
|
96
|
<ARCS>
|
97
|
<ARC to="validateHostedByRepos"/>
|
98
|
</ARCS>
|
99
|
</NODE>
|
100
|
|
101
|
<NODE name="validateHostedByRepos" type="UpsertHostedByApis">
|
102
|
<DESCRIPTION>Validate hostedBy Repos</DESCRIPTION>
|
103
|
<PARAMETERS>
|
104
|
<PARAM required="true" type="string" name="countersParam" managedBy="system">hostedByCounters</PARAM>
|
105
|
<PARAM required="true" type="string" name="mdId" managedBy="system">$params.("tran_id")$</PARAM>
|
106
|
<PARAM required="true" type="string" name="extraFieldsForTotal" managedBy="system">datacite::last_aggregation_total</PARAM>
|
107
|
<PARAM required="true" type="string" name="extraFieldForDate" managedBy="system">datacite::last_aggregation_date</PARAM>
|
108
|
<PARAM required="true" type="string" name="extraFieldForMdId" managedBy="system">datacite::last_aggregation_mdId</PARAM>
|
109
|
</PARAMETERS>
|
110
|
<ARCS>
|
111
|
<ARC to="success"/>
|
112
|
</ARCS>
|
113
|
</NODE>
|