1 |
57299
|
sandro.lab
|
<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>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="START_READING"/>
|
20 |
|
|
</ARCS>
|
21 |
|
|
</NODE>
|
22 |
|
|
|
23 |
|
|
<NODE name="START_READING" type="StartReadingMDStore">
|
24 |
|
|
<DESCRIPTION>Start reading Hadoop MD Store</DESCRIPTION>
|
25 |
|
|
<PARAMETERS>
|
26 |
|
|
<PARAM required="true" type="string" name="mdId" managedBy="system">$params.("harv_id")$</PARAM>
|
27 |
|
|
</PARAMETERS>
|
28 |
|
|
<ARCS>
|
29 |
|
|
<ARC to="PREPARE_STORE_VERSION"/>
|
30 |
|
|
</ARCS>
|
31 |
|
|
</NODE>
|
32 |
|
|
|
33 |
|
|
<NODE name="PREPARE_STORE_VERSION" type="PrepareMDStoreVersion">
|
34 |
|
|
<DESCRIPTION>Prepare a new MdStore Version</DESCRIPTION>
|
35 |
|
|
<PARAMETERS>
|
36 |
|
|
<PARAM required="true" type="string" name="mdId" managedBy="system">$params.("tran_id")$</PARAM>
|
37 |
|
|
</PARAMETERS>
|
38 |
|
|
<ARCS>
|
39 |
|
|
<ARC to="PREPARE_ENV_TRANSFORMATION"/>
|
40 |
|
|
</ARCS>
|
41 |
|
|
</NODE>
|
42 |
|
|
<NODE name="PREPARE_ENV_TRANSFORMATION" type="PrepareEnvTransformHadoopJobNode">
|
43 |
|
|
<DESCRIPTION>Retrieve all the parameters needed to run the transformation workflow</DESCRIPTION>
|
44 |
|
|
<PARAMETERS>
|
45 |
|
|
<PARAM category="TRANSFORMATION_RULE_ID" function="listProfiles('TransformationRuleDSResourceType', '//TITLE')" managedBy="user" name="ruleId" required="true" type="string"></PARAM>
|
46 |
|
|
<PARAM managedBy="user" name="hdfsBasePath" required="true" type="string"></PARAM>
|
47 |
|
|
</PARAMETERS>
|
48 |
|
|
<ARCS>
|
49 |
|
|
<ARC to="TRANSFORM_HADOOP"/>
|
50 |
|
|
</ARCS>
|
51 |
|
|
</NODE>
|
52 |
|
|
<NODE name="TRANSFORM_HADOOP" type="SubmitDnetHadoopJobNode">
|
53 |
|
|
<DESCRIPTION>Start the Hadoop Job</DESCRIPTION>
|
54 |
|
|
<PARAMETERS>
|
55 |
|
|
<PARAM managedBy="system" name="hadoopJob" required="true" type="string">dnetHadoopTrasnformation</PARAM>
|
56 |
|
|
<PARAM managedBy="user" name="cluster" required="true" type="string">DHP</PARAM>
|
57 |
|
|
<PARAM managedBy="system" name="envParams" required="true" type="string">
|
58 |
|
|
{
|
59 |
|
|
"mdstoreInputPath":"mdstoreInputPath",
|
60 |
|
|
"mdstoreOutputPath":"mdstoreOutputPath",
|
61 |
|
|
"transformationRule":"transformationRule",
|
62 |
|
|
"timestamp":"timestamp",
|
63 |
|
|
"workflowId":"workflowId"
|
64 |
|
|
}
|
65 |
|
|
</PARAM>
|
66 |
|
|
</PARAMETERS>
|
67 |
|
|
<ARCS>
|
68 |
|
|
<ARC to="COMMIT_VERSION"/>
|
69 |
|
|
<ARC name="abort" to="ABORT_VERSION"/>
|
70 |
|
|
</ARCS>
|
71 |
|
|
</NODE>
|
72 |
|
|
<NODE name="COMMIT_VERSION" type="CommitMDStoreVersion">
|
73 |
|
|
<DESCRIPTION>Commit the mdstore version</DESCRIPTION>
|
74 |
|
|
<PARAMETERS/>
|
75 |
|
|
<ARCS>
|
76 |
|
|
<ARC to="END_READING"/>
|
77 |
|
|
</ARCS>
|
78 |
|
|
</NODE>
|
79 |
|
|
<NODE name="END_READING" type="EndReadingMDStore">
|
80 |
|
|
<DESCRIPTION>End reading Hadoop MD Store</DESCRIPTION>
|
81 |
|
|
<PARAMETERS/>
|
82 |
|
|
<ARCS>
|
83 |
|
|
<ARC to="UPDATE_INFO"/>
|
84 |
|
|
</ARCS>
|
85 |
|
|
</NODE>
|
86 |
|
|
<NODE name="ABORT_VERSION" type="AbortMDStoreVersion">
|
87 |
|
|
<DESCRIPTION>Abort the mdstore version</DESCRIPTION>
|
88 |
|
|
<PARAMETERS/>
|
89 |
|
|
<ARCS>
|
90 |
|
|
<ARC to="END_READING_ABORT"/>
|
91 |
|
|
</ARCS>
|
92 |
|
|
</NODE>
|
93 |
|
|
<NODE name="END_READING_ABORT" type="EndReadingMDStore">
|
94 |
|
|
<DESCRIPTION>End reading Hadoop MD Store</DESCRIPTION>
|
95 |
|
|
<PARAMETERS/>
|
96 |
|
|
<ARCS>
|
97 |
|
|
<ARC to="failure"/>
|
98 |
|
|
</ARCS>
|
99 |
|
|
</NODE>
|
100 |
|
|
|
101 |
|
|
<NODE name="UPDATE_INFO" type="MDStoreToApiExtraFieldHadoop">
|
102 |
|
|
<DESCRIPTION>Update datasouce API extra fields</DESCRIPTION>
|
103 |
|
|
<PARAMETERS>
|
104 |
|
|
<PARAM required="true" type="string" name="mdId" managedBy="system">$params.("tran_id")$</PARAM>
|
105 |
|
|
<PARAM required="true" type="string" name="datasourceId" managedBy="system">$params.("dataprovider:id")$</PARAM>
|
106 |
|
|
<PARAM required="true" type="string" name="datasourceInterface" managedBy="system">$params.("dataprovider:interface")$</PARAM>
|
107 |
|
|
<PARAM required="true" type="string" name="extraFieldForTotal" managedBy="system">last_aggregation_total</PARAM>
|
108 |
|
|
<PARAM required="true" type="string" name="extraFieldForDate" managedBy="system">last_aggregation_date</PARAM>
|
109 |
|
|
<PARAM required="true" type="string" name="extraFieldForMdId" managedBy="system">last_aggregation_mdId</PARAM>
|
110 |
|
|
</PARAMETERS>
|
111 |
|
|
<ARCS>
|
112 |
|
|
<ARC to="success"/>
|
113 |
|
|
</ARCS>
|
114 |
|
|
</NODE>
|