Project

General

Profile

1
<RESOURCE_PROFILE>
2
	<HEADER>
3
		<RESOURCE_IDENTIFIER value="8536236a-7074-4155-9279-8cb2fcc8887a_V29ya2Zsb3dUZW1wbGF0ZURTUmVzb3VyY2VzL1dvcmtmbG93VGVtcGxhdGVEU1Jlc291cmNlVHlwZQ=="/>
4
		<RESOURCE_TYPE value="WorkflowTemplateDSResourceType"/>
5
		<RESOURCE_KIND value="WorkflowTemplateDSResources"/>
6
		<RESOURCE_URI value=""/>
7
		<DATE_OF_CREATION value="2017-01-17T17:00:00.0Z"/>
8
	</HEADER>
9
	<BODY>
10
		<CONFIGURATION>
11
			<PARAMETERS>
12
				<PARAM name="dsId" description="Datasource Id" required="true" type="string"/>
13
				<PARAM name="interface" description="Datasource Interface" required="true" type="string"/>
14
				<PARAM name="collMdstoreId" description="Store for collected records" required="true" type="string"/>
15
			</PARAMETERS>
16
			<WORKFLOW>
17
				<NODE name="COLLECT_REFRESH" type="CollectRecords" isStart="true">
18
					<DESCRIPTION>Start Harvesting</DESCRIPTION>
19
					<PARAMETERS>
20
						<PARAM name="datasourceId" ref="dsId"/>
21
						<PARAM name="datasourceInterface" ref="interface"/>
22
						<PARAM name="eprParam" value="collected_epr"/>
23
					</PARAMETERS>
24
					<ARCS>
25
						<ARC to="MD_BUILDER"/>
26
					</ARCS>
27
				</NODE>
28
				<NODE name="MD_BUILDER" type="MdBuilder">
29
					<DESCRIPTION>Prepare mdstore records</DESCRIPTION>
30
					<PARAMETERS>
31
						<PARAM name="inputEprParam" value="collected_epr"/>
32
						<PARAM name="outputEprParam" value="store_epr"/>
33
						<PARAM name="datasourceId" ref="dsId"/>
34
						<PARAM name="datasourceInterface" ref="interface"/>
35
					</PARAMETERS>
36
					<ARCS>
37
						<ARC to="STORE_REFRESH"/>
38
					</ARCS>
39
				</NODE>
40
				<NODE name="STORE_REFRESH" type="StoreMDStoreRecords">
41
					<DESCRIPTION>Store mdstore records</DESCRIPTION>
42
					<PARAMETERS>
43
						<PARAM name="mdId" ref="collMdstoreId"/>
44
						<PARAM name="storingType" value="REFRESH"/>
45
						<PARAM name="eprParam" value="store_epr"/>
46
					</PARAMETERS>
47
					<ARCS>
48
						<ARC to="UPDATE_INFO"/>
49
					</ARCS>
50
				</NODE>
51
				<NODE name="UPDATE_INFO" type="MDStoreToApiExtraField">
52
					<DESCRIPTION>Update datasouce API extra fields</DESCRIPTION>
53
					<PARAMETERS>
54
						<PARAM name="mdId" ref="collMdstoreId"/>
55
						<PARAM name="datasourceId" ref="dsId"/>
56
						<PARAM name="datasourceInterface" ref="interface"/>
57
						<PARAM name="extraFieldForTotal" value="last_collection_total"/>
58
						<PARAM name="extraFieldForDate" value="last_collection_date"/>
59
						<PARAM name="extraFieldForMdId" value="last_collection_mdId"/>
60
					</PARAMETERS>
61
					<ARCS>
62
						<ARC to="success"/>
63
					</ARCS>
64
				</NODE>
65

    
66
			</WORKFLOW>
67
		</CONFIGURATION>
68
	</BODY>
69
</RESOURCE_PROFILE>
(1-1/7)