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

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

    
23
<NODE name="PREPARE_STORE_VERSION" type="PrepareMdStoreVersion">
24
	<DESCRIPTION>Prepare a new MdStore Version</DESCRIPTION>
25
	<PARAMETERS>
26
		<PARAM required="true" type="string" name="mdId" managedBy="system">$params.("harv_id")$</PARAM>
27
	</PARAMETERS>
28
	<ARCS>
29
		<ARC to="COLLECT_HADOOP"/>
30
	</ARCS>
31
</NODE>
32

    
33
<NODE name="COLLECT_HADOOP" type="CollectHadoop">
34
	<DESCRIPTION>Start the Hadoop Job</DESCRIPTION>
35
	<PARAMETERS/>
36
	<ARCS>
37
		<ARC to="COMMIT_VERSION"/>
38
		<ARC to="ABORT_VERSION" name="abort" />
39
	</ARCS>
40
</NODE>
41

    
42
<NODE name="COMMIT_VERSION" type="CommitMDStoreVersion">
43
	<DESCRIPTION>Commit the mdstore version</DESCRIPTION>
44
	<PARAMETERS/>
45
	<ARCS>
46
		<ARC to="UPDATE_INFO"/>
47
	</ARCS>
48
</NODE>
49

    
50
<NODE name="ABORT_VERSION" type="AbortMDStoreVersion">
51
	<DESCRIPTION>Abort the mdstore version</DESCRIPTION>
52
	<PARAMETERS/>
53
	<ARCS>
54
		<ARC to="failure"/>
55
	</ARCS>
56
</NODE>
57

    
58
<NODE name="UPDATE_INFO" type="MDStoreToApiExtraField">
59
	<DESCRIPTION>Update datasouce API extra fields</DESCRIPTION>
60
	<PARAMETERS>
61
		<PARAM required="true" type="string" name="mdId" managedBy="system">$params.("harv_id")$</PARAM>
62
		<PARAM required="true" type="string" name="datasourceId" managedBy="system">$params.("dataprovider:id")$</PARAM>
63
		<PARAM required="true" type="string" name="datasourceInterface" managedBy="system">$params.("dataprovider:interface")$</PARAM>
64
		<PARAM required="true" type="string" name="extraFieldForTotal" managedBy="system">last_collection_total</PARAM>
65
		<PARAM required="true" type="string" name="extraFieldForDate" managedBy="system">last_collection_date</PARAM>
66
		<PARAM required="true" type="string" name="extraFieldForMdId" managedBy="system">last_collection_mdId</PARAM>
67
	</PARAMETERS>
68
	<ARCS>
69
		<ARC to="success"/>
70
	</ARCS>
71
</NODE>
(1-1/3)