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="fetchOriginals" />
9
	</ARCS>
10
</NODE>
11

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

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

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

    
46
<NODE name="storeRecords" type="StoreMDStoreRecords">
47
	<DESCRIPTION>Store mdtore records</DESCRIPTION>
48
	<PARAMETERS>
49
		<PARAM required="true" type="string" name="mdId" managedBy="system">$params.("tran_id")$</PARAM>
50
		<PARAM required="true" type="string" name="storingType" managedBy="user">REFRESH</PARAM>
51
		<PARAM required="true" type="string" name="eprParam" managedBy="system">dmf_epr</PARAM>
52
	</PARAMETERS>
53
	<ARCS>
54
		<ARC to="UPDATE_INFO"/>
55
	</ARCS>
56
</NODE>
57

    
58
 <NODE name="UPDATE_INFO" type="MDStoreToApiExtraField">
59
	<DESCRIPTION>Update datasouce API extra fields</DESCRIPTION>
60
	<PARAMETERS>
61
		<PARAM required="true" type="string" name="mdId" managedBy="system">$params.("tran_id")$</PARAM>
62
		<PARAM required="true" type="string" name="datasourceId" managedBy="system">$params.("dataprovider:id")$</PARAM>
63
		<PARAM required="true" type="string" name="datasourceInterface" managedBy="system">$params.("dataprovider:interface")$</PARAM>
64
		<PARAM required="true" type="string" name="extraFieldForTotal" managedBy="system">last_aggregation_total</PARAM>
65
		<PARAM required="true" type="string" name="extraFieldForDate" managedBy="system">last_aggregation_date</PARAM>
66
		<PARAM required="true" type="string" name="extraFieldForMdId" managedBy="system">last_aggregation_mdId</PARAM>
67
	</PARAMETERS>
68
	<ARCS>
69
		<ARC to="success"/>
70
	</ARCS>
71
</NODE>
(3-3/3)