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

    
14
<NODE name="fetchOriginals" type="FetchMDStoreRecords">
15
	<DESCRIPTION>Fetch records from MDStore</DESCRIPTION>
16
	<PARAMETERS>
17
		<PARAM required="true" type="string" name="mdId" managedBy="system" category="MDSTORE_ID">$params.("harv_id")$</PARAM>
18
		<PARAM required="true" type="string" name="mdFormat" managedBy="system">$params.("harv_format")$</PARAM>
19
		<PARAM required="true" type="string" name="eprParam" managedBy="system">orig_epr</PARAM>
20
	</PARAMETERS>
21
	<ARCS>
22
		<ARC to="transform"/>
23
	</ARCS>
24
</NODE>
25

    
26
<NODE name="obtainParams" type="ObtainOpenaireDataSourceParams">
27
	<DESCRIPTION>Fetch records from MDStore</DESCRIPTION>
28
	<PARAMETERS>
29
		<PARAM required="true" type="string" name="providerId" managedBy="system">$params.("dataprovider:id")$</PARAM>
30
	</PARAMETERS>
31
	<ARCS>
32
		<ARC to="transform"/>
33
	</ARCS>
34
</NODE>
35

    
36
<NODE name="transform" type="Transform" isJoin="true">
37
	<DESCRIPTION>Transform original records</DESCRIPTION>
38
	<PARAMETERS>
39
		<PARAM required="true" type="string" name="ruleId" managedBy="user" category="TRANSFORMATION_RULE_ID" function="listProfiles('TransformationRuleDSResourceType', '//TITLE')"></PARAM>
40
		<PARAM required="true" type="string" name="inputEprParam" managedBy="system">orig_epr</PARAM>
41
		<PARAM required="true" type="string" name="outputEprParam" managedBy="system">tran_epr</PARAM>		 
42
	</PARAMETERS>
43
	<ARCS>
44
		<ARC to="patchHostedBy"/>
45
	</ARCS>
46
</NODE>
47

    
48
<NODE name="patchHostedBy" type="DataciteHostedBy">
49
	<DESCRIPTION>Patch oaf:hostedBy fields</DESCRIPTION>
50
	<PARAMETERS>
51
		<PARAM required="true" type="string" name="inputEprParam" managedBy="system">tran_epr</PARAM>
52
		<PARAM required="true" type="string" name="outputEprParam" managedBy="system">patched_epr</PARAM>		 
53
		<PARAM required="true" type="string" name="dbName" managedBy="user">dnet_openaireplus</PARAM>
54
		<PARAM required="true" type="string" name="countersParam" managedBy="system">hostedByCounters</PARAM>		 
55
	</PARAMETERS>
56
	<ARCS>
57
		<ARC to="storeRecords"/>
58
	</ARCS>
59
</NODE>
60

    
61
<NODE name="storeRecords" type="StoreMDStoreRecords">
62
	<DESCRIPTION>Store mdtore records</DESCRIPTION>
63
	<PARAMETERS>
64
		<PARAM required="true" type="string" name="mdId" managedBy="system" category="MDSTORE_ID">$params.("tran_id")$</PARAM>
65
		<PARAM required="true" type="string" name="storingType" managedBy="system">REFRESH</PARAM>
66
		<PARAM required="true" type="string" name="eprParam" managedBy="system">patched_epr</PARAM>
67
	</PARAMETERS>
68
	<ARCS>
69
		<ARC to="UPDATE_INFO"/>
70
	</ARCS>
71
</NODE>
72

    
73
 <NODE name="UPDATE_INFO" type="MDStoreToApiExtraField">
74
	<DESCRIPTION>Update datasouce API extra fields</DESCRIPTION>
75
	<PARAMETERS>
76
		<PARAM required="true" type="string" name="mdId" managedBy="system">$params.("tran_id")$</PARAM>
77
		<PARAM required="true" type="string" name="datasourceId" managedBy="system">$params.("dataprovider:id")$</PARAM>
78
		<PARAM required="true" type="string" name="datasourceInterface" managedBy="system">$params.("dataprovider:interface")$</PARAM>
79
		<PARAM required="true" type="string" name="extraFieldForTotal" managedBy="system">last_aggregation_total</PARAM>
80
		<PARAM required="true" type="string" name="extraFieldForDate" managedBy="system">last_aggregation_date</PARAM>
81
		<PARAM required="true" type="string" name="extraFieldForMdId" managedBy="system">last_aggregation_mdId</PARAM>
82
	</PARAMETERS>
83
	<ARCS>
84
		<ARC to="validateHostedByRepos"/>
85
	</ARCS>
86
</NODE>
87

    
88
<NODE name="validateHostedByRepos" type="ValidateDataciteHostedByRepos">
89
	<DESCRIPTION>Validate hostedBy Repos</DESCRIPTION>
90
	<PARAMETERS>
91
		<PARAM required="true" type="string" name="countersParam" managedBy="system">hostedByCounters</PARAM>
92
		<PARAM required="true" type="string" name="mdId" managedBy="system">$params.("tran_id")$</PARAM>
93
		<PARAM required="true" type="string" name="extraFieldsForTotal" managedBy="system">datacite::last_aggregation_total</PARAM>
94
		<PARAM required="true" type="string" name="extraFieldForDate" managedBy="system">datacite::last_aggregation_date</PARAM>
95
		<PARAM required="true" type="string" name="extraFieldForMdId" managedBy="system">datacite::last_aggregation_mdId</PARAM>
96
	</PARAMETERS>
97
	<ARCS>
98
		<ARC to="success"/>
99
	</ARCS>
100
</NODE>
(3-3/3)