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="dsName" description="Datasource Name" 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="harvestingMode" description="Incremental or refresh mode" required="true" type="string" />
|
17
|
</PARAMETERS>
|
18
|
<WORKFLOW>
|
19
|
<NODE name="SELECT_MODE" type="Selection" isStart="true">
|
20
|
<DESCRIPTION>Refresh or incremental?</DESCRIPTION>
|
21
|
<PARAMETERS>
|
22
|
<PARAM name="selection" ref="harvestingMode" />
|
23
|
</PARAMETERS>
|
24
|
<ARCS>
|
25
|
<ARC to="COLLECT" name="REFRESH" />
|
26
|
<ARC to="PREPARE_INCREMENTAL" name="INCREMENTAL" />
|
27
|
</ARCS>
|
28
|
</NODE>
|
29
|
<NODE name="PREPARE_INCREMENTAL" type="FindDateRangeForIncrementalHarvesting">
|
30
|
<DESCRIPTION>Find Date Range For Incremental Harvesting</DESCRIPTION>
|
31
|
<PARAMETERS>
|
32
|
<PARAM name="dateParam" value="FROM_DATE"/>
|
33
|
</PARAMETERS>
|
34
|
<ARCS>
|
35
|
<ARC to="COLLECT"/>
|
36
|
</ARCS>
|
37
|
</NODE>
|
38
|
<NODE name="COLLECT" type="CollectRecords">
|
39
|
<DESCRIPTION>Start Harvesting</DESCRIPTION>
|
40
|
<PARAMETERS>
|
41
|
<PARAM name="datasourceId" ref="dsId"/>
|
42
|
<PARAM name="datasourceInterface" ref="interface"/>
|
43
|
<PARAM name="eprParam" value="collected_epr"/>
|
44
|
<PARAM name="fromDate" env="FROM_DATE"/>
|
45
|
<PARAM name="untilDate" value=""/>
|
46
|
</PARAMETERS>
|
47
|
<ARCS>
|
48
|
<ARC to="MD_BUILDER"/>
|
49
|
</ARCS>
|
50
|
</NODE>
|
51
|
<NODE name="MD_BUILDER" type="MdBuilder">
|
52
|
<DESCRIPTION>Prepare mdstore records</DESCRIPTION>
|
53
|
<PARAMETERS>
|
54
|
<PARAM name="inputEprParam" value="collected_epr"/>
|
55
|
<PARAM name="outputEprParam" value="store_epr"/>
|
56
|
<PARAM name="datasourceId" ref="dsId"/>
|
57
|
<PARAM name="datasourceName" ref="dsName"/>
|
58
|
<PARAM name="datasourceInterface" ref="interface"/>
|
59
|
</PARAMETERS>
|
60
|
<ARCS>
|
61
|
<ARC to="STORE"/>
|
62
|
</ARCS>
|
63
|
</NODE>
|
64
|
<NODE name="STORE" type="StoreMDStoreRecords">
|
65
|
<DESCRIPTION>Store mdstore records</DESCRIPTION>
|
66
|
<PARAMETERS>
|
67
|
<PARAM name="mdId" ref="collMdstoreId"/>
|
68
|
<PARAM name="storingType" ref="harvestingMode"/>
|
69
|
<PARAM name="eprParam" value="store_epr"/>
|
70
|
</PARAMETERS>
|
71
|
<ARCS>
|
72
|
<ARC to="UPDATE_INFO"/>
|
73
|
</ARCS>
|
74
|
</NODE>
|
75
|
|
76
|
<NODE name="UPDATE_INFO" type="MDStoreToApiExtraField">
|
77
|
<DESCRIPTION>Update datasouce API extra fields</DESCRIPTION>
|
78
|
<PARAMETERS>
|
79
|
<PARAM name="mdId" ref="collMdstoreId"/>
|
80
|
<PARAM name="datasourceId" ref="dsId"/>
|
81
|
<PARAM name="datasourceInterface" ref="interface"/>
|
82
|
<PARAM name="extraFieldForTotal" value="last_collection_total"/>
|
83
|
<PARAM name="extraFieldForDate" value="last_collection_date"/>
|
84
|
<PARAM name="extraFieldForMdId" value="last_collection_mdId"/>
|
85
|
</PARAMETERS>
|
86
|
<ARCS>
|
87
|
<ARC to="success"/>
|
88
|
</ARCS>
|
89
|
</NODE>
|
90
|
</WORKFLOW>
|
91
|
</CONFIGURATION>
|
92
|
</BODY>
|
93
|
</RESOURCE_PROFILE>
|