1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
<RESOURCE_PROFILE>
|
3
|
<HEADER>
|
4
|
<RESOURCE_IDENTIFIER value="276fa777-49eb-43f5-bf6f-c77751614f80_V29ya2Zsb3dUZW1wbGF0ZURTUmVzb3VyY2VzL1dvcmtmbG93VGVtcGxhdGVEU1Jlc291cmNlVHlwZQ=="/>
|
5
|
<RESOURCE_TYPE value="WorkflowTemplateDSResourceType"/>
|
6
|
<RESOURCE_KIND value="WorkflowTemplateDSResources"/>
|
7
|
<RESOURCE_URI value=""/>
|
8
|
<DATE_OF_CREATION value="2001-12-31T12:00:00"/>
|
9
|
</HEADER>
|
10
|
<BODY>
|
11
|
<CONFIGURATION>
|
12
|
<PARAMETERS>
|
13
|
<PARAM name="dsId" description="Datasource Id" required="true" type="string"/>
|
14
|
<PARAM name="interface" description="Datasource Interface" required="true" type="string"/>
|
15
|
<PARAM name="cleanMdstoreId" description="Store for cleaned records" required="true" type="string"/>
|
16
|
<PARAM name="collMdstoreId" description="Store for collected records" required="true" type="string"/>
|
17
|
<PARAM name="transformRuleId" description="Transformation Rule" required="true" type="string"/>
|
18
|
<PARAM name="cleanRuleId" description="Cleaning Rule" required="true" type="string"/>
|
19
|
</PARAMETERS>
|
20
|
<WORKFLOW>
|
21
|
<NODE name="obtainParams" type="ObtainOpenaireDataSourceParams" isStart="true">
|
22
|
<DESCRIPTION>Fetch records from MDStore</DESCRIPTION>
|
23
|
<PARAMETERS>
|
24
|
<PARAM name="providerId" ref="dsId"/>
|
25
|
</PARAMETERS>
|
26
|
<ARCS>
|
27
|
<ARC to="fetchOriginals"/>
|
28
|
</ARCS>
|
29
|
</NODE>
|
30
|
|
31
|
<NODE name="fetchOriginals" type="FetchMDStoreRecords">
|
32
|
<DESCRIPTION>Fetch records from MDStore</DESCRIPTION>
|
33
|
<PARAMETERS>
|
34
|
<PARAM name="mdId" ref="collMdstoreId"/>
|
35
|
<PARAM name="mdFormat" value="GMF"/>
|
36
|
<PARAM name="eprParam" value="orig_epr"/>
|
37
|
</PARAMETERS>
|
38
|
<ARCS>
|
39
|
<ARC to="transform"/>
|
40
|
</ARCS>
|
41
|
</NODE>
|
42
|
<NODE name="transform" type="ApplyXslt">
|
43
|
<DESCRIPTION>Transform to DB records</DESCRIPTION>
|
44
|
<PARAMETERS>
|
45
|
<PARAM name="xsltClasspath" value="/eu/dnetlib/wds/workflows/repo-hi/xslt/cmr_er2db.xslt"/>
|
46
|
<PARAM name="inputEprParam" value="orig_epr"/>
|
47
|
<PARAM name="outputEprParam" value="db_epr"/>
|
48
|
</PARAMETERS>
|
49
|
<ARCS>
|
50
|
<ARC to="clean"/>
|
51
|
</ARCS>
|
52
|
</NODE>
|
53
|
<NODE name="clean" type="Clean">
|
54
|
<DESCRIPTION>Clean DB record</DESCRIPTION>
|
55
|
<PARAMETERS>
|
56
|
<PARAM name="ruleId" ref="cleanRuleId"/>
|
57
|
<PARAM name="inputEprParam" value="db_epr"/>
|
58
|
<PARAM name="outputEprParam" value="clean_epr"/>
|
59
|
</PARAMETERS>
|
60
|
<ARCS>
|
61
|
<ARC to="storeRecords"/>
|
62
|
</ARCS>
|
63
|
</NODE>
|
64
|
<NODE name="storeRecords" type="StoreMDStoreRecords">
|
65
|
<DESCRIPTION>Store mdtore records</DESCRIPTION>
|
66
|
<PARAMETERS>
|
67
|
<PARAM name="mdId" ref="cleanMdstoreId"/>
|
68
|
<PARAM name="storingType" value="REFRESH"/>
|
69
|
<PARAM name="eprParam" value="clean_epr"/>
|
70
|
</PARAMETERS>
|
71
|
<ARCS>
|
72
|
<ARC to="UPDATE_INFO"/>
|
73
|
</ARCS>
|
74
|
</NODE>
|
75
|
<NODE name="UPDATE_INFO" type="MDStoreToApiExtraField">
|
76
|
<DESCRIPTION>Update datasouce API extra fields</DESCRIPTION>
|
77
|
<PARAMETERS>
|
78
|
<PARAM name="mdId" ref="cleanMdstoreId"/>
|
79
|
<PARAM name="datasourceId" ref="dsId"/>
|
80
|
<PARAM name="datasourceInterface" ref="interface"/>
|
81
|
<PARAM name="extraFieldForTotal" value="last_aggregation_total"/>
|
82
|
<PARAM name="extraFieldForDate" value="last_aggregation_date"/>
|
83
|
<PARAM name="extraFieldForMdId" value="last_aggregation_mdId"/>
|
84
|
</PARAMETERS>
|
85
|
<ARCS>
|
86
|
<ARC to="success"/>
|
87
|
</ARCS>
|
88
|
</NODE>
|
89
|
</WORKFLOW>
|
90
|
</CONFIGURATION>
|
91
|
</BODY>
|
92
|
</RESOURCE_PROFILE>
|