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
        <PARAM managedBy="user" name="maxNumberOfRetry" required="false" type="int">5</PARAM>
30
        <PARAM managedBy="user" name="requestDelay" required="false" type="int">0</PARAM>
31
        <PARAM managedBy="user" name="retryDelay" required="false" type="int">60</PARAM>
32
        <PARAM managedBy="user" name="connectTimeOut" required="false" type="int">30</PARAM>
33
        <PARAM managedBy="user" name="readTimeOut" required="false" type="int">60</PARAM>
34
    </PARAMETERS>
35
    <ARCS>
36
        <ARC to="COLLECT_HADOOP"/>
37
    </ARCS>
38
</NODE>
39

    
40
<NODE name="COLLECT_HADOOP" type="SubmitHadoopJob">
41
    <DESCRIPTION>Start the Hadoop Job</DESCRIPTION>
42
    <PARAMETERS>
43
        <PARAM managedBy="system" name="hadoopJob" required="true" type="string">executeOozieJob</PARAM>
44
        <PARAM managedBy="user" name="cluster" required="true" type="string">DHP</PARAM>
45
        <PARAM managedBy="system" name="envParams" required="true" type="string">
46
            {
47
                "apiDescription":"apiDescription",
48
                "dataSourceInfo":"dataSourceInfo",
49
                "identifierPath":"identifierPath",
50
                "metadataEncoding":"metadataEncoding",
51
                "timestamp":"timestamp",
52
                "workflowId":"workflowId",
53
                "mdStoreID":"mdId",
54
                "collectionMode":"collectionMode",
55
                "maxNumberOfRetry":"maxNumberOfRetry",
56
                "retryDelay":"retryDelay",
57
                "connectTimeOut":"connectTimeOut",
58
                "readTimeOut":"readTimeOut",
59
                "dnetMessageManagerURL":"dnetMessageManagerURL",
60
                "oozie.wf.application.path":"oozieWfPath"
61
            }
62
        </PARAM>
63
        <PARAM managedBy="system" name="oozieReportActionsCsv" required="true" type="string">BeginRead,StartTransaction,CollectionWorker</PARAM>
64
    </PARAMETERS>
65
    <ARCS>
66
        <ARC to="UPDATE_INFO"/>
67
    </ARCS>
68
</NODE>
69

    
70
<NODE name="UPDATE_INFO" type="MDStoreToApiExtraFieldHadoop">
71
	<DESCRIPTION>Update datasouce API extra fields</DESCRIPTION>
72
	<PARAMETERS>
73
		<PARAM required="true" type="string" name="mdId" managedBy="system">$params.("harv_id")$</PARAM>
74
		<PARAM required="true" type="string" name="datasourceId" managedBy="system">$params.("dataprovider:id")$</PARAM>
75
		<PARAM required="true" type="string" name="datasourceInterface" managedBy="system">$params.("dataprovider:interface")$</PARAM>
76
		<PARAM required="true" type="string" name="extraFieldForTotal" managedBy="system">last_collection_total</PARAM>
77
		<PARAM required="true" type="string" name="extraFieldForDate" managedBy="system">last_collection_date</PARAM>
78
		<PARAM required="true" type="string" name="extraFieldForMdId" managedBy="system">last_collection_mdId</PARAM>
79
	</PARAMETERS>
80
	<ARCS>
81
		<ARC to="success"/>
82
	</ARCS>
83
</NODE>
(1-1/3)