Project

General

Profile

1
<RESOURCE_PROFILE>
2
	<HEADER>
3
		<RESOURCE_IDENTIFIER value="bb36d5af-442c-488b-ad42-d9b068f6f1c0_V29ya2Zsb3dUZW1wbGF0ZURTUmVzb3VyY2VzL1dvcmtmbG93VGVtcGxhdGVEU1Jlc291cmNlVHlwZQ=="/>
4
		<RESOURCE_TYPE value="WorkflowTemplateDSResourceType"/>
5
		<RESOURCE_KIND value="WorkflowTemplateDSResources"/>
6
		<RESOURCE_URI value=""/>
7
		<DATE_OF_CREATION value="2017-03-07T10:00:00.0Z"/>
8
	</HEADER>
9
	<BODY>
10
		<CONFIGURATION>
11
			<PARAMETERS>
12
				<PARAM name="transformationMode" description="Incremental or refresh mode" required="true" type="string" />
13
				<PARAM name="dsId" description="Datasource Id" required="true" type="string"/>
14
				<PARAM name="interface" description="Datasource Interface" required="true" type="string"/>
15
				<PARAM name="collMdstoreId" description="Store for collected records" required="true" type="string"/>
16
				<PARAM name="cleanMdstoreId" description="Store for transformed records" required="true" type="string"/>
17
				<PARAM name="mappingPolicyProfile" description="Mapping policy to apply by X3M" required="false" type="string" />
18
				<PARAM name="mappingProfiles" description="X3M mapping rules" required="true" type="list" />
19
				<PARAM name="passFullRecord" description="True to pass the full record to x3m" required="true" type="boolean" />
20
				<PARAM name="verboseTransformationLogging" description="Enable verbose logging of X3M" required="false" type="boolean"/>
21
				<PARAM name="cleaningRuleId" description="Cleaning rule" required="true" type="string" />
22
			</PARAMETERS>
23
			<WORKFLOW>
24
				<NODE name="SELECT_MODE" type="Selection" isStart="true">
25
					<DESCRIPTION>Refresh or incremental?</DESCRIPTION>
26
					<PARAMETERS>
27
						<PARAM name="selection" ref="transformationMode" />
28
					</PARAMETERS>
29
					<ARCS>
30
						<ARC to="FETCH_RECORDS" name="REFRESH" />
31
						<ARC to="PREPARE_INCREMENTAL" name="INCREMENTAL" />
32
					</ARCS>
33
				</NODE>
34
				<NODE name="PREPARE_INCREMENTAL" type="FindWfLatestSuccessDate">
35
					<DESCRIPTION>Find Date Range For Incremental Harvesting</DESCRIPTION>
36
					<PARAMETERS>
37
						<PARAM name="dateParam" value="FROM_DATE"/>
38
					</PARAMETERS>
39
					<ARCS>
40
						<ARC to="FETCH_RECORDS"/>
41
					</ARCS>
42
				</NODE>
43
				<NODE name="FETCH_RECORDS" type="FetchMDStoreRecords">
44
					<DESCRIPTION>Fetch records from MDStore</DESCRIPTION>
45
					<PARAMETERS>
46
						<PARAM name="mdId" ref="collMdstoreId"/>
47
						<PARAM name="eprParam" value="orig_epr"/>
48
						<PARAM name="noCursorTimeout" value="true"/>
49
						<PARAM name="fromDate" env="FROM_DATE"/>
50
						<PARAM name="untilDate" value=""/>
51
					</PARAMETERS>
52
					<ARCS>
53
						<!--<ARC to="validateAgainstSchema"/> -->
54
						<ARC to="x3mTransform"/>
55
					</ARCS>
56
				</NODE>
57
				<!--<NODE name="validateAgainstSchema" type="XMLSchemaValidator">-->
58
					<!--<DESCRIPTION>Filters out non-valid XML records</DESCRIPTION>-->
59
					<!--<PARAMETERS>-->
60
						<!--<PARAM name="enableValidation" ref="enableSchemaValidation" />-->
61
						<!--<PARAM name="useDeclaredSchemaUrl" ref="useDeclaredSchema"/>-->
62
						<!--<PARAM name="xmlSchemaURL" ref="schemaURL"/>-->
63
						<!--<PARAM name="eprParam" value="orig_epr"/>-->
64
						<!--<PARAM name="validEprParam" value="valid_epr"/>-->
65
					<!--</PARAMETERS>-->
66
					<!--<ARCS>-->
67
						<!--<ARC to="x3mTransform"/>-->
68
					<!--</ARCS>-->
69
				<!--</NODE>-->
70
				<NODE name="x3mTransform" type="X3MTransform">
71
					<DESCRIPTION>Transform valid records</DESCRIPTION>
72
					<PARAMETERS>
73
						<PARAM name="inputEprParam" value="orig_epr"/>
74
						<PARAM name="outputEprParam" value="trans_epr"/>
75
						<PARAM name="mappingPolicyProfileId" ref="mappingPolicyProfile"/>
76
						<PARAM name="mappingProfileIds" ref="mappingProfiles"/>
77
						<PARAM name="verboseLogging" ref="verboseTransformationLogging"/>
78
						<PARAM name="passFullRecord" ref="passFullRecord"/>
79
					</PARAMETERS>
80
					<ARCS>
81
						<ARC to="clean"/>
82
					</ARCS>
83
				</NODE>
84
				<NODE name="clean" type="Clean">
85
					<DESCRIPTION>Clean records</DESCRIPTION>
86
					<PARAMETERS>
87
						<PARAM name="inputEprParam" value="trans_epr"/>
88
						<PARAM name="outputEprParam" value="clean_epr"/>
89
						<PARAM name="ruleId" ref="cleaningRuleId"/>
90
					</PARAMETERS>
91
					<ARCS>
92
						<ARC to="storeRecords"/>
93
					</ARCS>
94
				</NODE>
95
				<NODE name="storeRecords" type="StoreMDStoreRecords">
96
					<DESCRIPTION>Store mdtore records</DESCRIPTION>
97
					<PARAMETERS>
98
						<PARAM name="mdId" ref="cleanMdstoreId"/>
99
						<PARAM name="storingType" ref="transformationMode"/>
100
						<PARAM name="eprParam" value="clean_epr"/>
101
					</PARAMETERS>
102
					<ARCS>
103
						<ARC to="UPDATE_INFO"/>
104
						<!-- <ARC to="LOG_REPORT"/> -->
105
					</ARCS>
106
				</NODE>
107
				<!--<NODE name="LOG_REPORT" type="ReportReader">-->
108
					<!--<DESCRIPTION>Store the validation report in the env</DESCRIPTION>-->
109
					<!--<PARAMETERS>-->
110
					<!--</PARAMETERS>-->
111
					<!--<ARCS>-->
112
						<!--<ARC to="UPDATE_INFO"/>-->
113
					<!--</ARCS>-->
114
				<!--</NODE>-->
115
				<NODE name="UPDATE_INFO" type="MDStoreToApiExtraField">
116
					<DESCRIPTION>Update datasouce API extra fields</DESCRIPTION>
117
					<PARAMETERS>
118
						<PARAM name="mdId" ref="cleanMdstoreId"/>
119
						<PARAM name="datasourceId" ref="dsId"/>
120
						<PARAM name="datasourceInterface" ref="interface"/>
121
						<PARAM name="extraFieldForTotal" value="last_aggregation_total"/>
122
						<PARAM name="extraFieldForDate" value="last_aggregation_date"/>
123
						<PARAM name="extraFieldForMdId" value="last_aggregation_mdId"/>
124
					</PARAMETERS>
125
					<ARCS>
126
						<ARC to="success"/>
127
					</ARCS>
128
				</NODE>
129
			</WORKFLOW>
130
		</CONFIGURATION>
131
	</BODY>
132
</RESOURCE_PROFILE>
(11-11/11)