1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
<RESOURCE_PROFILE>
|
3
|
<HEADER>
|
4
|
<RESOURCE_IDENTIFIER value="1fe60269-7e8e-49b8-a65c-f71491717a9f_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="interface" description="Datasource Interface" required="true" type="string"/>
|
15
|
<PARAM name="collMdstoreId" description="Store for collected records" required="true" type="string"/>
|
16
|
</PARAMETERS>
|
17
|
<WORKFLOW>
|
18
|
<NODE name="COLLECT_REFRESH" type="CollectRecords" isStart="true">
|
19
|
<DESCRIPTION>Start Harvesting</DESCRIPTION>
|
20
|
<PARAMETERS>
|
21
|
<PARAM name="datasourceId" ref="dsId"/>
|
22
|
<PARAM name="datasourceInterface" ref="interface"/>
|
23
|
<PARAM name="eprParam" value="collected_epr"/>
|
24
|
</PARAMETERS>
|
25
|
<ARCS>
|
26
|
<ARC to="MD_BUILDER_REFRESH"/>
|
27
|
</ARCS>
|
28
|
</NODE>
|
29
|
<NODE name="MD_BUILDER_REFRESH" type="MdBuilder">
|
30
|
<DESCRIPTION>Prepare mdstore records</DESCRIPTION>
|
31
|
<PARAMETERS>
|
32
|
<PARAM name="inputEprParam" value="collected_epr"/>
|
33
|
<PARAM name="outputEprParam" value="store_epr"/>
|
34
|
<PARAM name="datasourceId" ref="dsId"/>
|
35
|
<PARAM name="datasourceInterface" ref="interface"/>
|
36
|
</PARAMETERS>
|
37
|
<ARCS>
|
38
|
<ARC to="STORE_REFRESH"/>
|
39
|
</ARCS>
|
40
|
</NODE>
|
41
|
<NODE name="STORE_REFRESH" type="StoreMDStoreRecords">
|
42
|
<DESCRIPTION>Store mdstore records</DESCRIPTION>
|
43
|
<PARAMETERS>
|
44
|
<PARAM name="mdId" ref="collMdstoreId"/>
|
45
|
<PARAM name="storingType" value="REFRESH"/>
|
46
|
<PARAM name="eprParam" value="store_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="collMdstoreId"/>
|
56
|
<PARAM name="datasourceId" ref="dsId"/>
|
57
|
<PARAM name="datasourceInterface" ref="interface"/>
|
58
|
<PARAM name="extraFieldForTotal" value="last_collection_total"/>
|
59
|
<PARAM name="extraFieldForDate" value="last_collection_date"/>
|
60
|
<PARAM name="extraFieldForMdId" value="last_collection_mdId"/>
|
61
|
</PARAMETERS>
|
62
|
<ARCS>
|
63
|
<ARC to="success"/>
|
64
|
</ARCS>
|
65
|
</NODE>
|
66
|
|
67
|
</WORKFLOW>
|
68
|
</CONFIGURATION>
|
69
|
</BODY>
|
70
|
</RESOURCE_PROFILE>
|