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_ENV_COLLECTION"/>
20
	</ARCS>
21
</NODE>
22

    
23
<NODE name="PREPARE_ENV_COLLECTION" type="PrepareEnvCollectHadoopJobNode">
24
    <DESCRIPTION>Set in the environment all the variable needed to the collection oozie job</DESCRIPTION>
25
    <PARAMETERS>
26
        <PARAM required="true" type="string" name="mdId" managedBy="system" category="MDSTORE_ID">$params.("harv_id")$</PARAM>
27
        <PARAM required="true" type="string" name="collectionMode" managedBy="user" function="validValues(['REFRESH','INCREMENTAL'])"></PARAM>
28
        <PARAM required="true" type="string" name="metadataEncoding" managedBy="user">XML</PARAM>
29
    </PARAMETERS>
30
    <ARCS>
31
        <ARC to="COLLECT_HADOOP"/>
32
    </ARCS>
33
</NODE>
34

    
35
<NODE name="COLLECT_HADOOP" type="SubmitHadoopJob">
36
    <DESCRIPTION>Start the Hadoop Job</DESCRIPTION>
37
    <PARAMETERS>
38
        <PARAM managedBy="system" name="hadoopJob" required="true" type="string">executeOozieJob</PARAM>
39
        <PARAM managedBy="user" name="cluster" required="true" type="string">DHP</PARAM>
40
        <PARAM managedBy="system" name="envParams" required="true" type="string">
41
            {
42
                "apiDescription":"apiDescription",
43
                "dataSourceInfo":"dataSourceInfo",
44
                "identifierPath":"identifierPath",
45
                "metadataEncoding":"metadataEncoding",
46
                "timestamp":"timestamp",
47
                "workflowId":"workflowId",
48
                "mdStoreID":"mdId",
49
                "collectionMode":"collectionMode",
50
                "oozie.wf.application.path":"oozieWfPath"
51
            }
52
        </PARAM>
53
    </PARAMETERS>
54
    <ARCS>
55
        <ARC to="UPDATE_INFO"/>
56
    </ARCS>
57
</NODE>
58

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