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="fetchOriginalsForPublication"/>
10
		<ARC to="obtainParams" />
11
	</ARCS>
12
</NODE>
13
<NODE name="obtainParams" type="ObtainOpenaireDataSourceParams">
14
	<DESCRIPTION>Fetch records from MDStore</DESCRIPTION>
15
	<PARAMETERS>
16
		<PARAM required="true" type="string" name="providerId" managedBy="system">$params.("dataprovider:id")$</PARAM>
17
	</PARAMETERS>
18
	<ARCS>
19
		<ARC to="fetchOriginalsForPublication"/>
20
	</ARCS>
21
</NODE>
22

    
23

    
24
<NODE name="fetchOriginalsForPublication" type="FetchMDStoreRecords" isJoin="true">
25
	<DESCRIPTION>Fetch records from MDStore</DESCRIPTION>
26
	<PARAMETERS>
27
		<PARAM required="true" type="string" name="mdId" managedBy="system" category="MDSTORE_ID">$params.("harv_id")$</PARAM>
28
		<PARAM required="true" type="string" name="mdFormat" managedBy="system">$params.("harv_format")$</PARAM>
29
		<PARAM required="true" type="string" name="eprParam" managedBy="system">orig_publication_epr</PARAM>
30
	</PARAMETERS>
31
	<ARCS>
32
		<ARC to="transformPublication"/>
33
	</ARCS>
34
</NODE>
35

    
36
<NODE name="transformPublication" type="ApplyXslt">
37
	<DESCRIPTION>Transform original records to Publication</DESCRIPTION>
38
	<PARAMETERS>
39
		<PARAM required="true" type="string" name="xsltClasspath" managedBy="user" function="listFiles('/eu/dnetlib/msro/openaireplus/workflows/repo-hi/dataRepositoryByJournal/xsl','xsl')"></PARAM>
40
		<PARAM required="true" type="string" name="inputEprParam" managedBy="system">orig_publication_epr</PARAM>
41
		<PARAM required="true" type="string" name="outputEprParam" managedBy="system">packed_publication_epr</PARAM>		 
42
	</PARAMETERS>
43
	<ARCS>
44
		<ARC to="splitRecords"/>
45
	</ARCS>
46
</NODE>
47

    
48
<NODE name="splitRecords" type="SplitDatasetRecord">
49
	<DESCRIPTION>Split Records into datasets and publication</DESCRIPTION>
50
	<PARAMETERS>
51
		<PARAM required="true" type="string" name="inputEprParm" managedBy="system">packed_publication_epr</PARAM>
52
		<PARAM required="true" type="string" name="outputEprParm" managedBy="system">publication_epr</PARAM>
53
	</PARAMETERS>
54
	<ARCS>		
55
		<ARC to="findHostedBy"/>
56
	</ARCS>
57
</NODE>
58

    
59
<NODE name="findHostedBy" type="FindHostedBy">
60
	<DESCRIPTION>Patch oaf:hostedBy fields</DESCRIPTION>
61
	<PARAMETERS>
62
		<PARAM required="true" type="string" name="inputEprParam" managedBy="system">publication_epr</PARAM>
63
		<PARAM required="true" type="string" name="outputEprParam" managedBy="system">patched_epr</PARAM>
64
		<PARAM required="true" type="string" name="countersParam" managedBy="system">hostedByCounters</PARAM>	
65
	</PARAMETERS>
66
	<ARCS>
67
		<ARC to="storePublicationRecords"/>
68
	</ARCS>
69
</NODE>
70

    
71
<NODE name="storePublicationRecords" type="StoreMDStoreRecords">
72
	<DESCRIPTION>Store records</DESCRIPTION>
73
	<PARAMETERS>
74
		<PARAM required="true" type="string" name="mdId" managedBy="system" category="MDSTORE_ID">$params.("tranOAF_id")$</PARAM>
75
		<PARAM required="true" type="string" name="storingType" managedBy="system">REFRESH</PARAM>
76
		<PARAM required="true" type="string" name="eprParam" managedBy="system">patched_epr</PARAM>
77
	</PARAMETERS>
78
	<ARCS>
79
		<ARC to="validateHostedByRepos"/>
80
	</ARCS>
81
</NODE>
82

    
83
<NODE name="validateHostedByRepos" type="UpsertHostedByApis">
84
	<DESCRIPTION>Validate hostedBy Repos</DESCRIPTION>
85
	<PARAMETERS>
86
		<PARAM required="true" type="string" name="countersParam" managedBy="system">hostedByCounters</PARAM>
87
		<PARAM required="true" type="string" name="mdId" managedBy="system">$params.("tranOAF_id")$</PARAM>
88
	</PARAMETERS>
89
	<ARCS>
90
		<ARC to="success"/>
91
	</ARCS>
92
</NODE>
93

    
(4-4/5)