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="selectIncrementalTransformation"/>
10
    </ARCS>
11
</NODE>
12

    
13
<NODE name="selectIncrementalTransformation" type="IncrementalTransformation">
14
    <DESCRIPTION>Decide REFRESH/INCREMENTAL transformation</DESCRIPTION>
15
    <PARAMETERS>
16
        <PARAM required="true" type="string" name="operationType" managedBy="user" function="validValues(['REFRESH','INCREMENTAL'])"></PARAM>
17
    </PARAMETERS>
18
    <ARCS>
19
        <ARC to="obtainParams"/>
20
    </ARCS>
21
</NODE>
22

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

    
33
<NODE name="fetchOriginals" type="FetchMDStoreRecords">
34
	<DESCRIPTION>Fetch records from MDStore</DESCRIPTION>
35
	<PARAMETERS>
36
		<PARAM required="true" type="string" name="mdId" managedBy="system" category="MDSTORE_ID">$params.("orig_id")$</PARAM>
37
		<PARAM required="true" type="string" name="mdFormat" managedBy="system">$params.("orig_format")$</PARAM>
38
		<PARAM required="true" type="string" name="eprParam" managedBy="system">orig_epr</PARAM>
39
	</PARAMETERS>
40
	<ARCS>
41
		<ARC to="transform"/>
42
	</ARCS>
43
</NODE>
44

    
45
<NODE name="transform" type="Transform">
46
	<DESCRIPTION>Transform original records in DB rows</DESCRIPTION>
47
	<PARAMETERS>
48
		<PARAM required="true" type="string" name="ruleId" managedBy="user" category="TRANSFORMATION_RULE_ID" function="listProfiles('TransformationRuleDSResourceType', '//TITLE')"></PARAM>
49
		<PARAM required="true" type="string" name="inputEprParam" managedBy="system">orig_epr</PARAM>
50
		<PARAM required="true" type="string" name="outputEprParam" managedBy="system">packed_row_epr</PARAM>
51
	</PARAMETERS>
52
	<ARCS>
53
		<ARC to="cleanRows"/>
54
	</ARCS>
55
</NODE>
56

    
57
<NODE name="cleanRows" type="Clean">
58
	<DESCRIPTION>Clean DB rows values according to defined vocabularies</DESCRIPTION>
59
	<PARAMETERS>
60
		<PARAM required="true" type="string" name="ruleId" managedBy="user" category="CLEANER_RULE_ID" function="listProfiles('CleanerDSResourceType', '//CLEANER_NAME')"></PARAM>
61
		<PARAM required="true" type="string" name="inputEprParam" managedBy="system">packed_row_epr</PARAM>
62
		<PARAM required="true" type="string" name="outputEprParam" managedBy="system">cleaned_row_epr</PARAM>
63
	</PARAMETERS>
64
	<ARCS>
65
		<ARC to="storeRowRecords"/>
66
	</ARCS>
67
</NODE>
68

    
69
<NODE name="storeRowRecords" type="StoreMDStoreRecords">
70
	<DESCRIPTION>Store mdtore records</DESCRIPTION>
71
	<PARAMETERS>
72
		<PARAM required="true" type="string" name="mdId" managedBy="system" category="MDSTORE_ID">$params.("row_id")$</PARAM>
73
		<PARAM required="true" type="string" name="storingType" managedBy="system">REFRESH</PARAM>
74
		<PARAM required="true" type="string" name="eprParam" managedBy="system">cleaned_row_epr</PARAM>
75
	</PARAMETERS>
76
	<ARCS>
77
		<ARC to="UPDATE_INFO"/>
78
	</ARCS>
79
</NODE>
80

    
81
 <NODE name="UPDATE_INFO" type="MDStoreToApiExtraField">
82
	<DESCRIPTION>Update datasouce API extra fields</DESCRIPTION>
83
	<PARAMETERS>
84
		<PARAM required="true" type="string" name="mdId" managedBy="system">$params.("row_id")$</PARAM>
85
		<PARAM required="true" type="string" name="datasourceId" managedBy="system">$params.("dataprovider:id")$</PARAM>
86
		<PARAM required="true" type="string" name="datasourceInterface" managedBy="system">$params.("dataprovider:interface")$</PARAM>
87
		<PARAM required="true" type="string" name="extraFieldForTotal" managedBy="system">last_aggregation_total</PARAM>
88
		<PARAM required="true" type="string" name="extraFieldForDate" managedBy="system">last_aggregation_date</PARAM>
89
		<PARAM required="true" type="string" name="extraFieldForMdId" managedBy="system">last_aggregation_mdId</PARAM>
90
	</PARAMETERS>
91
	<ARCS>
92
		<ARC to="success"/>
93
	</ARCS>
94
</NODE>
(4-4/5)