Project

General

Profile

1
<?xml version="1.0" encoding="UTF-8"?>
2
<RESOURCE_PROFILE>
3
	<HEADER>
4
		<RESOURCE_IDENTIFIER value="d12a26b0-9006-4f89-b063-9a5dc1d4b70f_V29ya2Zsb3dUZW1wbGF0ZURTUmVzb3VyY2VzL1dvcmtmbG93VGVtcGxhdGVEU1Jlc291cmNlVHlwZQ=="/>
5
		<RESOURCE_TYPE value="WorkflowTemplateDSResourceType"/>
6
		<RESOURCE_KIND value="WorkflowTemplateDSResources"/>
7
		<RESOURCE_URI value=""/>
8
		<DATE_OF_CREATION value="2001-12-31T12:00:00"/>
9
	</HEADER>
10
	<BODY>
11
		<CONFIGURATION>
12
			<PARAMETERS>
13
				<PARAM name="dsId" description="Datasource Id" required="true" type="string"/>
14
				<PARAM name="cleanMdstoreId" description="Store for cleaned records" required="true" type="string"/>
15
				<PARAM name="nativeObjectStoreId" description="Object Store for native images" required="true" type="string"/>
16
			</PARAMETERS>
17
			<WORKFLOW>
18
				<NODE name="VerifyObjectStoreThumb256" type="CreateObjectStore" isStart="true">
19
					<DESCRIPTION>Verify if the ObjectStore for the thumbnails 256 exist otherwise it will be created</DESCRIPTION>
20
					<PARAMETERS>
21
						<PARAM name="interpretation" value="thumb256"/>
22
						<PARAM name="createOnlyIfMissing" value="true"/>
23
						<PARAM name="outputPrefix" value="thumb256_"/>
24
					</PARAMETERS>
25
					<ARCS>
26
						<ARC to="VerifyObjectStoreThumb96"/>
27
					</ARCS>
28
				</NODE>
29

    
30
				<NODE name="VerifyObjectStoreThumb96" type="CreateObjectStore">
31
					<DESCRIPTION>Verify if the ObjectStore for the thumbnails 96 exist otherwise it will be created</DESCRIPTION>
32
					<PARAMETERS>
33
						<PARAM name="interpretation" value="thumb96"/>
34
						<PARAM name="createOnlyIfMissing" value="true"/>
35
						<PARAM name="outputPrefix" value="thumb96_"/>
36
					</PARAMETERS>
37
					<ARCS>
38
						<ARC to="fetchMdStore"/>
39
					</ARCS>
40
				</NODE>
41

    
42
				<NODE name="fetchMdStore" type="FetchMDStoreRecords">
43
					<DESCRIPTION>Fetch records from MDStore</DESCRIPTION>
44
					<PARAMETERS>
45
						<PARAM name="mdId" ref="cleanMdstoreId"/>
46
						<PARAM name="mdFormat" value="oai_efg"/>
47
						<PARAM name="eprParam" value="clean_epr"/>
48
					</PARAMETERS>
49
					<ARCS>
50
						<ARC to="retrieveURL"/>
51
					</ARCS>
52
				</NODE>
53

    
54
				<NODE name="retrieveURL" type="RetrieveURLS">
55
					<DESCRIPTION>Retrieve URL To Download from MDStore</DESCRIPTION>
56
					<PARAMETERS>
57
						<PARAM name="xpath" value="//*[local-name()='isShownBy']/text()"/>
58
						<PARAM name="inputEprParam" value="clean_epr"/>
59
						<PARAM name="outputEprParam" value="item_epr"/>
60
					</PARAMETERS>
61
					<ARCS>
62
						<ARC to="downloadRecords"/>
63
					</ARCS>
64
				</NODE>
65

    
66
				<NODE name="downloadRecords" type="DownloadFromMetadata">
67
					<DESCRIPTION>Download records</DESCRIPTION>
68
					<PARAMETERS>
69
						<PARAM name="inputeprParam" value="item_epr"/>
70
						<PARAM name="objectStoreID" ref="nativeObjectStoreId"/>
71
						<PARAM name="plugin" value="EFGDownloadPlugin"/>
72
						<PARAM name="protocol" value="HTTP"/>
73
						<PARAM name="mimeType" value="images"/>
74
					</PARAMETERS>
75
					<ARCS>
76
						<ARC to="updateSizeObjectStore"/>
77
					</ARCS>
78
				</NODE>
79
				<NODE name="updateSizeObjectStore" type="UpdateObjectStoreSize">
80
					<DESCRIPTION>Download records</DESCRIPTION>
81
					<PARAMETERS>
82
						<PARAM name="objectStoreIdParam" ref="nativeObjectStoreId"/>
83
					</PARAMETERS>
84
					<ARCS>
85
						<ARC to="generateThumbnail"/>
86
					</ARCS>
87
				</NODE>
88

    
89
				<NODE name="generateThumbnail" type="GenerateThumbnail">
90
					<DESCRIPTION>Generate Thumbnail for EFG</DESCRIPTION>
91
					<PARAMETERS>
92
						<PARAM name="nativeObjectStore" ref="nativeObjectStoreId"/>
93
						<PARAM name="storeThumb250" value="thumb256_id"/>
94
						<PARAM name="storeThumb96" value="thumb96_id"/>
95

    
96

    
97
					</PARAMETERS>
98
					<ARCS>
99
						<ARC to="success"/>
100
					</ARCS>
101
				</NODE>
102

    
103

    
104
			</WORKFLOW>
105
		</CONFIGURATION>
106
	</BODY>
107
</RESOURCE_PROFILE>
(7-7/9)