Project

General

Profile

1
<RESOURCE_PROFILE>
2
	<HEADER>
3
		<RESOURCE_IDENTIFIER value="81648916-4103-494a-93f5-7bd00838ef2e_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
				<PARAM name="cleanMdstoreId" description="Store for transformed records" required="true" type="string"/>
16
				<PARAM name="transformRuleId" description="Transformation Rule Id" required="true" type="string"/>
17
			</PARAMETERS>
18
			<WORKFLOW>
19
				<NODE name="fetchOriginals" type="FetchMDStoreRecords" isStart="true">
20
					<DESCRIPTION>Fetch records from MDStore</DESCRIPTION>
21
					<PARAMETERS>
22
						<PARAM name="mdId" ref="collMdstoreId"/>
23
						<PARAM name="eprParam" value="orig_epr"/>
24
					</PARAMETERS>
25
					<ARCS>
26
						<ARC to="transform"/>
27
					</ARCS>
28
				</NODE>
29
				<!-- TODO: new Node for X3M engine or integration with existing Transformator Service? -->
30
				<NODE name="transform" type="Transform">
31
					<DESCRIPTION>Transform original records</DESCRIPTION>
32
					<PARAMETERS>
33
						<PARAM name="ruleId" ref="transformRuleId"/>
34
						<PARAM name="inputEprParam" value="orig_epr"/>
35
						<PARAM name="outputEprParam" value="trans_epr"/>
36
					</PARAMETERS>
37
					<ARCS>
38
						<ARC to="storeRecords"/>
39
					</ARCS>
40
				</NODE>
41
				<NODE name="storeRecords" type="StoreMDStoreRecords">
42
					<DESCRIPTION>Store mdtore records</DESCRIPTION>
43
					<PARAMETERS>
44
						<PARAM name="mdId" ref="cleanMdstoreId"/>
45
						<PARAM name="storingType" value="REFRESH"/>
46
						<PARAM name="eprParam" value="trans_epr"/>
47
					</PARAMETERS>
48
					<ARCS>
49
						<ARC to="UPDATE_INFO"/>
50
					</ARCS>
51
				</NODE>
52
				<NODE name="UPDATE_INFO" type="MDStoreToApiExtraField">
53
					<DESCRIPTION>Update datasouce API extra fields</DESCRIPTION>
54
					<PARAMETERS>
55
						<PARAM name="mdId" ref="cleanMdstoreId"/>
56
						<PARAM name="datasourceId" ref="dsId"/>
57
						<PARAM name="datasourceInterface" ref="interface"/>
58
						<PARAM name="extraFieldForTotal" value="last_aggregation_total"/>
59
						<PARAM name="extraFieldForDate" value="last_aggregation_date"/>
60
						<PARAM name="extraFieldForMdId" value="last_aggregation_mdId"/>
61
					</PARAMETERS>
62
					<ARCS>
63
						<ARC to="success"/>
64
					</ARCS>
65
				</NODE>
66
			</WORKFLOW>
67
		</CONFIGURATION>
68
	</BODY>
69
</RESOURCE_PROFILE>
(7-7/7)