Project

General

Profile

1
<?xml version="1.0" encoding="UTF-8"?>
2
<RESOURCE_PROFILE>
3
	<HEADER>
4
		<RESOURCE_IDENTIFIER value="a7b42c65-2e7f-413f-8e68-5eef9d93059b_V29ya2Zsb3dEU1Jlc291cmNlcy9Xb3JrZmxvd0RTUmVzb3VyY2VUeXBl"/>
5
		<RESOURCE_TYPE value="WorkflowDSResourceType"/>
6
		<RESOURCE_KIND value="WorkflowDSResources"/>
7
		<RESOURCE_URI value=""/>
8
		<DATE_OF_CREATION value="2018-01-12T17:00:00.0Z"/>
9
	</HEADER>
10
	<BODY>
11
		<WORKFLOW_NAME>CLARIN: Aggregate Metadata (X3M)</WORKFLOW_NAME>
12
		<WORKFLOW_DESCRIPTION>Collect, transform with X3M, and export metadata for CLARIN</WORKFLOW_DESCRIPTION>
13
		<WORKFLOW_INFO>
14
			<FIELD name="Action">Aggregate Metadata</FIELD>
15
			<FIELD name="Datasource class">Content Provider</FIELD>
16
		</WORKFLOW_INFO>
17
		<WORKFLOW_FAMILY>REPO_HI</WORKFLOW_FAMILY>
18
		<WORKFLOW_PRIORITY>20</WORKFLOW_PRIORITY>
19
		<CONFIGURATION status="EXECUTABLE" start="MANUAL">
20
			<PARAMETERS/>
21
			<WORKFLOW>
22
				<NODE name="VerifyDatasource" type="VerifyDatasource" isStart="true">
23
					<DESCRIPTION>Verify if DS is pending</DESCRIPTION>
24
					<PARAMETERS>
25
						<PARAM name="expectedInterfaceTypologyPrefixes" value="dnet:repository::clarin"/>
26
						<PARAM name="expectedCompliancePrefixes" value="metadata,native"/>
27
					</PARAMETERS>
28
					<ARCS>
29
						<ARC to="registerAggregationWf"/>
30
						<ARC to="validateDs" name="validateDs"/>
31
					</ARCS>
32
				</NODE>
33
				<NODE name="validateDs" type="ValidateDatasource">
34
					<DESCRIPTION>Validate DS</DESCRIPTION>
35
					<PARAMETERS/>
36
					<ARCS>
37
						<ARC to="registerAggregationWf"/>
38
					</ARCS>
39
				</NODE>
40
				<NODE name="registerAggregationWf" type="RegisterClarinWorkflowFromTemplate">
41
					<DESCRIPTION>Create Workflow</DESCRIPTION>
42
					<PARAMETERS>
43
						<PARAM name="wfName" value="Aggregate Metadata (X3M)"/>
44
						<PARAM name="wfTemplate" value="/eu/dnetlib/parthenos/workflows/repo-hi/CLARIN_aggregation_wf.xml.st"/>
45
						<PARAM name="description" value="Collect, transform with X3M, and export metadata"/>
46
					</PARAMETERS>
47
					<ARCS>
48
						<ARC to="createNative"/>
49
						<ARC to="createTransformed"/>
50
						<ARC to="prepareCreateIndex"/>
51
					</ARCS>
52
				</NODE>
53
				<NODE name="createNative" type="CreateMDStore">
54
					<DESCRIPTION>Create native store</DESCRIPTION>
55
					<PARAMETERS>
56
						<PARAM name="format" value="GMF"/>
57
						<PARAM name="interpretation" value="native"/>
58
						<PARAM name="layout" value="store"/>
59
						<PARAM name="outputPrefix" value="harv_"/>
60
					</PARAMETERS>
61
					<ARCS>
62
						<ARC to="updateParameters"/>
63
					</ARCS>
64
				</NODE>
65
				<NODE name="createTransformed" type="CreateMDStore">
66
					<DESCRIPTION>Create CIDOC store</DESCRIPTION>
67
					<PARAMETERS>
68
						<PARAM name="format" value="CIDOC"/>
69
						<PARAM name="interpretation" value="cleaned"/>
70
						<PARAM name="layout" value="store"/>
71
						<PARAM name="outputPrefix" value="clean_"/>
72
					</PARAMETERS>
73
					<ARCS>
74
						<ARC to="updateParameters"/>
75
					</ARCS>
76
				</NODE>
77
				<NODE name="prepareCreateIndex" type="PrepareCreateIndex">
78
					<DESCRIPTION>Prepare create index</DESCRIPTION>
79
					<PARAMETERS>
80
						<PARAM name="format" value="CIDOC"/>
81
						<PARAM name="interpretation" value="transformed"/>
82
						<PARAM name="layout" value="index"/>
83
					</PARAMETERS>
84
					<ARCS>
85
						<ARC to="createIndex"/>
86
					</ARCS>
87
				</NODE>
88
				<NODE name="createIndex" type="CreateIndex">
89
					<DESCRIPTION>Create index</DESCRIPTION>
90
					<PARAMETERS>
91
						<PARAM name="outputPrefix" value="index_"/>
92
					</PARAMETERS>
93
					<ARCS>
94
						<ARC to="updateParameters"/>
95
					</ARCS>
96
				</NODE>
97
				<NODE name="updateParameters" type="UpdateWfParameters" isJoin="true">
98
					<DESCRIPTION>Update Workflow Parameters</DESCRIPTION>
99
					<PARAMETERS>
100
						<PARAM name="envParams">
101
							<MAP>
102
								<ENTRY key="collMdstoreId" value="harv_id"/>
103
								<ENTRY key="cleanMdstoreId" value="clean_id"/>
104
								<ENTRY key="indexId" value="index_id"/>
105
							</MAP>
106
						</PARAM>
107
					</PARAMETERS>
108
					<ARCS>
109
						<ARC to="registerPublishingWf"/>
110
					</ARCS>
111
				</NODE>
112
				<NODE name="registerPublishingWf" type="RegisterWorkflowFromTemplate">
113
					<DESCRIPTION>Create Workflow</DESCRIPTION>
114
					<PARAMETERS>
115
						<PARAM name="wfName" value="Publish"/>
116
						<PARAM name="wfTemplate" value="/eu/dnetlib/parthenos/workflows/repo-hi/publish_wf.xml.st"/>
117
						<PARAM name="description" value="Publish metadata records"/>
118
					</PARAMETERS>
119
					<ARCS>
120
						<ARC to="prepareCreatePublicIndex"/>
121
					</ARCS>
122
				</NODE>
123
				<NODE name="prepareCreatePublicIndex" type="PrepareCreateIndex">
124
					<DESCRIPTION>Prepare create index</DESCRIPTION>
125
					<PARAMETERS>
126
						<PARAM name="format" value="CIDOC"/>
127
						<PARAM name="interpretation" value="public"/>
128
						<PARAM name="layout" value="index"/>
129
					</PARAMETERS>
130
					<ARCS>
131
						<ARC to="createPublicIndex"/>
132
					</ARCS>
133
				</NODE>
134
				<NODE name="createPublicIndex" type="CreateIndex">
135
					<DESCRIPTION>Create index</DESCRIPTION>
136
					<PARAMETERS>
137
						<PARAM name="outputPrefix" value="index_"/>
138
					</PARAMETERS>
139
					<ARCS>
140
						<ARC to="updatePublishParameters"/>
141
					</ARCS>
142
				</NODE>
143
				<NODE name="updatePublishParameters" type="UpdateWfParameters" isJoin="true">
144
					<DESCRIPTION>Update Workflow Parameters</DESCRIPTION>
145
					<PARAMETERS>
146
						<PARAM name="envParams">
147
							<MAP>
148
								<ENTRY key="cleanMdstoreId" value="clean_id"/>
149
								<ENTRY key="indexId" value="index_id"/>
150
							</MAP>
151
						</PARAM>
152
					</PARAMETERS>
153
					<ARCS>
154
						<ARC to="registerUnpublishingWf"/>
155
					</ARCS>
156
				</NODE>
157
				<NODE name="registerUnpublishingWf" type="RegisterWorkflowFromTemplate">
158
					<DESCRIPTION>Create Workflow</DESCRIPTION>
159
					<PARAMETERS>
160
						<PARAM name="wfName" value="Unpublish"/>
161
						<PARAM name="wfTemplate" value="/eu/dnetlib/parthenos/workflows/repo-hi/unpublish_wf.xml.st"/>
162
						<PARAM name="description" value="Unpublish metadata records"/>
163
					</PARAMETERS>
164
					<ARCS>
165
						<ARC to="updateUnpublishParameters"/>
166
					</ARCS>
167
				</NODE>
168
				<NODE name="updateUnpublishParameters" type="UpdateWfParameters" isJoin="true">
169
					<DESCRIPTION>Update Workflow Parameters</DESCRIPTION>
170
					<PARAMETERS>
171
						<PARAM name="envParams">
172
							<MAP>
173
								<ENTRY key="indexId" value="index_id"/>
174
							</MAP>
175
						</PARAM>
176
					</PARAMETERS>
177
					<ARCS>
178
						<ARC to="success"/>
179
					</ARCS>
180
				</NODE>
181
			</WORKFLOW>
182
		</CONFIGURATION>
183
		<NOTIFICATIONS/>
184
		<SCHEDULING enabled="false">
185
			<CRON>9 9 9 ? * *</CRON>
186
			<MININTERVAL>10080</MININTERVAL>
187
		</SCHEDULING>
188
		<STATUS/>
189
	</BODY>
190
</RESOURCE_PROFILE>
(8-8/10)