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
		<ARC to="obtainParams"/>
11
	</ARCS>
12
</NODE>
13

    
14
<NODE name="obtainParams" type="ObtainOpenaireDataSourceParams">
15
	<DESCRIPTION>Obtain parameters for current provider</DESCRIPTION>
16
	<PARAMETERS>
17
		<PARAM required="true" type="string" name="providerId" managedBy="system">$params.("dataprovider:id")$</PARAM>
18
	</PARAMETERS>
19
	<ARCS>
20
		<ARC to="generateRow"/>
21
	</ARCS>
22
</NODE>
23

    
24
<NODE name="PREPARE_DB" type="ExecuteSql">
25
	<DESCRIPTION>Create necessary tables</DESCRIPTION>
26
    <PARAMETERS>
27
    	<PARAM name="dbProperty" type="string" managedBy="system" required="true">dnet.openaire.db.name</PARAM>
28
        <PARAM name="sql" type="string" managedBy="system" required="true">/eu/dnetlib/msro/openaireplus/workflows/repo-hi/hostedbyMapJournalIntersection/sql/pangaea_preparetable.sql</PARAM>
29
	</PARAMETERS>
30
    <ARCS>
31
		<ARC to="COLLECT"/>		
32
	</ARCS>
33
</NODE>
34

    
35
<NODE name="COLLECT" type="CollectRecords">
36
	<DESCRIPTION>Start Harvesting</DESCRIPTION>
37
	<PARAMETERS>
38
		<PARAM required="true" type="string" name="datasourceId" managedBy="system">$params.("dataprovider:id")$</PARAM>
39
		<PARAM required="true" type="string" name="datasourceInterface" managedBy="system">$params.("dataprovider:interface")$</PARAM>
40
		<PARAM required="true" type="string" name="eprParam" managedBy="system">collected_epr</PARAM>
41
	</PARAMETERS>
42
	<ARCS>
43
		<ARC to="generateRow"/>
44
	</ARCS>
45
</NODE>
46

    
47
<NODE name="generateRow" type="ApplyXslt" isJoin="true">
48
	<DESCRIPTION>Transform original records to Publication</DESCRIPTION>
49
	<PARAMETERS>
50
		<PARAM required="true" type="string" name="xsltClasspath" managedBy="user" function="listFiles('/eu/dnetlib/msro/openaireplus/workflows/repo-hi/hostedbyMapJournalIntersection/xsl','xsl')"></PARAM>
51
		<PARAM required="true" type="string" name="inputEprParam" managedBy="system">collected_epr</PARAM>
52
		<PARAM required="true" type="string" name="outputEprParam" managedBy="system">row_epr</PARAM>		 
53
	</PARAMETERS>
54
	<ARCS>
55
		<ARC to="UPDATE_JORUNAL_DB"/>
56
	</ARCS>
57
</NODE>
58

    
59
<NODE name="UPDATE_JORUNAL_DB" type="UpdateOpenaireDb">
60
	<DESCRIPTION>Update Db</DESCRIPTION>
61
	<PARAMETERS>
62
		<PARAM required="true" type="string" name="eprParam" managedBy="system">row_epr</PARAM>
63
	</PARAMETERS>
64
	<ARCS>
65
		<ARC to="FIND_MATCHES"/>
66
	</ARCS>
67
</NODE>
68

    
69
<NODE name="FIND_MATCHES" type="ExecuteSql">
70
	<DESCRIPTION>Add new journal to patch entry tables</DESCRIPTION>
71
    <PARAMETERS>
72
    	<PARAM name="dbProperty" type="string" managedBy="system" required="true">dnet.openaire.db.name</PARAM>
73
        <PARAM name="sql" type="string" managedBy="user" required="true" function="listFiles('/eu/dnetlib/msro/openaireplus/workflows/repo-hi/hostedbyMapJournalIntersection/sql','sql')"></PARAM>
74
	</PARAMETERS>
75
    <ARCS>
76
		<ARC to="success"/>
77
	</ARCS>
78
</NODE>
(5-5/6)