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

    
13
<NODE name="PREPARE_DB" type="ExecuteSql">
14
	<DESCRIPTION>Create necessary tables</DESCRIPTION>
15
    <PARAMETERS>
16
    	<PARAM name="dbProperty" type="string" managedBy="system" required="true">dnet.openaire.db.name</PARAM>
17
        <PARAM name="sql" type="string" managedBy="system" required="true">/eu/dnetlib/msro/openaireplus/workflows/repo-hi/sql-datacite/dataciteSets_prepareTables.sql</PARAM>
18
	</PARAMETERS>
19
    <ARCS>
20
		<ARC to="FETCH_SETS_FROM_MDSTORE"/>
21
		<ARC to="FETCH_DATAREPOS"/>
22
	</ARCS>
23
</NODE>
24

    
25
<NODE name="FETCH_SETS_FROM_MDSTORE" type="FetchMDStoreRecords">
26
	<DESCRIPTION>Fetch records from MDStore</DESCRIPTION>
27
	<PARAMETERS>
28
		<PARAM required="true" type="string" name="mdId" managedBy="system" category="MDSTORE_ID">$params.("row_id")$</PARAM>
29
		<PARAM required="true" type="string" name="mdFormat" managedBy="system">$params.("row_format")$</PARAM>
30
		<PARAM required="true" type="string" name="eprParam" managedBy="system">rs_epr</PARAM>
31
	</PARAMETERS>
32
	<ARCS>
33
		<ARC to="UPDATE_SETS_DB"/>
34
	</ARCS>
35
</NODE>
36

    
37
<NODE name="UPDATE_SETS_DB" type="UpdateOpenaireDb">
38
	<DESCRIPTION>Update Db</DESCRIPTION>
39
	<PARAMETERS>
40
		<PARAM required="true" type="string" name="eprParam" managedBy="system">rs_epr</PARAM>
41
	</PARAMETERS>
42
	<ARCS>
43
		<ARC to="FIND_MATCHES"/>
44
	</ARCS>
45
</NODE>
46

    
47
<NODE name="FETCH_DATAREPOS" type="QueryDb">
48
	<DESCRIPTION>Fetch records by Query</DESCRIPTION>
49
	<PARAMETERS>
50
		<PARAM name="dbProperty" type="string" managedBy="system" required="true">dnet.openaire.db.name</PARAM>
51
		<PARAM name="sql" type="string" managedBy="system" required="true">/eu/dnetlib/msro/openaireplus/workflows/repo-hi/sql-datacite/dataciteSets_findDataRepos.sql</PARAM>
52
		<PARAM name="outputEprParam" type="string" managedBy="system" required="true">sql_epr</PARAM>
53
	</PARAMETERS>
54
	<ARCS>
55
		<ARC to="CLEAN_DATAREPOS" />
56
	</ARCS>
57
</NODE>
58

    
59
<NODE name="CLEAN_DATAREPOS" type="ApplyXslt">
60
	<DESCRIPTION>Transform original records in DB rows</DESCRIPTION>
61
	<PARAMETERS>
62
		<PARAM required="true" type="string" name="xsltClasspath" managedBy="system">/eu/dnetlib/msro/openaireplus/workflows/repo-hi/xslt-datacite/datacite_datarepos_2_db.xslt</PARAM>
63
		<PARAM required="true" type="string" name="inputEprParam" managedBy="system">sql_epr</PARAM>
64
		<PARAM required="true" type="string" name="outputEprParam" managedBy="system">clean_sql_epr</PARAM>
65
	</PARAMETERS>
66
	<ARCS>
67
		<ARC to="UPDATE_DATAREPOS_DB"/>
68
	</ARCS>
69
</NODE>
70

    
71
<NODE name="UPDATE_DATAREPOS_DB" type="UpdateOpenaireDb">
72
	<DESCRIPTION>Update Db with cleaned datarepos</DESCRIPTION>
73
	<PARAMETERS>
74
		<PARAM required="true" type="string" name="eprParam" managedBy="system">clean_sql_epr</PARAM>
75
	</PARAMETERS>
76
	<ARCS>
77
		<ARC to="FIND_MATCHES"/>
78
	</ARCS>
79
</NODE>
80

    
81
<NODE name="FIND_MATCHES" type="ExecuteSql" isJoin="true">
82
	<DESCRIPTION>Create necessary tables</DESCRIPTION>
83
    <PARAMETERS>
84
    	<PARAM name="dbProperty" type="string" managedBy="system" required="true">dnet.openaire.db.name</PARAM>
85
        <PARAM name="sql" type="string" managedBy="system" required="true">/eu/dnetlib/msro/openaireplus/workflows/repo-hi/sql-datacite/dataciteSets_findMatches.sql</PARAM>
86
	</PARAMETERS>
87
    <ARCS>
88
		<ARC to="success"/>
89
	</ARCS>
90
</NODE>
(4-4/4)