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