Project

General

Profile

1
<RESOURCE_PROFILE>
2
	<HEADER>
3
		<RESOURCE_IDENTIFIER value="001ca627-1ae1-4053-9243-bca6ee149b22_V29ya2Zsb3dEU1Jlc291cmNlcy9Xb3JrZmxvd0RTUmVzb3VyY2VUeXBl"/>
4
		<RESOURCE_TYPE value="WorkflowDSResourceType"/>
5
		<RESOURCE_KIND value="WorkflowDSResources"/>
6
		<RESOURCE_URI value=""/>
7
		<DATE_OF_CREATION value="2017-06-24T18:13:51.0Z"/>
8
	</HEADER>
9
	<BODY>
10
		<WORKFLOW_NAME>Claim to HBase</WORKFLOW_NAME>
11
		<WORKFLOW_TYPE>Data Load</WORKFLOW_TYPE>
12
		<WORKFLOW_PRIORITY>30</WORKFLOW_PRIORITY>
13
		<CONFIGURATION start="manual">
14
			<!-- TODO: delete this nodes when the new claim db is used by the portal (see next TODO) -->
15
			<NODE name="queryClaimRels" type="QueryDb" isStart="true">
16
				<DESCRIPTION>query Claim Rels</DESCRIPTION>
17
				<PARAMETERS>
18
					<PARAM managedBy="system" name="dbProperty" required="true" type="string">dnet.openaire.db.name</PARAM>
19
					<PARAM managedBy="system" name="sql" required="true" type="string">/eu/dnetlib/msro/openaireplus/workflows/hbase/queryClaimsRel.sql</PARAM>
20
					<PARAM managedBy="system" name="outputEprParam" required="true" type="string">claimRelsEpr</PARAM>
21
					<PARAM managedBy="system" name="xslt" required="true" type="string">/eu/dnetlib/msro/openaireplus/workflows/db/decapsule_claims_xml.xsl
22
					</PARAM>
23
				</PARAMETERS>
24
				<ARCS>
25
					<ARC to="storeClaimRels"/>
26
				</ARCS>
27
			</NODE>
28
			<NODE name="storeClaimRels" type="StoreHBase">
29
				<DESCRIPTION>Store relation Claim Project</DESCRIPTION>
30
				<PARAMETERS>
31
					<PARAM managedBy="system" name="inputEprParam" required="true" type="string">claimRelsEpr</PARAM>
32
					<PARAM managedBy="system" name="hbaseTableProperty" required="true" type="string">hbase.mapred.datatable</PARAM>
33
					<PARAM managedBy="system" name="cluster" required="true" type="string">DM</PARAM>
34
					<PARAM managedBy="user" name="mapping" required="true" type="string" function="obtainValues('dbmf2hbaseMappings', {})"></PARAM>
35
				</PARAMETERS>
36
				<ARCS>
37
					<ARC to="queryClaimUpdates"/>
38
				</ARCS>
39
			</NODE>
40
			<NODE name="queryClaimUpdates" type="QueryDb">
41
				<DESCRIPTION>query Claim updates</DESCRIPTION>
42
				<PARAMETERS>
43
					<PARAM managedBy="system" name="dbProperty" required="true" type="string">dnet.openaire.db.name</PARAM>
44
					<PARAM managedBy="system" name="sql" required="true" type="string">/eu/dnetlib/msro/openaireplus/workflows/hbase/queryClaimsUpdate.sql
45
					</PARAM>
46
					<PARAM managedBy="system" name="outputEprParam" required="true" type="string">claimRelsEpr</PARAM>
47
					<PARAM managedBy="system" name="xslt" required="true" type="string">/eu/dnetlib/msro/openaireplus/workflows/db/decapsule_claims_xml.xsl
48
					</PARAM>
49
				</PARAMETERS>
50
				<ARCS>
51
					<ARC to="storeClaimUpdates"/>
52
				</ARCS>
53
			</NODE>
54
			<NODE name="storeClaimUpdates" type="StoreHBase">
55
				<DESCRIPTION>Store claim updates</DESCRIPTION>
56
				<PARAMETERS>
57
					<PARAM managedBy="system" name="inputEprParam" required="true" type="string">claimRelsEpr</PARAM>
58
					<PARAM managedBy="system" name="hbaseTableProperty" required="true" type="string">hbase.mapred.datatable</PARAM>
59
					<PARAM managedBy="system" name="cluster" required="true" type="string">DM</PARAM>
60
					<PARAM managedBy="user" name="mapping" required="true" type="string" function="obtainValues('dbmf2hbaseMappings', {})"></PARAM>
61
				</PARAMETERS>
62
				<ARCS>
63
					<ARC to="success"/>
64
				</ARCS>
65
			</NODE>
66
			<!-- TODO: uncomment when the new claim database is used by the portal -->
67
			<!--
68
			<NODE name="applyClaimRels" type="ApplyClaimRels" isStart="true">
69
				<DESCRIPTION>Apply Claim Rels</DESCRIPTION>
70
				<PARAMETERS>
71
					<PARAM managedBy="system" name="clusterName" required="true" type="string">DM</PARAM>
72
					<PARAM managedBy="user" name="tableName" required="true" type="string"></PARAM>
73
					<PARAM managedBy="user" name="sql" required="true" type="string">SELECT source_type, source_id, target_type, target_id, semantics FROM claim WHERE approved=TRUE AND source_type !='context'</PARAM>
74
					<PARAM managedBy="user" name="countQuery" required="true" type="string">SELECT count(*) FROM claim WHERE approved=TRUE AND source_type !='context'</PARAM>
75
				</PARAMETERS>
76
				<ARCS>
77
					<ARC to="applyClaimUpdates"/>
78
				</ARCS>
79
			</NODE>
80
			<NODE name="applyClaimUpdates" type="ApplyClaimUpdates">
81
				<DESCRIPTION>Apply Claim Updates</DESCRIPTION>
82
				<PARAMETERS>
83
					<PARAM managedBy="system" name="clusterName" required="true" type="string">DM</PARAM>
84
					<PARAM managedBy="user" name="tableName" required="true" type="string"></PARAM>
85
					<PARAM managedBy="user" name="sql" required="true" type="string">SELECT source_type, source_id, target_type, target_id, semantics FROM claim WHERE approved=TRUE AND source_type ='context'</PARAM>
86
					<PARAM managedBy="user" name="countQuery" required="true" type="string">SELECT count(*) FROM claim WHERE approved=TRUE AND source_type ='context'</PARAM>
87
				</PARAMETERS>
88
				<ARCS>
89
					<ARC to="success"/>
90
				</ARCS>
91
			</NODE>
92
			-->
93
		</CONFIGURATION>
94
		<STATUS>
95
		</STATUS>
96
	</BODY>
97
</RESOURCE_PROFILE>
(2-2/14)